1 /* 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 3 * 4 * Use of this source code is governed by a BSD-style license 5 * that can be found in the LICENSE file in the root of the source 6 * tree. An additional intellectual property rights grant can be found 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 9 */ 10 11 #include "modules/audio_device/audio_device_generic.h" 12 13 #include "rtc_base/logging.h" 14 15 namespace webrtc { 16 BuiltInAECIsAvailable() const17bool AudioDeviceGeneric::BuiltInAECIsAvailable() const { 18 RTC_LOG_F(LS_ERROR) << "Not supported on this platform"; 19 return false; 20 } 21 EnableBuiltInAEC(bool enable)22int32_t AudioDeviceGeneric::EnableBuiltInAEC(bool enable) { 23 RTC_LOG_F(LS_ERROR) << "Not supported on this platform"; 24 return -1; 25 } 26 BuiltInAGCIsAvailable() const27bool AudioDeviceGeneric::BuiltInAGCIsAvailable() const { 28 RTC_LOG_F(LS_ERROR) << "Not supported on this platform"; 29 return false; 30 } 31 EnableBuiltInAGC(bool enable)32int32_t AudioDeviceGeneric::EnableBuiltInAGC(bool enable) { 33 RTC_LOG_F(LS_ERROR) << "Not supported on this platform"; 34 return -1; 35 } 36 BuiltInNSIsAvailable() const37bool AudioDeviceGeneric::BuiltInNSIsAvailable() const { 38 RTC_LOG_F(LS_ERROR) << "Not supported on this platform"; 39 return false; 40 } 41 EnableBuiltInNS(bool enable)42int32_t AudioDeviceGeneric::EnableBuiltInNS(bool enable) { 43 RTC_LOG_F(LS_ERROR) << "Not supported on this platform"; 44 return -1; 45 } 46 GetPlayoutUnderrunCount() const47int32_t AudioDeviceGeneric::GetPlayoutUnderrunCount() const { 48 RTC_LOG_F(LS_ERROR) << "Not supported on this platform"; 49 return -1; 50 } 51 52 #if defined(WEBRTC_IOS) GetPlayoutAudioParameters(AudioParameters * params) const53int AudioDeviceGeneric::GetPlayoutAudioParameters( 54 AudioParameters* params) const { 55 RTC_LOG_F(LS_ERROR) << "Not supported on this platform"; 56 return -1; 57 } 58 GetRecordAudioParameters(AudioParameters * params) const59int AudioDeviceGeneric::GetRecordAudioParameters( 60 AudioParameters* params) const { 61 RTC_LOG_F(LS_ERROR) << "Not supported on this platform"; 62 return -1; 63 } 64 #endif // WEBRTC_IOS 65 66 } // namespace webrtc 67