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