DescriptionUse audio thread for the fake input audio stream.
Previously the fake input stream is creating a new thread to pump the callbacks, this is unnecessary and FakeAudioInputStream::Stop() might take time to stop the thread. I suspect that this is one of the potential causes for the timeout in WebRtc content browser tests on Android bots.
This patch changes the code to use AudioManager audio thread instead, hopefully this can reduce the flakiness on Android tests.
Also it changes |beep_lock| from a global lock to a lock used only by BeepContext privately.
BUG=387895
TEST=bots
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283822
Patch Set 1 #
Total comments: 4
Patch Set 2 : fixed the mac bots #
Messages
Total messages: 17 (0 generated)
|