knik0 / faac

Freeware Advanced Audio Coder faac mirror
https://sourceforge.net/projects/faac/
Other
179 stars 60 forks source link

Croaking sound after encoding. #45

Open VicLo2020 opened 2 years ago

VicLo2020 commented 2 years ago

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.