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

Unified Diff: webrtc/modules/audio_device/audio_device_impl.cc

Issue 1344563002: Improving support for Android Audio Effects in WebRTC (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Improved comments Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/modules/audio_device/audio_device_impl.h ('k') | webrtc/modules/audio_device/include/audio_device.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_device/audio_device_impl.cc
diff --git a/webrtc/modules/audio_device/audio_device_impl.cc b/webrtc/modules/audio_device/audio_device_impl.cc
index 01c8cee780e9eb30fa087a978ac8e2c3a809fe49..02fa9d9e3451c096e4351edf8b3cfcc4887fea36 100644
--- a/webrtc/modules/audio_device/audio_device_impl.cc
+++ b/webrtc/modules/audio_device/audio_device_impl.cc
@@ -1869,34 +1869,47 @@ int32_t AudioDeviceModuleImpl::SetLoudspeakerStatus(bool enable)
// GetLoudspeakerStatus
// ----------------------------------------------------------------------------
-int32_t AudioDeviceModuleImpl::GetLoudspeakerStatus(bool* enabled) const
-{
- CHECK_INITIALIZED();
+int32_t AudioDeviceModuleImpl::GetLoudspeakerStatus(bool* enabled) const {
+ CHECK_INITIALIZED();
+ if (_ptrAudioDevice->GetLoudspeakerStatus(*enabled) != 0) {
+ return -1;
+ }
+ return 0;
+}
- if (_ptrAudioDevice->GetLoudspeakerStatus(*enabled) != 0)
- {
- return -1;
- }
+bool AudioDeviceModuleImpl::BuiltInAECIsEnabled() const {
+ CHECK_INITIALIZED_BOOL();
+ return _ptrAudioDevice->BuiltInAECIsEnabled();
+}
- return 0;
+bool AudioDeviceModuleImpl::BuiltInAECIsAvailable() const {
+ CHECK_INITIALIZED_BOOL();
+ return _ptrAudioDevice->BuiltInAECIsAvailable();
}
-int32_t AudioDeviceModuleImpl::EnableBuiltInAEC(bool enable)
-{
+int32_t AudioDeviceModuleImpl::EnableBuiltInAEC(bool enable) {
CHECK_INITIALIZED();
return _ptrAudioDevice->EnableBuiltInAEC(enable);
}
-bool AudioDeviceModuleImpl::BuiltInAECIsEnabled() const
-{
- CHECK_INITIALIZED_BOOL();
+bool AudioDeviceModuleImpl::BuiltInAGCIsAvailable() const {
+ CHECK_INITIALIZED_BOOL();
+ return _ptrAudioDevice->BuiltInAGCIsAvailable();
+}
- return _ptrAudioDevice->BuiltInAECIsEnabled();
+int32_t AudioDeviceModuleImpl::EnableBuiltInAGC(bool enable) {
+ CHECK_INITIALIZED();
+ return _ptrAudioDevice->EnableBuiltInAGC(enable);
}
-bool AudioDeviceModuleImpl::BuiltInAECIsAvailable() const {
+bool AudioDeviceModuleImpl::BuiltInNSIsAvailable() const {
CHECK_INITIALIZED_BOOL();
- return _ptrAudioDevice->BuiltInAECIsAvailable();
+ return _ptrAudioDevice->BuiltInNSIsAvailable();
+}
+
+int32_t AudioDeviceModuleImpl::EnableBuiltInNS(bool enable) {
+ CHECK_INITIALIZED();
+ return _ptrAudioDevice->EnableBuiltInNS(enable);
}
int AudioDeviceModuleImpl::GetPlayoutAudioParameters(
« no previous file with comments | « webrtc/modules/audio_device/audio_device_impl.h ('k') | webrtc/modules/audio_device/include/audio_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698