blob: 7b8cfd1734f7892eb5a2bab14c69bb271a870cc7 [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"
Jonas Olssona4d87372019-07-05 19:08:33 +020012
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020013#include "rtc_base/logging.h"
niklase@google.com470e71d2011-07-07 08:21:25 +000014
15namespace webrtc {
16
henrika@webrtc.orga954c072014-12-09 16:22:09 +000017bool AudioDeviceGeneric::BuiltInAECIsAvailable() const {
Mirko Bonadei675513b2017-11-09 11:09:25 +010018 RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
henrika@webrtc.orga954c072014-12-09 16:22:09 +000019 return false;
20}
21
henrikaba35d052015-07-14 17:04:08 +020022int32_t AudioDeviceGeneric::EnableBuiltInAEC(bool enable) {
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;
andrew@webrtc.orga3c6d612011-09-13 17:17:49 +000025}
26
henrikac14f5ff2015-09-23 14:08:33 +020027bool AudioDeviceGeneric::BuiltInAGCIsAvailable() const {
Mirko Bonadei675513b2017-11-09 11:09:25 +010028 RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
henrikac14f5ff2015-09-23 14:08:33 +020029 return false;
30}
31
32int32_t AudioDeviceGeneric::EnableBuiltInAGC(bool enable) {
Mirko Bonadei675513b2017-11-09 11:09:25 +010033 RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
henrikac14f5ff2015-09-23 14:08:33 +020034 return -1;
35}
36
37bool AudioDeviceGeneric::BuiltInNSIsAvailable() const {
Mirko Bonadei675513b2017-11-09 11:09:25 +010038 RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
henrikac14f5ff2015-09-23 14:08:33 +020039 return false;
40}
41
42int32_t AudioDeviceGeneric::EnableBuiltInNS(bool enable) {
Mirko Bonadei675513b2017-11-09 11:09:25 +010043 RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
henrikac14f5ff2015-09-23 14:08:33 +020044 return -1;
45}
46
Alex Narestbbeb1092019-08-16 11:49:04 +020047int32_t AudioDeviceGeneric::GetPlayoutUnderrunCount() const {
48 RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
49 return -1;
50}
51
maxmorin88e31a32016-08-16 00:56:09 -070052#if defined(WEBRTC_IOS)
henrikaba35d052015-07-14 17:04:08 +020053int AudioDeviceGeneric::GetPlayoutAudioParameters(
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;
57}
maxmorin88e31a32016-08-16 00:56:09 -070058
henrikaba35d052015-07-14 17:04:08 +020059int AudioDeviceGeneric::GetRecordAudioParameters(
60 AudioParameters* params) const {
Mirko Bonadei675513b2017-11-09 11:09:25 +010061 RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
henrikaba35d052015-07-14 17:04:08 +020062 return -1;
andrew@webrtc.orga3c6d612011-09-13 17:17:49 +000063}
maxmorin88e31a32016-08-16 00:56:09 -070064#endif // WEBRTC_IOS
andrew@webrtc.orga3c6d612011-09-13 17:17:49 +000065
niklase@google.com470e71d2011-07-07 08:21:25 +000066} // namespace webrtc