niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 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 | |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 11 | #include "modules/audio_device/audio_device_generic.h" |
| 12 | #include "rtc_base/logging.h" |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 13 | |
| 14 | namespace webrtc { |
| 15 | |
henrika@webrtc.org | a954c07 | 2014-12-09 16:22:09 +0000 | [diff] [blame] | 16 | bool AudioDeviceGeneric::BuiltInAECIsAvailable() const { |
Mirko Bonadei | 675513b | 2017-11-09 11:09:25 +0100 | [diff] [blame] | 17 | RTC_LOG_F(LS_ERROR) << "Not supported on this platform"; |
henrika@webrtc.org | a954c07 | 2014-12-09 16:22:09 +0000 | [diff] [blame] | 18 | return false; |
| 19 | } |
| 20 | |
henrika | ba35d05 | 2015-07-14 17:04:08 +0200 | [diff] [blame] | 21 | int32_t AudioDeviceGeneric::EnableBuiltInAEC(bool enable) { |
Mirko Bonadei | 675513b | 2017-11-09 11:09:25 +0100 | [diff] [blame] | 22 | RTC_LOG_F(LS_ERROR) << "Not supported on this platform"; |
henrika | ba35d05 | 2015-07-14 17:04:08 +0200 | [diff] [blame] | 23 | return -1; |
andrew@webrtc.org | a3c6d61 | 2011-09-13 17:17:49 +0000 | [diff] [blame] | 24 | } |
| 25 | |
henrika | c14f5ff | 2015-09-23 14:08:33 +0200 | [diff] [blame] | 26 | bool AudioDeviceGeneric::BuiltInAGCIsAvailable() const { |
Mirko Bonadei | 675513b | 2017-11-09 11:09:25 +0100 | [diff] [blame] | 27 | RTC_LOG_F(LS_ERROR) << "Not supported on this platform"; |
henrika | c14f5ff | 2015-09-23 14:08:33 +0200 | [diff] [blame] | 28 | return false; |
| 29 | } |
| 30 | |
| 31 | int32_t AudioDeviceGeneric::EnableBuiltInAGC(bool enable) { |
Mirko Bonadei | 675513b | 2017-11-09 11:09:25 +0100 | [diff] [blame] | 32 | RTC_LOG_F(LS_ERROR) << "Not supported on this platform"; |
henrika | c14f5ff | 2015-09-23 14:08:33 +0200 | [diff] [blame] | 33 | return -1; |
| 34 | } |
| 35 | |
| 36 | bool AudioDeviceGeneric::BuiltInNSIsAvailable() const { |
Mirko Bonadei | 675513b | 2017-11-09 11:09:25 +0100 | [diff] [blame] | 37 | RTC_LOG_F(LS_ERROR) << "Not supported on this platform"; |
henrika | c14f5ff | 2015-09-23 14:08:33 +0200 | [diff] [blame] | 38 | return false; |
| 39 | } |
| 40 | |
| 41 | int32_t AudioDeviceGeneric::EnableBuiltInNS(bool enable) { |
Mirko Bonadei | 675513b | 2017-11-09 11:09:25 +0100 | [diff] [blame] | 42 | RTC_LOG_F(LS_ERROR) << "Not supported on this platform"; |
henrika | c14f5ff | 2015-09-23 14:08:33 +0200 | [diff] [blame] | 43 | return -1; |
| 44 | } |
| 45 | |
maxmorin | 88e31a3 | 2016-08-16 00:56:09 -0700 | [diff] [blame] | 46 | #if defined(WEBRTC_IOS) |
henrika | ba35d05 | 2015-07-14 17:04:08 +0200 | [diff] [blame] | 47 | int AudioDeviceGeneric::GetPlayoutAudioParameters( |
| 48 | AudioParameters* params) const { |
Mirko Bonadei | 675513b | 2017-11-09 11:09:25 +0100 | [diff] [blame] | 49 | RTC_LOG_F(LS_ERROR) << "Not supported on this platform"; |
henrika | ba35d05 | 2015-07-14 17:04:08 +0200 | [diff] [blame] | 50 | return -1; |
| 51 | } |
maxmorin | 88e31a3 | 2016-08-16 00:56:09 -0700 | [diff] [blame] | 52 | |
henrika | ba35d05 | 2015-07-14 17:04:08 +0200 | [diff] [blame] | 53 | int AudioDeviceGeneric::GetRecordAudioParameters( |
| 54 | AudioParameters* params) const { |
Mirko Bonadei | 675513b | 2017-11-09 11:09:25 +0100 | [diff] [blame] | 55 | RTC_LOG_F(LS_ERROR) << "Not supported on this platform"; |
henrika | ba35d05 | 2015-07-14 17:04:08 +0200 | [diff] [blame] | 56 | return -1; |
andrew@webrtc.org | a3c6d61 | 2011-09-13 17:17:49 +0000 | [diff] [blame] | 57 | } |
maxmorin | 88e31a3 | 2016-08-16 00:56:09 -0700 | [diff] [blame] | 58 | #endif // WEBRTC_IOS |
andrew@webrtc.org | a3c6d61 | 2011-09-13 17:17:49 +0000 | [diff] [blame] | 59 | |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 60 | } // namespace webrtc |