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

Side by Side Diff: webrtc/media/engine/fakewebrtcvoiceengine.h

Issue 1875483002: Replace a few calls to VoEHardware with direct calls on the ADM, in WVoMC. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Add adm() function Created 4 years, 8 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 | « no previous file | webrtc/media/engine/webrtcvoiceengine.h » ('j') | 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 (c) 2010 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2010 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 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 449
450 // webrtc::VoEHardware 450 // webrtc::VoEHardware
451 WEBRTC_STUB(GetNumOfRecordingDevices, (int& num)); 451 WEBRTC_STUB(GetNumOfRecordingDevices, (int& num));
452 WEBRTC_STUB(GetNumOfPlayoutDevices, (int& num)); 452 WEBRTC_STUB(GetNumOfPlayoutDevices, (int& num));
453 WEBRTC_STUB(GetRecordingDeviceName, (int i, char* name, char* guid)); 453 WEBRTC_STUB(GetRecordingDeviceName, (int i, char* name, char* guid));
454 WEBRTC_STUB(GetPlayoutDeviceName, (int i, char* name, char* guid)); 454 WEBRTC_STUB(GetPlayoutDeviceName, (int i, char* name, char* guid));
455 WEBRTC_STUB(SetRecordingDevice, (int, webrtc::StereoChannel)); 455 WEBRTC_STUB(SetRecordingDevice, (int, webrtc::StereoChannel));
456 WEBRTC_STUB(SetPlayoutDevice, (int)); 456 WEBRTC_STUB(SetPlayoutDevice, (int));
457 WEBRTC_STUB(SetAudioDeviceLayer, (webrtc::AudioLayers)); 457 WEBRTC_STUB(SetAudioDeviceLayer, (webrtc::AudioLayers));
458 WEBRTC_STUB(GetAudioDeviceLayer, (webrtc::AudioLayers&)); 458 WEBRTC_STUB(GetAudioDeviceLayer, (webrtc::AudioLayers&));
459 WEBRTC_FUNC(SetRecordingSampleRate, (unsigned int samples_per_sec)) { 459 WEBRTC_STUB(SetRecordingSampleRate, (unsigned int samples_per_sec));
460 recording_sample_rate_ = samples_per_sec; 460 WEBRTC_STUB_CONST(RecordingSampleRate, (unsigned int* samples_per_sec));
461 return 0; 461 WEBRTC_STUB(SetPlayoutSampleRate, (unsigned int samples_per_sec));
462 } 462 WEBRTC_STUB_CONST(PlayoutSampleRate, (unsigned int* samples_per_sec));
463 WEBRTC_FUNC_CONST(RecordingSampleRate, (unsigned int* samples_per_sec)) {
464 *samples_per_sec = recording_sample_rate_;
465 return 0;
466 }
467 WEBRTC_FUNC(SetPlayoutSampleRate, (unsigned int samples_per_sec)) {
468 playout_sample_rate_ = samples_per_sec;
469 return 0;
470 }
471 WEBRTC_FUNC_CONST(PlayoutSampleRate, (unsigned int* samples_per_sec)) {
472 *samples_per_sec = playout_sample_rate_;
473 return 0;
474 }
475 WEBRTC_STUB(EnableBuiltInAEC, (bool enable)); 463 WEBRTC_STUB(EnableBuiltInAEC, (bool enable));
476 virtual bool BuiltInAECIsAvailable() const { return false; } 464 virtual bool BuiltInAECIsAvailable() const { return false; }
477 WEBRTC_STUB(EnableBuiltInAGC, (bool enable)); 465 WEBRTC_STUB(EnableBuiltInAGC, (bool enable));
478 virtual bool BuiltInAGCIsAvailable() const { return false; } 466 virtual bool BuiltInAGCIsAvailable() const { return false; }
479 WEBRTC_STUB(EnableBuiltInNS, (bool enable)); 467 WEBRTC_STUB(EnableBuiltInNS, (bool enable));
480 virtual bool BuiltInNSIsAvailable() const { return false; } 468 virtual bool BuiltInNSIsAvailable() const { return false; }
481 469
482 // webrtc::VoENetwork 470 // webrtc::VoENetwork
483 WEBRTC_FUNC(RegisterExternalTransport, (int channel, 471 WEBRTC_FUNC(RegisterExternalTransport, (int channel,
484 webrtc::Transport& transport)) { 472 webrtc::Transport& transport)) {
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
722 bool agc_enabled_ = false; 710 bool agc_enabled_ = false;
723 bool highpass_filter_enabled_ = false; 711 bool highpass_filter_enabled_ = false;
724 bool stereo_swapping_enabled_ = false; 712 bool stereo_swapping_enabled_ = false;
725 bool typing_detection_enabled_ = false; 713 bool typing_detection_enabled_ = false;
726 webrtc::EcModes ec_mode_ = webrtc::kEcDefault; 714 webrtc::EcModes ec_mode_ = webrtc::kEcDefault;
727 webrtc::AecmModes aecm_mode_ = webrtc::kAecmSpeakerphone; 715 webrtc::AecmModes aecm_mode_ = webrtc::kAecmSpeakerphone;
728 webrtc::NsModes ns_mode_ = webrtc::kNsDefault; 716 webrtc::NsModes ns_mode_ = webrtc::kNsDefault;
729 webrtc::AgcModes agc_mode_ = webrtc::kAgcDefault; 717 webrtc::AgcModes agc_mode_ = webrtc::kAgcDefault;
730 webrtc::AgcConfig agc_config_; 718 webrtc::AgcConfig agc_config_;
731 int playout_fail_channel_ = -1; 719 int playout_fail_channel_ = -1;
732 int recording_sample_rate_ = -1;
733 int playout_sample_rate_ = -1;
734 FakeAudioProcessing audio_processing_; 720 FakeAudioProcessing audio_processing_;
735 }; 721 };
736 722
737 } // namespace cricket 723 } // namespace cricket
738 724
739 #endif // WEBRTC_MEDIA_ENGINE_FAKEWEBRTCVOICEENGINE_H_ 725 #endif // WEBRTC_MEDIA_ENGINE_FAKEWEBRTCVOICEENGINE_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/media/engine/webrtcvoiceengine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698