Bug 1887774 delay AudioProcessing initialization until required r=pehrsons
commit9fcd2ec8dfe7a59cbafb3a2fa7977e04e309442c
authorKarl Tomlinson <karlt+@karlt.net>
Wed, 10 Apr 2024 21:54:46 +0000 (10 21:54 +0000)
committerKarl Tomlinson <karlt+@karlt.net>
Wed, 10 Apr 2024 21:54:46 +0000 (10 21:54 +0000)
treed06057f171e4600ec6b523090bf74c29886c5bcd
parent4385dce6fc73aa640c6154645c221f97da19094f
Bug 1887774 delay AudioProcessing initialization until required r=pehrsons

The benefit is that whether the DeviceInputTrack or reverse stream could be
affected by clock drift is more likely to be known, and so recreation of
mAudioProcessing will be less likely when, in a subsequent patch, the
AudioProcessing needs to be replaced when the possibility of drift changes.

mSkipProcessing and mRequestedInputChannelCount are now replaced by their
MediaEnginePrefs equivalents.  The AudioInputProcessing now starts in
pass-through mode, consistent with its initial AEC, AGC, and noise suppression
settings.

Differential Revision: https://phabricator.services.mozilla.com/D206868
dom/media/gtest/TestAudioInputProcessing.cpp
dom/media/gtest/TestAudioTrackGraph.cpp
dom/media/webrtc/MediaEngineWebRTCAudio.cpp
dom/media/webrtc/MediaEngineWebRTCAudio.h