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

Side by Side Diff: webrtc/modules/audio_device/audio_device_data_observer.cc

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) 2017 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2017 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 } 195 }
196 int32_t SpeakerVolume(uint32_t* volume) const override { 196 int32_t SpeakerVolume(uint32_t* volume) const override {
197 return impl_->SpeakerVolume(volume); 197 return impl_->SpeakerVolume(volume);
198 } 198 }
199 int32_t MaxSpeakerVolume(uint32_t* max_volume) const override { 199 int32_t MaxSpeakerVolume(uint32_t* max_volume) const override {
200 return impl_->MaxSpeakerVolume(max_volume); 200 return impl_->MaxSpeakerVolume(max_volume);
201 } 201 }
202 int32_t MinSpeakerVolume(uint32_t* min_volume) const override { 202 int32_t MinSpeakerVolume(uint32_t* min_volume) const override {
203 return impl_->MinSpeakerVolume(min_volume); 203 return impl_->MinSpeakerVolume(min_volume);
204 } 204 }
205 int32_t SpeakerVolumeStepSize(uint16_t* step_size) const override {
206 return impl_->SpeakerVolumeStepSize(step_size);
207 }
208 int32_t MicrophoneVolumeIsAvailable(bool* available) override { 205 int32_t MicrophoneVolumeIsAvailable(bool* available) override {
209 return impl_->MicrophoneVolumeIsAvailable(available); 206 return impl_->MicrophoneVolumeIsAvailable(available);
210 } 207 }
211 int32_t SetMicrophoneVolume(uint32_t volume) override { 208 int32_t SetMicrophoneVolume(uint32_t volume) override {
212 return impl_->SetMicrophoneVolume(volume); 209 return impl_->SetMicrophoneVolume(volume);
213 } 210 }
214 int32_t MicrophoneVolume(uint32_t* volume) const override { 211 int32_t MicrophoneVolume(uint32_t* volume) const override {
215 return impl_->MicrophoneVolume(volume); 212 return impl_->MicrophoneVolume(volume);
216 } 213 }
217 int32_t MaxMicrophoneVolume(uint32_t* max_volume) const override { 214 int32_t MaxMicrophoneVolume(uint32_t* max_volume) const override {
218 return impl_->MaxMicrophoneVolume(max_volume); 215 return impl_->MaxMicrophoneVolume(max_volume);
219 } 216 }
220 int32_t MinMicrophoneVolume(uint32_t* min_volume) const override { 217 int32_t MinMicrophoneVolume(uint32_t* min_volume) const override {
221 return impl_->MinMicrophoneVolume(min_volume); 218 return impl_->MinMicrophoneVolume(min_volume);
222 } 219 }
223 int32_t MicrophoneVolumeStepSize(uint16_t* step_size) const override {
224 return impl_->MicrophoneVolumeStepSize(step_size);
225 }
226 int32_t SpeakerMuteIsAvailable(bool* available) override { 220 int32_t SpeakerMuteIsAvailable(bool* available) override {
227 return impl_->SpeakerMuteIsAvailable(available); 221 return impl_->SpeakerMuteIsAvailable(available);
228 } 222 }
229 int32_t SetSpeakerMute(bool enable) override { 223 int32_t SetSpeakerMute(bool enable) override {
230 return impl_->SetSpeakerMute(enable); 224 return impl_->SetSpeakerMute(enable);
231 } 225 }
232 int32_t SpeakerMute(bool* enabled) const override { 226 int32_t SpeakerMute(bool* enabled) const override {
233 return impl_->SpeakerMute(enabled); 227 return impl_->SpeakerMute(enabled);
234 } 228 }
235 int32_t MicrophoneMuteIsAvailable(bool* available) override { 229 int32_t MicrophoneMuteIsAvailable(bool* available) override {
236 return impl_->MicrophoneMuteIsAvailable(available); 230 return impl_->MicrophoneMuteIsAvailable(available);
237 } 231 }
238 int32_t SetMicrophoneMute(bool enable) override { 232 int32_t SetMicrophoneMute(bool enable) override {
239 return impl_->SetMicrophoneMute(enable); 233 return impl_->SetMicrophoneMute(enable);
240 } 234 }
241 int32_t MicrophoneMute(bool* enabled) const override { 235 int32_t MicrophoneMute(bool* enabled) const override {
242 return impl_->MicrophoneMute(enabled); 236 return impl_->MicrophoneMute(enabled);
243 } 237 }
244 int32_t MicrophoneBoostIsAvailable(bool* available) override {
245 return impl_->MicrophoneBoostIsAvailable(available);
246 }
247 int32_t SetMicrophoneBoost(bool enable) override {
248 return impl_->SetMicrophoneBoost(enable);
249 }
250 int32_t MicrophoneBoost(bool* enabled) const override {
251 return impl_->MicrophoneBoost(enabled);
252 }
253 int32_t StereoPlayoutIsAvailable(bool* available) const override { 238 int32_t StereoPlayoutIsAvailable(bool* available) const override {
254 return impl_->StereoPlayoutIsAvailable(available); 239 return impl_->StereoPlayoutIsAvailable(available);
255 } 240 }
256 int32_t SetStereoPlayout(bool enable) override { 241 int32_t SetStereoPlayout(bool enable) override {
257 return impl_->SetStereoPlayout(enable); 242 return impl_->SetStereoPlayout(enable);
258 } 243 }
259 int32_t StereoPlayout(bool* enabled) const override { 244 int32_t StereoPlayout(bool* enabled) const override {
260 return impl_->StereoPlayout(enabled); 245 return impl_->StereoPlayout(enabled);
261 } 246 }
262 int32_t StereoRecordingIsAvailable(bool* available) const override { 247 int32_t StereoRecordingIsAvailable(bool* available) const override {
263 return impl_->StereoRecordingIsAvailable(available); 248 return impl_->StereoRecordingIsAvailable(available);
264 } 249 }
265 int32_t SetStereoRecording(bool enable) override { 250 int32_t SetStereoRecording(bool enable) override {
266 return impl_->SetStereoRecording(enable); 251 return impl_->SetStereoRecording(enable);
267 } 252 }
268 int32_t StereoRecording(bool* enabled) const override { 253 int32_t StereoRecording(bool* enabled) const override {
269 return impl_->StereoRecording(enabled); 254 return impl_->StereoRecording(enabled);
270 } 255 }
271 int32_t SetRecordingChannel(const ChannelType channel) override { 256 int32_t SetRecordingChannel(const ChannelType channel) override {
272 return impl_->SetRecordingChannel(channel); 257 return impl_->SetRecordingChannel(channel);
273 } 258 }
274 int32_t RecordingChannel(ChannelType* channel) const override { 259 int32_t RecordingChannel(ChannelType* channel) const override {
275 return impl_->RecordingChannel(channel); 260 return impl_->RecordingChannel(channel);
276 } 261 }
277 int32_t SetPlayoutBuffer(const BufferType type, uint16_t size_ms) override {
278 return impl_->SetPlayoutBuffer(type, size_ms);
279 }
280 int32_t PlayoutBuffer(BufferType* type, uint16_t* size_ms) const override {
281 return impl_->PlayoutBuffer(type, size_ms);
282 }
283 int32_t PlayoutDelay(uint16_t* delay_ms) const override { 262 int32_t PlayoutDelay(uint16_t* delay_ms) const override {
284 return impl_->PlayoutDelay(delay_ms); 263 return impl_->PlayoutDelay(delay_ms);
285 } 264 }
286 int32_t RecordingDelay(uint16_t* delay_ms) const override { 265 int32_t RecordingDelay(uint16_t* delay_ms) const override {
287 return impl_->RecordingDelay(delay_ms); 266 return impl_->RecordingDelay(delay_ms);
288 } 267 }
289 int32_t CPULoad(uint16_t* load) const override {
290 return impl_->CPULoad(load);
291 }
292 int32_t StartRawOutputFileRecording(
293 const char pcm_file_name_utf8[kAdmMaxFileNameSize]) override {
294 return impl_->StartRawOutputFileRecording(pcm_file_name_utf8);
295 }
296 int32_t StopRawOutputFileRecording() override {
297 return impl_->StopRawOutputFileRecording();
298 }
299 int32_t StartRawInputFileRecording(
300 const char pcm_file_name_utf8[kAdmMaxFileNameSize]) override {
301 return impl_->StartRawInputFileRecording(pcm_file_name_utf8);
302 }
303 int32_t StopRawInputFileRecording() override {
304 return impl_->StopRawInputFileRecording();
305 }
306 int32_t SetRecordingSampleRate(const uint32_t samples_per_sec) override { 268 int32_t SetRecordingSampleRate(const uint32_t samples_per_sec) override {
307 return impl_->SetRecordingSampleRate(samples_per_sec); 269 return impl_->SetRecordingSampleRate(samples_per_sec);
308 } 270 }
309 int32_t RecordingSampleRate(uint32_t* samples_per_sec) const override { 271 int32_t RecordingSampleRate(uint32_t* samples_per_sec) const override {
310 return impl_->RecordingSampleRate(samples_per_sec); 272 return impl_->RecordingSampleRate(samples_per_sec);
311 } 273 }
312 int32_t SetPlayoutSampleRate(const uint32_t samples_per_sec) override { 274 int32_t SetPlayoutSampleRate(const uint32_t samples_per_sec) override {
313 return impl_->SetPlayoutSampleRate(samples_per_sec); 275 return impl_->SetPlayoutSampleRate(samples_per_sec);
314 } 276 }
315 int32_t PlayoutSampleRate(uint32_t* samples_per_sec) const override { 277 int32_t PlayoutSampleRate(uint32_t* samples_per_sec) const override {
316 return impl_->PlayoutSampleRate(samples_per_sec); 278 return impl_->PlayoutSampleRate(samples_per_sec);
317 } 279 }
318 int32_t ResetAudioDevice() override { return impl_->ResetAudioDevice(); }
319 int32_t SetLoudspeakerStatus(bool enable) override { 280 int32_t SetLoudspeakerStatus(bool enable) override {
320 return impl_->SetLoudspeakerStatus(enable); 281 return impl_->SetLoudspeakerStatus(enable);
321 } 282 }
322 int32_t GetLoudspeakerStatus(bool* enabled) const override { 283 int32_t GetLoudspeakerStatus(bool* enabled) const override {
323 return impl_->GetLoudspeakerStatus(enabled); 284 return impl_->GetLoudspeakerStatus(enabled);
324 } 285 }
325 bool BuiltInAECIsAvailable() const override { 286 bool BuiltInAECIsAvailable() const override {
326 return impl_->BuiltInAECIsAvailable(); 287 return impl_->BuiltInAECIsAvailable();
327 } 288 }
328 bool BuiltInAGCIsAvailable() const override { 289 bool BuiltInAGCIsAvailable() const override {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 new rtc::RefCountedObject<ADMWrapper>(id, audio_layer, observer)); 328 new rtc::RefCountedObject<ADMWrapper>(id, audio_layer, observer));
368 329
369 if (!audio_device->IsValid()) { 330 if (!audio_device->IsValid()) {
370 return nullptr; 331 return nullptr;
371 } 332 }
372 333
373 return audio_device; 334 return audio_device;
374 } 335 }
375 336
376 } // namespace webrtc 337 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_device/audio_device_buffer.cc ('k') | webrtc/modules/audio_device/audio_device_generic.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698