blob: 91033b7d6486280e408872c3ff349a432aaf96df [file] [log] [blame]
pbos@webrtc.org096515b2013-07-30 12:32:59 +00001/*
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
Max Morin84cab202016-07-01 13:35:19 +020020AudioDeviceGeneric::InitStatus AudioDeviceDummy::Init() {
21 return InitStatus::OK;
22}
pbos@webrtc.org096515b2013-07-30 12:32:59 +000023
24int32_t AudioDeviceDummy::Terminate() { return 0; }
25
26bool AudioDeviceDummy::Initialized() const { return true; }
27
28int16_t AudioDeviceDummy::PlayoutDevices() { return -1; }
29
30int16_t AudioDeviceDummy::RecordingDevices() { return -1; }
31
32int32_t AudioDeviceDummy::PlayoutDeviceName(uint16_t index,
33 char name[kAdmMaxDeviceNameSize],
34 char guid[kAdmMaxGuidSize]) {
35 return -1;
36}
37
38int32_t AudioDeviceDummy::RecordingDeviceName(uint16_t index,
39 char name[kAdmMaxDeviceNameSize],
40 char guid[kAdmMaxGuidSize]) {
41 return -1;
42}
43
44int32_t AudioDeviceDummy::SetPlayoutDevice(uint16_t index) { return -1; }
45
46int32_t AudioDeviceDummy::SetPlayoutDevice(
47 AudioDeviceModule::WindowsDeviceType device) {
48 return -1;
49}
50
51int32_t AudioDeviceDummy::SetRecordingDevice(uint16_t index) { return -1; }
52
53int32_t AudioDeviceDummy::SetRecordingDevice(
54 AudioDeviceModule::WindowsDeviceType device) {
55 return -1;
56}
57
58int32_t AudioDeviceDummy::PlayoutIsAvailable(bool& available) { return -1; }
59
60int32_t AudioDeviceDummy::InitPlayout() { return -1; }
61
62bool AudioDeviceDummy::PlayoutIsInitialized() const { return false; }
63
64int32_t AudioDeviceDummy::RecordingIsAvailable(bool& available) { return -1; }
65
66int32_t AudioDeviceDummy::InitRecording() { return -1; }
67
68bool AudioDeviceDummy::RecordingIsInitialized() const { return false; }
69
70int32_t AudioDeviceDummy::StartPlayout() { return -1; }
71
maxmorin76cc9be2017-03-28 07:18:59 -070072int32_t AudioDeviceDummy::StopPlayout() { return 0; }
pbos@webrtc.org096515b2013-07-30 12:32:59 +000073
74bool AudioDeviceDummy::Playing() const { return false; }
75
76int32_t AudioDeviceDummy::StartRecording() { return -1; }
77
maxmorin76cc9be2017-03-28 07:18:59 -070078int32_t AudioDeviceDummy::StopRecording() { return 0; }
pbos@webrtc.org096515b2013-07-30 12:32:59 +000079
80bool AudioDeviceDummy::Recording() const { return false; }
81
82int32_t AudioDeviceDummy::SetAGC(bool enable) { return -1; }
83
84bool AudioDeviceDummy::AGC() const { return false; }
85
pbos@webrtc.org096515b2013-07-30 12:32:59 +000086int32_t AudioDeviceDummy::InitSpeaker() { return -1; }
87
88bool AudioDeviceDummy::SpeakerIsInitialized() const { return false; }
89
pbos@webrtc.org096515b2013-07-30 12:32:59 +000090int32_t AudioDeviceDummy::InitMicrophone() { return -1; }
91
92bool AudioDeviceDummy::MicrophoneIsInitialized() const { return false; }
93
94int32_t AudioDeviceDummy::SpeakerVolumeIsAvailable(bool& available) {
95 return -1;
96}
97
98int32_t AudioDeviceDummy::SetSpeakerVolume(uint32_t volume) { return -1; }
99
100int32_t AudioDeviceDummy::SpeakerVolume(uint32_t& volume) const { return -1; }
101
102int32_t AudioDeviceDummy::MaxSpeakerVolume(uint32_t& maxVolume) const {
103 return -1;
104}
105
106int32_t AudioDeviceDummy::MinSpeakerVolume(uint32_t& minVolume) const {
107 return -1;
108}
109
pbos@webrtc.org096515b2013-07-30 12:32:59 +0000110int32_t AudioDeviceDummy::MicrophoneVolumeIsAvailable(bool& available) {
111 return -1;
112}
113
114int32_t AudioDeviceDummy::SetMicrophoneVolume(uint32_t volume) { return -1; }
115
116int32_t AudioDeviceDummy::MicrophoneVolume(uint32_t& volume) const {
117 return -1;
118}
119
120int32_t AudioDeviceDummy::MaxMicrophoneVolume(uint32_t& maxVolume) const {
121 return -1;
122}
123
124int32_t AudioDeviceDummy::MinMicrophoneVolume(uint32_t& minVolume) const {
125 return -1;
126}
127
pbos@webrtc.org096515b2013-07-30 12:32:59 +0000128int32_t AudioDeviceDummy::SpeakerMuteIsAvailable(bool& available) { return -1; }
129
130int32_t AudioDeviceDummy::SetSpeakerMute(bool enable) { return -1; }
131
132int32_t AudioDeviceDummy::SpeakerMute(bool& enabled) const { return -1; }
133
134int32_t AudioDeviceDummy::MicrophoneMuteIsAvailable(bool& available) {
135 return -1;
136}
137
138int32_t AudioDeviceDummy::SetMicrophoneMute(bool enable) { return -1; }
139
140int32_t AudioDeviceDummy::MicrophoneMute(bool& enabled) const { return -1; }
141
pbos@webrtc.org096515b2013-07-30 12:32:59 +0000142int32_t AudioDeviceDummy::StereoPlayoutIsAvailable(bool& available) {
143 return -1;
144}
145int32_t AudioDeviceDummy::SetStereoPlayout(bool enable) { return -1; }
146
147int32_t AudioDeviceDummy::StereoPlayout(bool& enabled) const { return -1; }
148
149int32_t AudioDeviceDummy::StereoRecordingIsAvailable(bool& available) {
150 return -1;
151}
152
153int32_t AudioDeviceDummy::SetStereoRecording(bool enable) { return -1; }
154
155int32_t AudioDeviceDummy::StereoRecording(bool& enabled) const { return -1; }
156
pbos@webrtc.org096515b2013-07-30 12:32:59 +0000157int32_t AudioDeviceDummy::PlayoutDelay(uint16_t& delayMS) const { return -1; }
158
159int32_t AudioDeviceDummy::RecordingDelay(uint16_t& delayMS) const { return -1; }
160
pbos@webrtc.org096515b2013-07-30 12:32:59 +0000161bool AudioDeviceDummy::PlayoutWarning() const { return false; }
162
163bool AudioDeviceDummy::PlayoutError() const { return false; }
164
165bool AudioDeviceDummy::RecordingWarning() const { return false; }
166
167bool AudioDeviceDummy::RecordingError() const { return false; }
168
169void AudioDeviceDummy::ClearPlayoutWarning() {}
170
171void AudioDeviceDummy::ClearPlayoutError() {}
172
173void AudioDeviceDummy::ClearRecordingWarning() {}
174
175void AudioDeviceDummy::ClearRecordingError() {}
176
177void AudioDeviceDummy::AttachAudioBuffer(AudioDeviceBuffer* audioBuffer) {}
178} // namespace webrtc