summaryrefslogtreecommitdiffstats
path: root/dom/media/GraphDriver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dom/media/GraphDriver.cpp')
-rw-r--r--dom/media/GraphDriver.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/dom/media/GraphDriver.cpp b/dom/media/GraphDriver.cpp
index 36c5b58864..744de30bb5 100644
--- a/dom/media/GraphDriver.cpp
+++ b/dom/media/GraphDriver.cpp
@@ -482,15 +482,9 @@ AudioCallbackDriver::AudioCallbackDriver(
"Invalid output channel count");
MOZ_ASSERT(mOutputChannelCount <= 8);
- bool allowVoice = StaticPrefs::
- media_getusermedia_microphone_prefer_voice_stream_with_processing_enabled();
-#ifdef MOZ_WIDGET_COCOA
- // Using the VoiceProcessingIO audio unit on MacOS 12 causes crashes in
- // OS code.
- allowVoice = allowVoice && nsCocoaFeatures::macOSVersionMajor() != 12;
-#endif
-
- if (aAudioInputType == AudioInputType::Voice && allowVoice) {
+ if (aAudioInputType == AudioInputType::Voice &&
+ StaticPrefs::
+ media_getusermedia_microphone_prefer_voice_stream_with_processing_enabled()) {
LOG(LogLevel::Debug, ("VOICE."));
mInputDevicePreference = CUBEB_DEVICE_PREF_VOICE;
CubebUtils::SetInCommunication(true);