blob: e7c1f0ec693ee1226c86f98413e598135fb48e7d [file] [log] [blame]
niklase@google.com470e71d2011-07-07 08:21:25 +00001/*
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 Bonadei92ea95e2017-09-15 06:47:31 +020011#include "modules/audio_device/audio_device_generic.h"
12#include "rtc_base/logging.h"
niklase@google.com470e71d2011-07-07 08:21:25 +000013
14namespace webrtc {
15
pbos@webrtc.org25509882013-04-09 10:30:35 +000016int32_t AudioDeviceGeneric::SetRecordingSampleRate(
henrikaba35d052015-07-14 17:04:08 +020017 const uint32_t samplesPerSec) {
Mirko Bonadei675513b2017-11-09 11:09:25 +010018 RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
henrikaba35d052015-07-14 17:04:08 +020019 return -1;
niklase@google.com470e71d2011-07-07 08:21:25 +000020}
21
henrikaba35d052015-07-14 17:04:08 +020022int32_t AudioDeviceGeneric::SetPlayoutSampleRate(const uint32_t samplesPerSec) {
Mirko Bonadei675513b2017-11-09 11:09:25 +010023 RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
henrikaba35d052015-07-14 17:04:08 +020024 return -1;
niklase@google.com470e71d2011-07-07 08:21:25 +000025}
pbos@webrtc.org25509882013-04-09 10:30:35 +000026
henrikaba35d052015-07-14 17:04:08 +020027int32_t AudioDeviceGeneric::SetLoudspeakerStatus(bool enable) {
Mirko Bonadei675513b2017-11-09 11:09:25 +010028 RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
henrikaba35d052015-07-14 17:04:08 +020029 return -1;
niklase@google.com470e71d2011-07-07 08:21:25 +000030}
31
henrikaba35d052015-07-14 17:04:08 +020032int32_t AudioDeviceGeneric::GetLoudspeakerStatus(bool& enable) const {
Mirko Bonadei675513b2017-11-09 11:09:25 +010033 RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
henrikaba35d052015-07-14 17:04:08 +020034 return -1;
niklase@google.com470e71d2011-07-07 08:21:25 +000035}
36
henrika@webrtc.orga954c072014-12-09 16:22:09 +000037bool AudioDeviceGeneric::BuiltInAECIsAvailable() const {
Mirko Bonadei675513b2017-11-09 11:09:25 +010038 RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
henrika@webrtc.orga954c072014-12-09 16:22:09 +000039 return false;
40}
41
henrikaba35d052015-07-14 17:04:08 +020042int32_t AudioDeviceGeneric::EnableBuiltInAEC(bool enable) {
Mirko Bonadei675513b2017-11-09 11:09:25 +010043 RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
henrikaba35d052015-07-14 17:04:08 +020044 return -1;
andrew@webrtc.orga3c6d612011-09-13 17:17:49 +000045}
46
henrikac14f5ff2015-09-23 14:08:33 +020047bool AudioDeviceGeneric::BuiltInAGCIsAvailable() const {
Mirko Bonadei675513b2017-11-09 11:09:25 +010048 RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
henrikac14f5ff2015-09-23 14:08:33 +020049 return false;
50}
51
52int32_t AudioDeviceGeneric::EnableBuiltInAGC(bool enable) {
Mirko Bonadei675513b2017-11-09 11:09:25 +010053 RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
henrikac14f5ff2015-09-23 14:08:33 +020054 return -1;
55}
56
57bool AudioDeviceGeneric::BuiltInNSIsAvailable() const {
Mirko Bonadei675513b2017-11-09 11:09:25 +010058 RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
henrikac14f5ff2015-09-23 14:08:33 +020059 return false;
60}
61
62int32_t AudioDeviceGeneric::EnableBuiltInNS(bool enable) {
Mirko Bonadei675513b2017-11-09 11:09:25 +010063 RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
henrikac14f5ff2015-09-23 14:08:33 +020064 return -1;
65}
66
maxmorin88e31a32016-08-16 00:56:09 -070067#if defined(WEBRTC_IOS)
henrikaba35d052015-07-14 17:04:08 +020068int AudioDeviceGeneric::GetPlayoutAudioParameters(
69 AudioParameters* params) const {
Mirko Bonadei675513b2017-11-09 11:09:25 +010070 RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
henrikaba35d052015-07-14 17:04:08 +020071 return -1;
72}
maxmorin88e31a32016-08-16 00:56:09 -070073
henrikaba35d052015-07-14 17:04:08 +020074int AudioDeviceGeneric::GetRecordAudioParameters(
75 AudioParameters* params) const {
Mirko Bonadei675513b2017-11-09 11:09:25 +010076 RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
henrikaba35d052015-07-14 17:04:08 +020077 return -1;
andrew@webrtc.orga3c6d612011-09-13 17:17:49 +000078}
maxmorin88e31a32016-08-16 00:56:09 -070079#endif // WEBRTC_IOS
andrew@webrtc.orga3c6d612011-09-13 17:17:49 +000080
niklase@google.com470e71d2011-07-07 08:21:25 +000081} // namespace webrtc