Closed Bug 1751963 Opened 2 years ago Closed 2 years ago

Apply audio settings before starting the audio processing

Categories

(Core :: Audio/Video: MediaStreamGraph, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
99 Branch
Tracking Status
firefox99 --- fixed

People

(Reporter: chunmin, Assigned: chunmin)

References

Details

Attachments

(4 files)

Per bug 1749281 comment 4, we should apply audio settings before starting the audio processing, since we will need those setting values in the audio processing steps.

MediaEngineWebRTCMicrophoneSource doesn't need to know APM. The
AudioInputProcessing takes care of the audio processing provided by
libwebrtc.

In the current design, the SetPassThrough can start the initial step
for audio-processing, which requires to know the channel-count requested
by the users, so it's better to set the channel-count before setting the
pass-through to prevent from using an incorrect channel-count value.

Depends on D136919

The NotifyInputData has been removed in bug 1741959. Now the
mRequestedInputChannelCount is totally unrelated with it.

Depends on D136920

The audio processing configurations should be set before starting audio
device and audio processing.

Depends on D136921

Blocks: 1749281
Pushed by cchang@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4ae72fb964a8
Rephrase comments for mCurrentPrefs r=padenot
https://hg.mozilla.org/integration/autoland/rev/3ef229753309
Set channel-count before pass-through r=padenot
https://hg.mozilla.org/integration/autoland/rev/d9efbefc2e70
Remove outdated comments r=padenot
https://hg.mozilla.org/integration/autoland/rev/5e58123c1024
Apply audio settings before starting audio r=padenot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: