knik0/faac

Croaking sound after encoding.

Opened this issue · 0 comments

Hello.
I am using libfaac.dll version 1.29.
Input data:
44100 Hz 16 bit stereo.
calling
faacEncOpen(44100, 2, &inputSamples, &maxOutputBytes);

Encoder setting:
faacEncConfiguration c = (faacEncConfiguration)cfg;
c.inputFormat = FAAC_INPUT.I_16BIT;
c.bitRate = 128000 / 2; // 128000
c.outputFormat = FAAC_OUTPUT.ADTS;
c.useLfe = 0;
c.aacObjectType = AAC_object_type.LOW;
c.bandWidth = 44100 / 2;
After encoding and writing to a data file, a "croak" sound is obtained.
https://disk.yandex.ru/d/1nyV0gmklqHMAw
Please tell me what am I doing wrong?
Thank you.