From 345ab0d1bc2b7cf3661a1360658b02980f2fd126 Mon Sep 17 00:00:00 2001 From: Kanat Kiialbaev Date: Wed, 10 Apr 2024 17:48:28 -0700 Subject: [PATCH] remove AudioManager references (#33) --- modules/audio_device/audio_device_impl.h | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/modules/audio_device/audio_device_impl.h b/modules/audio_device/audio_device_impl.h index c4ff2248cd..2f9910d43a 100644 --- a/modules/audio_device/audio_device_impl.h +++ b/modules/audio_device/audio_device_impl.h @@ -157,18 +157,10 @@ class AudioDeviceModuleImpl : public AudioDeviceModuleForTest { int GetRecordAudioParameters(AudioParameters* params) const override; #endif // WEBRTC_IOS - int32_t SetAudioDeviceSink(AudioDeviceSink* sink) const override; int32_t GetPlayoutDevice() const override; int32_t GetRecordingDevice() const override; -#if defined(WEBRTC_ANDROID) - // Only use this acccessor for test purposes on Android. - AudioManager* GetAndroidAudioManagerForTest() { - return audio_manager_android_.get(); - } -#endif - AudioDeviceBuffer* GetAudioDeviceBuffer() { return &audio_device_buffer_; } int RestartPlayoutInternally() override { return -1; } @@ -185,9 +177,6 @@ class AudioDeviceModuleImpl : public AudioDeviceModuleForTest { bool initialized_ = false; #if defined(WEBRTC_IOS) bool bypass_voice_processing_; -#elif defined(WEBRTC_ANDROID) - // Should be declared first to ensure that it outlives other resources. - std::unique_ptr audio_manager_android_; #endif AudioDeviceBuffer audio_device_buffer_; std::unique_ptr audio_device_;