xref: /aosp_15_r20/external/webrtc/modules/audio_device/audio_device_generic.cc (revision d9f758449e529ab9291ac668be2861e7a55c2422)
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 
11 #include "modules/audio_device/audio_device_generic.h"
12 
13 #include "rtc_base/logging.h"
14 
15 namespace webrtc {
16 
BuiltInAECIsAvailable() const17 bool AudioDeviceGeneric::BuiltInAECIsAvailable() const {
18   RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
19   return false;
20 }
21 
EnableBuiltInAEC(bool enable)22 int32_t AudioDeviceGeneric::EnableBuiltInAEC(bool enable) {
23   RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
24   return -1;
25 }
26 
BuiltInAGCIsAvailable() const27 bool AudioDeviceGeneric::BuiltInAGCIsAvailable() const {
28   RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
29   return false;
30 }
31 
EnableBuiltInAGC(bool enable)32 int32_t AudioDeviceGeneric::EnableBuiltInAGC(bool enable) {
33   RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
34   return -1;
35 }
36 
BuiltInNSIsAvailable() const37 bool AudioDeviceGeneric::BuiltInNSIsAvailable() const {
38   RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
39   return false;
40 }
41 
EnableBuiltInNS(bool enable)42 int32_t AudioDeviceGeneric::EnableBuiltInNS(bool enable) {
43   RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
44   return -1;
45 }
46 
GetPlayoutUnderrunCount() const47 int32_t AudioDeviceGeneric::GetPlayoutUnderrunCount() const {
48   RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
49   return -1;
50 }
51 
52 #if defined(WEBRTC_IOS)
GetPlayoutAudioParameters(AudioParameters * params) const53 int AudioDeviceGeneric::GetPlayoutAudioParameters(
54     AudioParameters* params) const {
55   RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
56   return -1;
57 }
58 
GetRecordAudioParameters(AudioParameters * params) const59 int AudioDeviceGeneric::GetRecordAudioParameters(
60     AudioParameters* params) const {
61   RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
62   return -1;
63 }
64 #endif  // WEBRTC_IOS
65 
66 }  // namespace webrtc
67