2016-09-19, 14:38
Btw, something to add. When I look at your code I see that your native method adds the samples "bytewise". The whole reason to use shorts is that this fits the sample size and doing it bytewise might fragment within one sample - which should never happen. But that's on your side of the "hidden" implementation, but take care.