зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1001272: Fix AEC far-end audio distortion caused by repeated audio snippets r=padenot
This commit is contained in:
Родитель
8ab27731dc
Коммит
050fbb4825
|
@ -142,6 +142,7 @@ AudioOutputObserver::InsertFarEnd(const AudioDataValue *aBuffer, uint32_t aSampl
|
||||||
#endif
|
#endif
|
||||||
aSamples -= to_copy;
|
aSamples -= to_copy;
|
||||||
mSamplesSaved += to_copy;
|
mSamplesSaved += to_copy;
|
||||||
|
aBuffer += to_copy * aChannels;
|
||||||
|
|
||||||
if (mSamplesSaved >= mChunkSize) {
|
if (mSamplesSaved >= mChunkSize) {
|
||||||
int free_slots = mPlayoutFifo->capacity() - mPlayoutFifo->size();
|
int free_slots = mPlayoutFifo->capacity() - mPlayoutFifo->size();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче