Line data Source code
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 "webrtc/modules/audio_device/audio_device_generic.h"
12 : #include "webrtc/base/logging.h"
13 :
14 : namespace webrtc {
15 :
16 0 : int32_t AudioDeviceGeneric::SetRecordingSampleRate(
17 : const uint32_t samplesPerSec) {
18 0 : LOG_F(LS_ERROR) << "Not supported on this platform";
19 0 : return -1;
20 : }
21 :
22 0 : int32_t AudioDeviceGeneric::SetPlayoutSampleRate(const uint32_t samplesPerSec) {
23 0 : LOG_F(LS_ERROR) << "Not supported on this platform";
24 0 : return -1;
25 : }
26 :
27 0 : int32_t AudioDeviceGeneric::SetLoudspeakerStatus(bool enable) {
28 0 : LOG_F(LS_ERROR) << "Not supported on this platform";
29 0 : return -1;
30 : }
31 :
32 0 : int32_t AudioDeviceGeneric::GetLoudspeakerStatus(bool& enable) const {
33 0 : LOG_F(LS_ERROR) << "Not supported on this platform";
34 0 : return -1;
35 : }
36 :
37 0 : int32_t AudioDeviceGeneric::ResetAudioDevice() {
38 0 : LOG_F(LS_ERROR) << "Not supported on this platform";
39 0 : return -1;
40 : }
41 :
42 0 : int32_t AudioDeviceGeneric::SoundDeviceControl(unsigned int par1,
43 : unsigned int par2,
44 : unsigned int par3,
45 : unsigned int par4) {
46 0 : LOG_F(LS_ERROR) << "Not supported on this platform";
47 0 : return -1;
48 : }
49 :
50 0 : bool AudioDeviceGeneric::BuiltInAECIsAvailable() const {
51 0 : LOG_F(LS_ERROR) << "Not supported on this platform";
52 0 : return false;
53 : }
54 :
55 0 : int32_t AudioDeviceGeneric::EnableBuiltInAEC(bool enable) {
56 0 : LOG_F(LS_ERROR) << "Not supported on this platform";
57 0 : return -1;
58 : }
59 :
60 0 : bool AudioDeviceGeneric::BuiltInAGCIsAvailable() const {
61 0 : LOG_F(LS_ERROR) << "Not supported on this platform";
62 0 : return false;
63 : }
64 :
65 0 : int32_t AudioDeviceGeneric::EnableBuiltInAGC(bool enable) {
66 0 : LOG_F(LS_ERROR) << "Not supported on this platform";
67 0 : return -1;
68 : }
69 :
70 0 : bool AudioDeviceGeneric::BuiltInNSIsAvailable() const {
71 0 : LOG_F(LS_ERROR) << "Not supported on this platform";
72 0 : return false;
73 : }
74 :
75 0 : int32_t AudioDeviceGeneric::EnableBuiltInNS(bool enable) {
76 0 : LOG_F(LS_ERROR) << "Not supported on this platform";
77 0 : return -1;
78 : }
79 :
80 : #if defined(WEBRTC_IOS)
81 : int AudioDeviceGeneric::GetPlayoutAudioParameters(
82 : AudioParameters* params) const {
83 : LOG_F(LS_ERROR) << "Not supported on this platform";
84 : return -1;
85 : }
86 :
87 : int AudioDeviceGeneric::GetRecordAudioParameters(
88 : AudioParameters* params) const {
89 : LOG_F(LS_ERROR) << "Not supported on this platform";
90 : return -1;
91 : }
92 : #endif // WEBRTC_IOS
93 :
94 : } // namespace webrtc
|