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" |
henrika | ba35d05 | 2015-07-14 17:04:08 +0200 | [diff] [blame^] | 12 | #include "webrtc/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 | ba35d05 | 2015-07-14 17:04:08 +0200 | [diff] [blame^] | 37 | int32_t AudioDeviceGeneric::ResetAudioDevice() { |
| 38 | LOG_F(LS_ERROR) << "Not supported on this platform"; |
| 39 | return -1; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 40 | } |
| 41 | |
pbos@webrtc.org | 2550988 | 2013-04-09 10:30:35 +0000 | [diff] [blame] | 42 | int32_t AudioDeviceGeneric::SoundDeviceControl(unsigned int par1, |
henrika | ba35d05 | 2015-07-14 17:04:08 +0200 | [diff] [blame^] | 43 | unsigned int par2, |
| 44 | unsigned int par3, |
| 45 | unsigned int par4) { |
| 46 | LOG_F(LS_ERROR) << "Not supported on this platform"; |
| 47 | return -1; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 48 | } |
| 49 | |
henrika@webrtc.org | a954c07 | 2014-12-09 16:22:09 +0000 | [diff] [blame] | 50 | bool AudioDeviceGeneric::BuiltInAECIsAvailable() const { |
henrika | ba35d05 | 2015-07-14 17:04:08 +0200 | [diff] [blame^] | 51 | LOG_F(LS_ERROR) << "Not supported on this platform"; |
henrika@webrtc.org | a954c07 | 2014-12-09 16:22:09 +0000 | [diff] [blame] | 52 | return false; |
| 53 | } |
| 54 | |
henrika | ba35d05 | 2015-07-14 17:04:08 +0200 | [diff] [blame^] | 55 | int32_t AudioDeviceGeneric::EnableBuiltInAEC(bool enable) { |
| 56 | LOG_F(LS_ERROR) << "Not supported on this platform"; |
| 57 | return -1; |
andrew@webrtc.org | a3c6d61 | 2011-09-13 17:17:49 +0000 | [diff] [blame] | 58 | } |
| 59 | |
henrika | ba35d05 | 2015-07-14 17:04:08 +0200 | [diff] [blame^] | 60 | bool AudioDeviceGeneric::BuiltInAECIsEnabled() const { |
| 61 | LOG_F(LS_ERROR) << "Not supported on this platform"; |
| 62 | return false; |
| 63 | } |
| 64 | |
| 65 | int AudioDeviceGeneric::GetPlayoutAudioParameters( |
| 66 | AudioParameters* params) const { |
| 67 | LOG_F(LS_ERROR) << "Not supported on this platform"; |
| 68 | return -1; |
| 69 | } |
| 70 | int AudioDeviceGeneric::GetRecordAudioParameters( |
| 71 | AudioParameters* params) const { |
| 72 | LOG_F(LS_ERROR) << "Not supported on this platform"; |
| 73 | return -1; |
andrew@webrtc.org | a3c6d61 | 2011-09-13 17:17:49 +0000 | [diff] [blame] | 74 | } |
| 75 | |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 76 | } // namespace webrtc |