opencore-amr-android icon indicating copy to clipboard operation
opencore-amr-android copied to clipboard

I decode an aac file, and then I get the original PCM file, but when I use your code to encode PCM file, wrong happens

Open xiaowu4 opened this issue 7 years ago • 0 comments

The output amr file is noise, not the original music. In addition, the length of music is changed. And I adjust the argument of inbytebuffer as 44100 * 2 * 0.02 * 16 = 3578, the length is right, but the sound also is noise. How should I do?

int byteSize = 3578; byte[] buff = new byte[byteSize]; int len = AmrEncoder.encode(AmrEncoder.Mode.MR122.ordinal(), buff, outbuff);

xiaowu4 avatar Jul 28 '17 11:07 xiaowu4