From e66a85c278ef2be65b177b4fd40a598ad326f9b7 Mon Sep 17 00:00:00 2001 From: henrika Date: Mon, 17 Jul 2023 16:08:51 +0200 Subject: [PATCH] kDummyAudio now also creates Dummy ADM on Android The old Android ADM was removed in https://webrtc-review.googlesource.com/c/src/+/271841. This change resulted in a NULL as result when asking for a kDummyAudio ADM on Android. The small change below should ensure that a dummy ADM can be created on Android as well. Bug: webrtc:7452, b/291275589 Change-Id: I2c995ce6ba9a4117e3e39596546b133fe1c49204 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/311946 Reviewed-by: Mirko Bonadei Commit-Queue: Henrik Andreassson Cr-Commit-Position: refs/heads/main@{#40440} --- modules/audio_device/audio_device_impl.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/modules/audio_device/audio_device_impl.cc b/modules/audio_device/audio_device_impl.cc index c177d7df71..c0e0de6fec 100644 --- a/modules/audio_device/audio_device_impl.cc +++ b/modules/audio_device/audio_device_impl.cc @@ -65,11 +65,7 @@ rtc::scoped_refptr AudioDeviceModule::Create( AudioLayer audio_layer, TaskQueueFactory* task_queue_factory) { RTC_DLOG(LS_INFO) << __FUNCTION__; -#if defined(WEBRTC_ANDROID) - return CreateAndroidAudioDeviceModule(audio_layer); -#else return AudioDeviceModule::CreateForTest(audio_layer, task_queue_factory); -#endif } // static