opencore-amr-android
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
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);