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 | |
pbos@webrtc.org | 811269d | 2013-07-11 13:24:38 +0000 | [diff] [blame] | 11 | #include "webrtc/modules/audio_device/audio_device_generic.h" |
Edward Lemur | c20978e | 2017-07-06 19:44:34 +0200 | [diff] [blame] | 12 | #include "webrtc/rtc_base/logging.h" |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 13 | |
| 14 | namespace webrtc { |
| 15 | |
pbos@webrtc.org | 2550988 | 2013-04-09 10:30:35 +0000 | [diff] [blame] | 16 | int32_t AudioDeviceGeneric::SetRecordingSampleRate( |
henrika | ba35d05 | 2015-07-14 17:04:08 +0200 | [diff] [blame] | 17 | const uint32_t samplesPerSec) { |
| 18 | LOG_F(LS_ERROR) << "Not supported on this platform"; |
| 19 | return -1; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 20 | } |
| 21 | |
henrika | ba35d05 | 2015-07-14 17:04:08 +0200 | [diff] [blame] | 22 | int32_t AudioDeviceGeneric::SetPlayoutSampleRate(const uint32_t samplesPerSec) { |
| 23 | LOG_F(LS_ERROR) << "Not supported on this platform"; |
| 24 | return -1; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 25 | } |
pbos@webrtc.org | 2550988 | 2013-04-09 10:30:35 +0000 | [diff] [blame] | 26 | |
henrika | ba35d05 | 2015-07-14 17:04:08 +0200 | [diff] [blame] | 27 | int32_t AudioDeviceGeneric::SetLoudspeakerStatus(bool enable) { |
| 28 | LOG_F(LS_ERROR) << "Not supported on this platform"; |
| 29 | return -1; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 30 | } |
| 31 | |
henrika | ba35d05 | 2015-07-14 17:04:08 +0200 | [diff] [blame] | 32 | int32_t AudioDeviceGeneric::GetLoudspeakerStatus(bool& enable) const { |
| 33 | LOG_F(LS_ERROR) << "Not supported on this platform"; |
| 34 | return -1; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 35 | } |
| 36 | |
henrika@webrtc.org | a954c07 | 2014-12-09 16:22:09 +0000 | [diff] [blame] | 37 | bool AudioDeviceGeneric::BuiltInAECIsAvailable() const { |
henrika | ba35d05 | 2015-07-14 17:04:08 +0200 | [diff] [blame] | 38 | LOG_F(LS_ERROR) << "Not supported on this platform"; |
henrika@webrtc.org | a954c07 | 2014-12-09 16:22:09 +0000 | [diff] [blame] | 39 | return false; |
| 40 | } |
| 41 | |
henrika | ba35d05 | 2015-07-14 17:04:08 +0200 | [diff] [blame] | 42 | int32_t AudioDeviceGeneric::EnableBuiltInAEC(bool enable) { |
| 43 | LOG_F(LS_ERROR) << "Not supported on this platform"; |
| 44 | return -1; |
andrew@webrtc.org | a3c6d61 | 2011-09-13 17:17:49 +0000 | [diff] [blame] | 45 | } |
| 46 | |
henrika | c14f5ff | 2015-09-23 14:08:33 +0200 | [diff] [blame] | 47 | bool AudioDeviceGeneric::BuiltInAGCIsAvailable() const { |
| 48 | LOG_F(LS_ERROR) << "Not supported on this platform"; |
| 49 | return false; |
| 50 | } |
| 51 | |
| 52 | int32_t AudioDeviceGeneric::EnableBuiltInAGC(bool enable) { |
| 53 | LOG_F(LS_ERROR) << "Not supported on this platform"; |
| 54 | return -1; |
| 55 | } |
| 56 | |
| 57 | bool AudioDeviceGeneric::BuiltInNSIsAvailable() const { |
| 58 | LOG_F(LS_ERROR) << "Not supported on this platform"; |
| 59 | return false; |
| 60 | } |
| 61 | |
| 62 | int32_t AudioDeviceGeneric::EnableBuiltInNS(bool enable) { |
| 63 | LOG_F(LS_ERROR) << "Not supported on this platform"; |
| 64 | return -1; |
| 65 | } |
| 66 | |
maxmorin | 88e31a3 | 2016-08-16 00:56:09 -0700 | [diff] [blame] | 67 | #if defined(WEBRTC_IOS) |
henrika | ba35d05 | 2015-07-14 17:04:08 +0200 | [diff] [blame] | 68 | int AudioDeviceGeneric::GetPlayoutAudioParameters( |
| 69 | AudioParameters* params) const { |
| 70 | LOG_F(LS_ERROR) << "Not supported on this platform"; |
| 71 | return -1; |
| 72 | } |
maxmorin | 88e31a3 | 2016-08-16 00:56:09 -0700 | [diff] [blame] | 73 | |
henrika | ba35d05 | 2015-07-14 17:04:08 +0200 | [diff] [blame] | 74 | int AudioDeviceGeneric::GetRecordAudioParameters( |
| 75 | AudioParameters* params) const { |
| 76 | LOG_F(LS_ERROR) << "Not supported on this platform"; |
| 77 | return -1; |
andrew@webrtc.org | a3c6d61 | 2011-09-13 17:17:49 +0000 | [diff] [blame] | 78 | } |
maxmorin | 88e31a3 | 2016-08-16 00:56:09 -0700 | [diff] [blame] | 79 | #endif // WEBRTC_IOS |
andrew@webrtc.org | a3c6d61 | 2011-09-13 17:17:49 +0000 | [diff] [blame] | 80 | |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 81 | } // namespace webrtc |