blob: 2baea2a3a9a64e15508c8a1dffcf8fe64d488afb [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
henrika@webrtc.orga954c072014-12-09 16:22:09 +000016bool AudioDeviceGeneric::BuiltInAECIsAvailable() const {
Mirko Bonadei675513b2017-11-09 11:09:25 +010017 RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
henrika@webrtc.orga954c072014-12-09 16:22:09 +000018 return false;
19}
20
henrikaba35d052015-07-14 17:04:08 +020021int32_t AudioDeviceGeneric::EnableBuiltInAEC(bool enable) {
Mirko Bonadei675513b2017-11-09 11:09:25 +010022 RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
henrikaba35d052015-07-14 17:04:08 +020023 return -1;
andrew@webrtc.orga3c6d612011-09-13 17:17:49 +000024}
25
henrikac14f5ff2015-09-23 14:08:33 +020026bool AudioDeviceGeneric::BuiltInAGCIsAvailable() const {
Mirko Bonadei675513b2017-11-09 11:09:25 +010027 RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
henrikac14f5ff2015-09-23 14:08:33 +020028 return false;
29}
30
31int32_t AudioDeviceGeneric::EnableBuiltInAGC(bool enable) {
Mirko Bonadei675513b2017-11-09 11:09:25 +010032 RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
henrikac14f5ff2015-09-23 14:08:33 +020033 return -1;
34}
35
36bool AudioDeviceGeneric::BuiltInNSIsAvailable() const {
Mirko Bonadei675513b2017-11-09 11:09:25 +010037 RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
henrikac14f5ff2015-09-23 14:08:33 +020038 return false;
39}
40
41int32_t AudioDeviceGeneric::EnableBuiltInNS(bool enable) {
Mirko Bonadei675513b2017-11-09 11:09:25 +010042 RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
henrikac14f5ff2015-09-23 14:08:33 +020043 return -1;
44}
45
maxmorin88e31a32016-08-16 00:56:09 -070046#if defined(WEBRTC_IOS)
henrikaba35d052015-07-14 17:04:08 +020047int AudioDeviceGeneric::GetPlayoutAudioParameters(
48 AudioParameters* params) const {
Mirko Bonadei675513b2017-11-09 11:09:25 +010049 RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
henrikaba35d052015-07-14 17:04:08 +020050 return -1;
51}
maxmorin88e31a32016-08-16 00:56:09 -070052
henrikaba35d052015-07-14 17:04:08 +020053int AudioDeviceGeneric::GetRecordAudioParameters(
54 AudioParameters* params) const {
Mirko Bonadei675513b2017-11-09 11:09:25 +010055 RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
henrikaba35d052015-07-14 17:04:08 +020056 return -1;
andrew@webrtc.orga3c6d612011-09-13 17:17:49 +000057}
maxmorin88e31a32016-08-16 00:56:09 -070058#endif // WEBRTC_IOS
andrew@webrtc.orga3c6d612011-09-13 17:17:49 +000059
niklase@google.com470e71d2011-07-07 08:21:25 +000060} // namespace webrtc