blob: 7b8cfd1734f7892eb5a2bab14c69bb271a870cc7 [file] [log] [blame]
niklase@google.com470e71d2011-07-07 08:21:251/*
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 04:47:3111#include "modules/audio_device/audio_device_generic.h"
Jonas Olssona4d87372019-07-05 17:08:3312
Mirko Bonadei92ea95e2017-09-15 04:47:3113#include "rtc_base/logging.h"
niklase@google.com470e71d2011-07-07 08:21:2514
15namespace webrtc {
16
henrika@webrtc.orga954c072014-12-09 16:22:0917bool AudioDeviceGeneric::BuiltInAECIsAvailable() const {
Mirko Bonadei675513b2017-11-09 10:09:2518 RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
henrika@webrtc.orga954c072014-12-09 16:22:0919 return false;
20}
21
henrikaba35d052015-07-14 15:04:0822int32_t AudioDeviceGeneric::EnableBuiltInAEC(bool enable) {
Mirko Bonadei675513b2017-11-09 10:09:2523 RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
henrikaba35d052015-07-14 15:04:0824 return -1;
andrew@webrtc.orga3c6d612011-09-13 17:17:4925}
26
henrikac14f5ff2015-09-23 12:08:3327bool AudioDeviceGeneric::BuiltInAGCIsAvailable() const {
Mirko Bonadei675513b2017-11-09 10:09:2528 RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
henrikac14f5ff2015-09-23 12:08:3329 return false;
30}
31
32int32_t AudioDeviceGeneric::EnableBuiltInAGC(bool enable) {
Mirko Bonadei675513b2017-11-09 10:09:2533 RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
henrikac14f5ff2015-09-23 12:08:3334 return -1;
35}
36
37bool AudioDeviceGeneric::BuiltInNSIsAvailable() const {
Mirko Bonadei675513b2017-11-09 10:09:2538 RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
henrikac14f5ff2015-09-23 12:08:3339 return false;
40}
41
42int32_t AudioDeviceGeneric::EnableBuiltInNS(bool enable) {
Mirko Bonadei675513b2017-11-09 10:09:2543 RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
henrikac14f5ff2015-09-23 12:08:3344 return -1;
45}
46
Alex Narestbbeb1092019-08-16 09:49:0447int32_t AudioDeviceGeneric::GetPlayoutUnderrunCount() const {
48 RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
49 return -1;
50}
51
maxmorin88e31a32016-08-16 07:56:0952#if defined(WEBRTC_IOS)
henrikaba35d052015-07-14 15:04:0853int AudioDeviceGeneric::GetPlayoutAudioParameters(
54 AudioParameters* params) const {
Mirko Bonadei675513b2017-11-09 10:09:2555 RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
henrikaba35d052015-07-14 15:04:0856 return -1;
57}
maxmorin88e31a32016-08-16 07:56:0958
henrikaba35d052015-07-14 15:04:0859int AudioDeviceGeneric::GetRecordAudioParameters(
60 AudioParameters* params) const {
Mirko Bonadei675513b2017-11-09 10:09:2561 RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
henrikaba35d052015-07-14 15:04:0862 return -1;
andrew@webrtc.orga3c6d612011-09-13 17:17:4963}
maxmorin88e31a32016-08-16 07:56:0964#endif // WEBRTC_IOS
andrew@webrtc.orga3c6d612011-09-13 17:17:4965
niklase@google.com470e71d2011-07-07 08:21:2566} // namespace webrtc