Bug 1891885 don't use mInternalInBuffer to drain resampler r=pehrsons
commit607d2bdc0fd8cd0f07cb9cd7452845c9a3cceac2
authorKarl Tomlinson <karlt+@karlt.net>
Thu, 18 Apr 2024 00:01:14 +0000 (18 00:01 +0000)
committerKarl Tomlinson <karlt+@karlt.net>
Thu, 18 Apr 2024 00:01:14 +0000 (18 00:01 +0000)
treeeea5374d600850d49e70f1086f750a47b25e95d9
parent465b642e9eb3b14d6def0b08df1e986ce8f828b4
Bug 1891885 don't use mInternalInBuffer to drain resampler r=pehrsons

as this sometimes left unconsumed samples in the buffer, which interfered with
the timing of the buffer size reset after an underrun.

Differential Revision: https://phabricator.services.mozilla.com/D207659
dom/media/WavDumper.h
dom/media/driftcontrol/DynamicResampler.cpp
dom/media/driftcontrol/DynamicResampler.h
dom/media/driftcontrol/gtest/TestAudioDriftCorrection.cpp