Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Side by Side Diff: webrtc/modules/audio_device/include/fake_audio_device.h

Issue 3006803002: Removes unused APIs from the ADM (part II) (Closed)
Patch Set: nit Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 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 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 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 virtual int32_t StartRecording() { return 0; } 83 virtual int32_t StartRecording() { return 0; }
84 virtual bool Recording() const { return false; } 84 virtual bool Recording() const { return false; }
85 virtual bool AGC() const { return true; } 85 virtual bool AGC() const { return true; }
86 virtual bool SpeakerIsInitialized() const { return true; } 86 virtual bool SpeakerIsInitialized() const { return true; }
87 virtual bool MicrophoneIsInitialized() const { return true; } 87 virtual bool MicrophoneIsInitialized() const { return true; }
88 virtual int32_t SpeakerVolumeIsAvailable(bool* available) { return 0; } 88 virtual int32_t SpeakerVolumeIsAvailable(bool* available) { return 0; }
89 virtual int32_t SetSpeakerVolume(uint32_t volume) { return 0; } 89 virtual int32_t SetSpeakerVolume(uint32_t volume) { return 0; }
90 virtual int32_t SpeakerVolume(uint32_t* volume) const { return 0; } 90 virtual int32_t SpeakerVolume(uint32_t* volume) const { return 0; }
91 virtual int32_t MaxSpeakerVolume(uint32_t* maxVolume) const { return 0; } 91 virtual int32_t MaxSpeakerVolume(uint32_t* maxVolume) const { return 0; }
92 virtual int32_t MinSpeakerVolume(uint32_t* minVolume) const { return 0; } 92 virtual int32_t MinSpeakerVolume(uint32_t* minVolume) const { return 0; }
93 virtual int32_t SpeakerVolumeStepSize(uint16_t* stepSize) const { return 0; }
94 virtual int32_t MicrophoneVolumeIsAvailable(bool* available) { return 0; } 93 virtual int32_t MicrophoneVolumeIsAvailable(bool* available) { return 0; }
95 virtual int32_t SetMicrophoneVolume(uint32_t volume) { return 0; } 94 virtual int32_t SetMicrophoneVolume(uint32_t volume) { return 0; }
96 virtual int32_t MicrophoneVolume(uint32_t* volume) const { return 0; } 95 virtual int32_t MicrophoneVolume(uint32_t* volume) const { return 0; }
97 virtual int32_t MaxMicrophoneVolume(uint32_t* maxVolume) const { return 0; } 96 virtual int32_t MaxMicrophoneVolume(uint32_t* maxVolume) const { return 0; }
98 virtual int32_t MinMicrophoneVolume(uint32_t* minVolume) const { return 0; } 97 virtual int32_t MinMicrophoneVolume(uint32_t* minVolume) const { return 0; }
99 virtual int32_t MicrophoneVolumeStepSize(uint16_t* stepSize) const {
100 return 0;
101 }
102 virtual int32_t SpeakerMuteIsAvailable(bool* available) { return 0; } 98 virtual int32_t SpeakerMuteIsAvailable(bool* available) { return 0; }
103 virtual int32_t SetSpeakerMute(bool enable) { return 0; } 99 virtual int32_t SetSpeakerMute(bool enable) { return 0; }
104 virtual int32_t SpeakerMute(bool* enabled) const { return 0; } 100 virtual int32_t SpeakerMute(bool* enabled) const { return 0; }
105 virtual int32_t MicrophoneMuteIsAvailable(bool* available) { return 0; } 101 virtual int32_t MicrophoneMuteIsAvailable(bool* available) { return 0; }
106 virtual int32_t SetMicrophoneMute(bool enable) { return 0; } 102 virtual int32_t SetMicrophoneMute(bool enable) { return 0; }
107 virtual int32_t MicrophoneMute(bool* enabled) const { return 0; } 103 virtual int32_t MicrophoneMute(bool* enabled) const { return 0; }
108 virtual int32_t MicrophoneBoostIsAvailable(bool* available) { return 0; }
109 virtual int32_t SetMicrophoneBoost(bool enable) { return 0; }
110 virtual int32_t MicrophoneBoost(bool* enabled) const { return 0; }
111 virtual int32_t StereoPlayoutIsAvailable(bool* available) const { 104 virtual int32_t StereoPlayoutIsAvailable(bool* available) const {
112 *available = false; 105 *available = false;
113 return 0; 106 return 0;
114 } 107 }
115 virtual int32_t StereoPlayout(bool* enabled) const { return 0; } 108 virtual int32_t StereoPlayout(bool* enabled) const { return 0; }
116 virtual int32_t StereoRecordingIsAvailable(bool* available) const { 109 virtual int32_t StereoRecordingIsAvailable(bool* available) const {
117 *available = false; 110 *available = false;
118 return 0; 111 return 0;
119 } 112 }
120 virtual int32_t StereoRecording(bool* enabled) const { return 0; } 113 virtual int32_t StereoRecording(bool* enabled) const { return 0; }
121 virtual int32_t SetRecordingChannel(const ChannelType channel) { return 0; } 114 virtual int32_t SetRecordingChannel(const ChannelType channel) { return 0; }
122 virtual int32_t RecordingChannel(ChannelType* channel) const { return 0; } 115 virtual int32_t RecordingChannel(ChannelType* channel) const { return 0; }
123 virtual int32_t SetPlayoutBuffer(const BufferType type,
124 uint16_t sizeMS = 0) {
125 return 0;
126 }
127 virtual int32_t PlayoutBuffer(BufferType* type, uint16_t* sizeMS) const {
128 return 0;
129 }
130 virtual int32_t PlayoutDelay(uint16_t* delayMS) const { 116 virtual int32_t PlayoutDelay(uint16_t* delayMS) const {
131 *delayMS = 0; 117 *delayMS = 0;
132 return 0; 118 return 0;
133 } 119 }
134 virtual int32_t RecordingDelay(uint16_t* delayMS) const { return 0; } 120 virtual int32_t RecordingDelay(uint16_t* delayMS) const { return 0; }
135 virtual int32_t CPULoad(uint16_t* load) const { return 0; }
136 virtual int32_t StartRawOutputFileRecording(
137 const char pcmFileNameUTF8[kAdmMaxFileNameSize]) {
138 return 0;
139 }
140 virtual int32_t StopRawOutputFileRecording() { return 0; }
141 virtual int32_t StartRawInputFileRecording(
142 const char pcmFileNameUTF8[kAdmMaxFileNameSize]) {
143 return 0;
144 }
145 virtual int32_t StopRawInputFileRecording() { return 0; }
146 virtual int32_t SetRecordingSampleRate(const uint32_t samplesPerSec) { 121 virtual int32_t SetRecordingSampleRate(const uint32_t samplesPerSec) {
147 return 0; 122 return 0;
148 } 123 }
149 virtual int32_t RecordingSampleRate(uint32_t* samplesPerSec) const { 124 virtual int32_t RecordingSampleRate(uint32_t* samplesPerSec) const {
150 return 0; 125 return 0;
151 } 126 }
152 virtual int32_t SetPlayoutSampleRate(const uint32_t samplesPerSec) { 127 virtual int32_t SetPlayoutSampleRate(const uint32_t samplesPerSec) {
153 return 0; 128 return 0;
154 } 129 }
155 virtual int32_t PlayoutSampleRate(uint32_t* samplesPerSec) const { return 0; } 130 virtual int32_t PlayoutSampleRate(uint32_t* samplesPerSec) const { return 0; }
156 virtual int32_t ResetAudioDevice() { return 0; }
157 virtual int32_t SetLoudspeakerStatus(bool enable) { return 0; } 131 virtual int32_t SetLoudspeakerStatus(bool enable) { return 0; }
158 virtual int32_t GetLoudspeakerStatus(bool* enabled) const { return 0; } 132 virtual int32_t GetLoudspeakerStatus(bool* enabled) const { return 0; }
159 virtual bool BuiltInAECIsAvailable() const { return false; } 133 virtual bool BuiltInAECIsAvailable() const { return false; }
160 virtual int32_t EnableBuiltInAEC(bool enable) { return -1; } 134 virtual int32_t EnableBuiltInAEC(bool enable) { return -1; }
161 virtual bool BuiltInAGCIsAvailable() const { return false; } 135 virtual bool BuiltInAGCIsAvailable() const { return false; }
162 virtual int32_t EnableBuiltInAGC(bool enable) { return -1; } 136 virtual int32_t EnableBuiltInAGC(bool enable) { return -1; }
163 virtual bool BuiltInNSIsAvailable() const { return false; } 137 virtual bool BuiltInNSIsAvailable() const { return false; }
164 virtual int32_t EnableBuiltInNS(bool enable) { return -1; } 138 virtual int32_t EnableBuiltInNS(bool enable) { return -1; }
165 139
166 #if defined(WEBRTC_IOS) 140 #if defined(WEBRTC_IOS)
167 virtual int GetPlayoutAudioParameters(AudioParameters* params) const { 141 virtual int GetPlayoutAudioParameters(AudioParameters* params) const {
168 return -1; 142 return -1;
169 } 143 }
170 virtual int GetRecordAudioParameters(AudioParameters* params) const { 144 virtual int GetRecordAudioParameters(AudioParameters* params) const {
171 return -1; 145 return -1;
172 } 146 }
173 #endif // WEBRTC_IOS 147 #endif // WEBRTC_IOS
174 148
175 private: 149 private:
176 bool uses_default_module_implementation_ = false; 150 bool uses_default_module_implementation_ = false;
177 bool turn_off_module_callbacks_ = false; 151 bool turn_off_module_callbacks_ = false;
178 }; 152 };
179 153
180 } // namespace webrtc 154 } // namespace webrtc
181 155
182 #endif // WEBRTC_MODULES_AUDIO_DEVICE_INCLUDE_FAKE_AUDIO_DEVICE_H_ 156 #endif // WEBRTC_MODULES_AUDIO_DEVICE_INCLUDE_FAKE_AUDIO_DEVICE_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_device/include/audio_device.h ('k') | webrtc/modules/audio_device/include/mock_audio_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698