Bug 1001272: Fix AEC far-end audio distortion caused by repeated audio snippets r=padenot

This commit is contained in:
Randell Jesup 2014-04-25 08:10:38 -04:00
Родитель 8ab27731dc
Коммит 050fbb4825
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -142,6 +142,7 @@ AudioOutputObserver::InsertFarEnd(const AudioDataValue *aBuffer, uint32_t aSampl
#endif
aSamples -= to_copy;
mSamplesSaved += to_copy;
aBuffer += to_copy * aChannels;
if (mSamplesSaved >= mChunkSize) {
int free_slots = mPlayoutFifo->capacity() - mPlayoutFifo->size();