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