Line data Source code
1 : /*
2 : * Copyright (c) 2013 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/dummy/audio_device_dummy.h"
12 :
13 : namespace webrtc {
14 :
15 0 : int32_t AudioDeviceDummy::ActiveAudioLayer(
16 : AudioDeviceModule::AudioLayer& audioLayer) const {
17 0 : return -1;
18 : }
19 :
20 0 : AudioDeviceGeneric::InitStatus AudioDeviceDummy::Init() {
21 0 : return InitStatus::OK;
22 : }
23 :
24 0 : int32_t AudioDeviceDummy::Terminate() { return 0; }
25 :
26 0 : bool AudioDeviceDummy::Initialized() const { return true; }
27 :
28 0 : int16_t AudioDeviceDummy::PlayoutDevices() { return -1; }
29 :
30 0 : int16_t AudioDeviceDummy::RecordingDevices() { return -1; }
31 :
32 0 : int32_t AudioDeviceDummy::PlayoutDeviceName(uint16_t index,
33 : char name[kAdmMaxDeviceNameSize],
34 : char guid[kAdmMaxGuidSize]) {
35 0 : return -1;
36 : }
37 :
38 0 : int32_t AudioDeviceDummy::RecordingDeviceName(uint16_t index,
39 : char name[kAdmMaxDeviceNameSize],
40 : char guid[kAdmMaxGuidSize]) {
41 0 : return -1;
42 : }
43 :
44 0 : int32_t AudioDeviceDummy::SetPlayoutDevice(uint16_t index) { return -1; }
45 :
46 0 : int32_t AudioDeviceDummy::SetPlayoutDevice(
47 : AudioDeviceModule::WindowsDeviceType device) {
48 0 : return -1;
49 : }
50 :
51 0 : int32_t AudioDeviceDummy::SetRecordingDevice(uint16_t index) { return -1; }
52 :
53 0 : int32_t AudioDeviceDummy::SetRecordingDevice(
54 : AudioDeviceModule::WindowsDeviceType device) {
55 0 : return -1;
56 : }
57 :
58 0 : int32_t AudioDeviceDummy::PlayoutIsAvailable(bool& available) { return -1; }
59 :
60 0 : int32_t AudioDeviceDummy::InitPlayout() { return -1; }
61 :
62 0 : bool AudioDeviceDummy::PlayoutIsInitialized() const { return false; }
63 :
64 0 : int32_t AudioDeviceDummy::RecordingIsAvailable(bool& available) { return -1; }
65 :
66 0 : int32_t AudioDeviceDummy::InitRecording() { return -1; }
67 :
68 0 : bool AudioDeviceDummy::RecordingIsInitialized() const { return false; }
69 :
70 0 : int32_t AudioDeviceDummy::StartPlayout() { return -1; }
71 :
72 0 : int32_t AudioDeviceDummy::StopPlayout() { return -1; }
73 :
74 0 : bool AudioDeviceDummy::Playing() const { return false; }
75 :
76 0 : int32_t AudioDeviceDummy::StartRecording() { return -1; }
77 :
78 0 : int32_t AudioDeviceDummy::StopRecording() { return -1; }
79 :
80 0 : bool AudioDeviceDummy::Recording() const { return false; }
81 :
82 0 : int32_t AudioDeviceDummy::SetAGC(bool enable) { return -1; }
83 :
84 0 : bool AudioDeviceDummy::AGC() const { return false; }
85 :
86 0 : int32_t AudioDeviceDummy::SetWaveOutVolume(uint16_t volumeLeft,
87 : uint16_t volumeRight) {
88 0 : return -1;
89 : }
90 :
91 0 : int32_t AudioDeviceDummy::WaveOutVolume(uint16_t& volumeLeft,
92 : uint16_t& volumeRight) const {
93 0 : return -1;
94 : }
95 :
96 0 : int32_t AudioDeviceDummy::InitSpeaker() { return -1; }
97 :
98 0 : bool AudioDeviceDummy::SpeakerIsInitialized() const { return false; }
99 :
100 0 : int32_t AudioDeviceDummy::InitMicrophone() { return -1; }
101 :
102 0 : bool AudioDeviceDummy::MicrophoneIsInitialized() const { return false; }
103 :
104 0 : int32_t AudioDeviceDummy::SpeakerVolumeIsAvailable(bool& available) {
105 0 : return -1;
106 : }
107 :
108 0 : int32_t AudioDeviceDummy::SetSpeakerVolume(uint32_t volume) { return -1; }
109 :
110 0 : int32_t AudioDeviceDummy::SpeakerVolume(uint32_t& volume) const { return -1; }
111 :
112 0 : int32_t AudioDeviceDummy::MaxSpeakerVolume(uint32_t& maxVolume) const {
113 0 : return -1;
114 : }
115 :
116 0 : int32_t AudioDeviceDummy::MinSpeakerVolume(uint32_t& minVolume) const {
117 0 : return -1;
118 : }
119 :
120 0 : int32_t AudioDeviceDummy::SpeakerVolumeStepSize(uint16_t& stepSize) const {
121 0 : return -1;
122 : }
123 :
124 0 : int32_t AudioDeviceDummy::MicrophoneVolumeIsAvailable(bool& available) {
125 0 : return -1;
126 : }
127 :
128 0 : int32_t AudioDeviceDummy::SetMicrophoneVolume(uint32_t volume) { return -1; }
129 :
130 0 : int32_t AudioDeviceDummy::MicrophoneVolume(uint32_t& volume) const {
131 0 : return -1;
132 : }
133 :
134 0 : int32_t AudioDeviceDummy::MaxMicrophoneVolume(uint32_t& maxVolume) const {
135 0 : return -1;
136 : }
137 :
138 0 : int32_t AudioDeviceDummy::MinMicrophoneVolume(uint32_t& minVolume) const {
139 0 : return -1;
140 : }
141 :
142 0 : int32_t AudioDeviceDummy::MicrophoneVolumeStepSize(uint16_t& stepSize) const {
143 0 : return -1;
144 : }
145 :
146 0 : int32_t AudioDeviceDummy::SpeakerMuteIsAvailable(bool& available) { return -1; }
147 :
148 0 : int32_t AudioDeviceDummy::SetSpeakerMute(bool enable) { return -1; }
149 :
150 0 : int32_t AudioDeviceDummy::SpeakerMute(bool& enabled) const { return -1; }
151 :
152 0 : int32_t AudioDeviceDummy::MicrophoneMuteIsAvailable(bool& available) {
153 0 : return -1;
154 : }
155 :
156 0 : int32_t AudioDeviceDummy::SetMicrophoneMute(bool enable) { return -1; }
157 :
158 0 : int32_t AudioDeviceDummy::MicrophoneMute(bool& enabled) const { return -1; }
159 :
160 0 : int32_t AudioDeviceDummy::MicrophoneBoostIsAvailable(bool& available) {
161 0 : return -1;
162 : }
163 :
164 0 : int32_t AudioDeviceDummy::SetMicrophoneBoost(bool enable) { return -1; }
165 :
166 0 : int32_t AudioDeviceDummy::MicrophoneBoost(bool& enabled) const { return -1; }
167 :
168 0 : int32_t AudioDeviceDummy::StereoPlayoutIsAvailable(bool& available) {
169 0 : return -1;
170 : }
171 0 : int32_t AudioDeviceDummy::SetStereoPlayout(bool enable) { return -1; }
172 :
173 0 : int32_t AudioDeviceDummy::StereoPlayout(bool& enabled) const { return -1; }
174 :
175 0 : int32_t AudioDeviceDummy::StereoRecordingIsAvailable(bool& available) {
176 0 : return -1;
177 : }
178 :
179 0 : int32_t AudioDeviceDummy::SetStereoRecording(bool enable) { return -1; }
180 :
181 0 : int32_t AudioDeviceDummy::StereoRecording(bool& enabled) const { return -1; }
182 :
183 0 : int32_t AudioDeviceDummy::SetPlayoutBuffer(
184 : const AudioDeviceModule::BufferType type,
185 : uint16_t sizeMS) {
186 0 : return -1;
187 : }
188 :
189 0 : int32_t AudioDeviceDummy::PlayoutBuffer(AudioDeviceModule::BufferType& type,
190 : uint16_t& sizeMS) const {
191 0 : return -1;
192 : }
193 :
194 0 : int32_t AudioDeviceDummy::PlayoutDelay(uint16_t& delayMS) const { return -1; }
195 :
196 0 : int32_t AudioDeviceDummy::RecordingDelay(uint16_t& delayMS) const { return -1; }
197 :
198 0 : int32_t AudioDeviceDummy::CPULoad(uint16_t& load) const { return -1; }
199 :
200 0 : bool AudioDeviceDummy::PlayoutWarning() const { return false; }
201 :
202 0 : bool AudioDeviceDummy::PlayoutError() const { return false; }
203 :
204 0 : bool AudioDeviceDummy::RecordingWarning() const { return false; }
205 :
206 0 : bool AudioDeviceDummy::RecordingError() const { return false; }
207 :
208 0 : void AudioDeviceDummy::ClearPlayoutWarning() {}
209 :
210 0 : void AudioDeviceDummy::ClearPlayoutError() {}
211 :
212 0 : void AudioDeviceDummy::ClearRecordingWarning() {}
213 :
214 0 : void AudioDeviceDummy::ClearRecordingError() {}
215 :
216 0 : void AudioDeviceDummy::AttachAudioBuffer(AudioDeviceBuffer* audioBuffer) {}
217 : } // namespace webrtc
|