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

Side by Side Diff: webrtc/pc/test/fakeaudiocapturemodule.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
« no previous file with comments | « webrtc/pc/test/fakeaudiocapturemodule.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2012 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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 RTC_NOTREACHED(); 316 RTC_NOTREACHED();
317 return 0; 317 return 0;
318 } 318 }
319 319
320 int32_t FakeAudioCaptureModule::MinSpeakerVolume( 320 int32_t FakeAudioCaptureModule::MinSpeakerVolume(
321 uint32_t* /*min_volume*/) const { 321 uint32_t* /*min_volume*/) const {
322 RTC_NOTREACHED(); 322 RTC_NOTREACHED();
323 return 0; 323 return 0;
324 } 324 }
325 325
326 int32_t FakeAudioCaptureModule::SpeakerVolumeStepSize(
327 uint16_t* /*step_size*/) const {
328 RTC_NOTREACHED();
329 return 0;
330 }
331
332 int32_t FakeAudioCaptureModule::MicrophoneVolumeIsAvailable( 326 int32_t FakeAudioCaptureModule::MicrophoneVolumeIsAvailable(
333 bool* /*available*/) { 327 bool* /*available*/) {
334 RTC_NOTREACHED(); 328 RTC_NOTREACHED();
335 return 0; 329 return 0;
336 } 330 }
337 331
338 int32_t FakeAudioCaptureModule::SetMicrophoneVolume(uint32_t volume) { 332 int32_t FakeAudioCaptureModule::SetMicrophoneVolume(uint32_t volume) {
339 rtc::CritScope cs(&crit_); 333 rtc::CritScope cs(&crit_);
340 current_mic_level_ = volume; 334 current_mic_level_ = volume;
341 return 0; 335 return 0;
(...skipping 10 matching lines...) Expand all
352 *max_volume = kMaxVolume; 346 *max_volume = kMaxVolume;
353 return 0; 347 return 0;
354 } 348 }
355 349
356 int32_t FakeAudioCaptureModule::MinMicrophoneVolume( 350 int32_t FakeAudioCaptureModule::MinMicrophoneVolume(
357 uint32_t* /*min_volume*/) const { 351 uint32_t* /*min_volume*/) const {
358 RTC_NOTREACHED(); 352 RTC_NOTREACHED();
359 return 0; 353 return 0;
360 } 354 }
361 355
362 int32_t FakeAudioCaptureModule::MicrophoneVolumeStepSize(
363 uint16_t* /*step_size*/) const {
364 RTC_NOTREACHED();
365 return 0;
366 }
367
368 int32_t FakeAudioCaptureModule::SpeakerMuteIsAvailable(bool* /*available*/) { 356 int32_t FakeAudioCaptureModule::SpeakerMuteIsAvailable(bool* /*available*/) {
369 RTC_NOTREACHED(); 357 RTC_NOTREACHED();
370 return 0; 358 return 0;
371 } 359 }
372 360
373 int32_t FakeAudioCaptureModule::SetSpeakerMute(bool /*enable*/) { 361 int32_t FakeAudioCaptureModule::SetSpeakerMute(bool /*enable*/) {
374 RTC_NOTREACHED(); 362 RTC_NOTREACHED();
375 return 0; 363 return 0;
376 } 364 }
377 365
(...skipping 10 matching lines...) Expand all
388 int32_t FakeAudioCaptureModule::SetMicrophoneMute(bool /*enable*/) { 376 int32_t FakeAudioCaptureModule::SetMicrophoneMute(bool /*enable*/) {
389 RTC_NOTREACHED(); 377 RTC_NOTREACHED();
390 return 0; 378 return 0;
391 } 379 }
392 380
393 int32_t FakeAudioCaptureModule::MicrophoneMute(bool* /*enabled*/) const { 381 int32_t FakeAudioCaptureModule::MicrophoneMute(bool* /*enabled*/) const {
394 RTC_NOTREACHED(); 382 RTC_NOTREACHED();
395 return 0; 383 return 0;
396 } 384 }
397 385
398 int32_t FakeAudioCaptureModule::MicrophoneBoostIsAvailable(
399 bool* /*available*/) {
400 RTC_NOTREACHED();
401 return 0;
402 }
403
404 int32_t FakeAudioCaptureModule::SetMicrophoneBoost(bool /*enable*/) {
405 RTC_NOTREACHED();
406 return 0;
407 }
408
409 int32_t FakeAudioCaptureModule::MicrophoneBoost(bool* /*enabled*/) const {
410 RTC_NOTREACHED();
411 return 0;
412 }
413
414 int32_t FakeAudioCaptureModule::StereoPlayoutIsAvailable( 386 int32_t FakeAudioCaptureModule::StereoPlayoutIsAvailable(
415 bool* available) const { 387 bool* available) const {
416 // No recording device, just dropping audio. Stereo can be dropped just 388 // No recording device, just dropping audio. Stereo can be dropped just
417 // as easily as mono. 389 // as easily as mono.
418 *available = true; 390 *available = true;
419 return 0; 391 return 0;
420 } 392 }
421 393
422 int32_t FakeAudioCaptureModule::SetStereoPlayout(bool /*enable*/) { 394 int32_t FakeAudioCaptureModule::SetStereoPlayout(bool /*enable*/) {
423 // No recording device, just dropping audio. Stereo can be dropped just 395 // No recording device, just dropping audio. Stereo can be dropped just
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 return 0; 432 return 0;
461 } 433 }
462 434
463 int32_t FakeAudioCaptureModule::RecordingChannel(ChannelType* channel) const { 435 int32_t FakeAudioCaptureModule::RecordingChannel(ChannelType* channel) const {
464 // Stereo recording not supported. However, WebRTC ADM returns kChannelBoth 436 // Stereo recording not supported. However, WebRTC ADM returns kChannelBoth
465 // in that case. Do the same here. 437 // in that case. Do the same here.
466 *channel = AudioDeviceModule::kChannelBoth; 438 *channel = AudioDeviceModule::kChannelBoth;
467 return 0; 439 return 0;
468 } 440 }
469 441
470 int32_t FakeAudioCaptureModule::SetPlayoutBuffer(const BufferType /*type*/,
471 uint16_t /*size_ms*/) {
472 RTC_NOTREACHED();
473 return 0;
474 }
475
476 int32_t FakeAudioCaptureModule::PlayoutBuffer(BufferType* /*type*/,
477 uint16_t* /*size_ms*/) const {
478 RTC_NOTREACHED();
479 return 0;
480 }
481
482 int32_t FakeAudioCaptureModule::PlayoutDelay(uint16_t* delay_ms) const { 442 int32_t FakeAudioCaptureModule::PlayoutDelay(uint16_t* delay_ms) const {
483 // No delay since audio frames are dropped. 443 // No delay since audio frames are dropped.
484 *delay_ms = 0; 444 *delay_ms = 0;
485 return 0; 445 return 0;
486 } 446 }
487 447
488 int32_t FakeAudioCaptureModule::RecordingDelay(uint16_t* /*delay_ms*/) const { 448 int32_t FakeAudioCaptureModule::RecordingDelay(uint16_t* /*delay_ms*/) const {
489 RTC_NOTREACHED(); 449 RTC_NOTREACHED();
490 return 0; 450 return 0;
491 } 451 }
492 452
493 int32_t FakeAudioCaptureModule::CPULoad(uint16_t* /*load*/) const {
494 RTC_NOTREACHED();
495 return 0;
496 }
497
498 int32_t FakeAudioCaptureModule::StartRawOutputFileRecording(
499 const char /*pcm_file_name_utf8*/[webrtc::kAdmMaxFileNameSize]) {
500 RTC_NOTREACHED();
501 return 0;
502 }
503
504 int32_t FakeAudioCaptureModule::StopRawOutputFileRecording() {
505 RTC_NOTREACHED();
506 return 0;
507 }
508
509 int32_t FakeAudioCaptureModule::StartRawInputFileRecording(
510 const char /*pcm_file_name_utf8*/[webrtc::kAdmMaxFileNameSize]) {
511 RTC_NOTREACHED();
512 return 0;
513 }
514
515 int32_t FakeAudioCaptureModule::StopRawInputFileRecording() {
516 RTC_NOTREACHED();
517 return 0;
518 }
519
520 int32_t FakeAudioCaptureModule::SetRecordingSampleRate( 453 int32_t FakeAudioCaptureModule::SetRecordingSampleRate(
521 const uint32_t /*samples_per_sec*/) { 454 const uint32_t /*samples_per_sec*/) {
522 RTC_NOTREACHED(); 455 RTC_NOTREACHED();
523 return 0; 456 return 0;
524 } 457 }
525 458
526 int32_t FakeAudioCaptureModule::RecordingSampleRate( 459 int32_t FakeAudioCaptureModule::RecordingSampleRate(
527 uint32_t* /*samples_per_sec*/) const { 460 uint32_t* /*samples_per_sec*/) const {
528 RTC_NOTREACHED(); 461 RTC_NOTREACHED();
529 return 0; 462 return 0;
530 } 463 }
531 464
532 int32_t FakeAudioCaptureModule::SetPlayoutSampleRate( 465 int32_t FakeAudioCaptureModule::SetPlayoutSampleRate(
533 const uint32_t /*samples_per_sec*/) { 466 const uint32_t /*samples_per_sec*/) {
534 RTC_NOTREACHED(); 467 RTC_NOTREACHED();
535 return 0; 468 return 0;
536 } 469 }
537 470
538 int32_t FakeAudioCaptureModule::PlayoutSampleRate( 471 int32_t FakeAudioCaptureModule::PlayoutSampleRate(
539 uint32_t* /*samples_per_sec*/) const { 472 uint32_t* /*samples_per_sec*/) const {
540 RTC_NOTREACHED(); 473 RTC_NOTREACHED();
541 return 0; 474 return 0;
542 } 475 }
543 476
544 int32_t FakeAudioCaptureModule::ResetAudioDevice() {
545 RTC_NOTREACHED();
546 return 0;
547 }
548
549 int32_t FakeAudioCaptureModule::SetLoudspeakerStatus(bool /*enable*/) { 477 int32_t FakeAudioCaptureModule::SetLoudspeakerStatus(bool /*enable*/) {
550 RTC_NOTREACHED(); 478 RTC_NOTREACHED();
551 return 0; 479 return 0;
552 } 480 }
553 481
554 int32_t FakeAudioCaptureModule::GetLoudspeakerStatus(bool* /*enabled*/) const { 482 int32_t FakeAudioCaptureModule::GetLoudspeakerStatus(bool* /*enabled*/) const {
555 RTC_NOTREACHED(); 483 RTC_NOTREACHED();
556 return 0; 484 return 0;
557 } 485 }
558 486
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
702 kNumberBytesPerSample, 630 kNumberBytesPerSample,
703 kNumberOfChannels, 631 kNumberOfChannels,
704 kSamplesPerSecond, kTotalDelayMs, 632 kSamplesPerSecond, kTotalDelayMs,
705 kClockDriftMs, current_mic_level, 633 kClockDriftMs, current_mic_level,
706 key_pressed, 634 key_pressed,
707 current_mic_level) != 0) { 635 current_mic_level) != 0) {
708 RTC_NOTREACHED(); 636 RTC_NOTREACHED();
709 } 637 }
710 SetMicrophoneVolume(current_mic_level); 638 SetMicrophoneVolume(current_mic_level);
711 } 639 }
OLDNEW
« no previous file with comments | « webrtc/pc/test/fakeaudiocapturemodule.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698