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

Unified Diff: webrtc/voice_engine/voe_hardware_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/voice_engine/voe_hardware_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/voice_engine/voe_hardware_impl.cc
diff --git a/webrtc/voice_engine/voe_hardware_impl.cc b/webrtc/voice_engine/voe_hardware_impl.cc
index b2bb87143e8532d7c2e8104e48921dd76872914d..9acbb5d9b3490a30a354fb9130205e0ffe2dba95 100644
--- a/webrtc/voice_engine/voe_hardware_impl.cc
+++ b/webrtc/voice_engine/voe_hardware_impl.cc
@@ -480,6 +480,38 @@ int VoEHardwareImpl::EnableBuiltInAEC(bool enable) {
return _shared->audio_device()->EnableBuiltInAEC(enable);
}
+bool VoEHardwareImpl::BuiltInAGCIsAvailable() const {
+ if (!_shared->statistics().Initialized()) {
+ _shared->SetLastError(VE_NOT_INITED, kTraceError);
+ return false;
+ }
+ return _shared->audio_device()->BuiltInAGCIsAvailable();
+}
+
+int VoEHardwareImpl::EnableBuiltInAGC(bool enable) {
+ if (!_shared->statistics().Initialized()) {
+ _shared->SetLastError(VE_NOT_INITED, kTraceError);
+ return -1;
+ }
+ return _shared->audio_device()->EnableBuiltInAGC(enable);
+}
+
+bool VoEHardwareImpl::BuiltInNSIsAvailable() const {
+ if (!_shared->statistics().Initialized()) {
+ _shared->SetLastError(VE_NOT_INITED, kTraceError);
+ return false;
+ }
+ return _shared->audio_device()->BuiltInNSIsAvailable();
+}
+
+int VoEHardwareImpl::EnableBuiltInNS(bool enable) {
+ if (!_shared->statistics().Initialized()) {
+ _shared->SetLastError(VE_NOT_INITED, kTraceError);
+ return -1;
+ }
+ return _shared->audio_device()->EnableBuiltInNS(enable);
+}
+
#endif // WEBRTC_VOICE_ENGINE_HARDWARE_API
} // namespace webrtc
« no previous file with comments | « webrtc/voice_engine/voe_hardware_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698