aboutsummaryrefslogtreecommitdiff
path: root/webrtc/modules/audio_processing/include/audio_processing.h
diff options
context:
space:
mode:
authorBjorn Volcker <bjornv@webrtc.org>2015-04-22 06:39:58 +0200
committerBjorn Volcker <bjornv@webrtc.org>2015-04-22 04:39:47 +0000
commitfb4945101476036ee973d81f383f8bcee180691f (patch)
tree7416296d200cc12a1e5165bd30bdc0ba1740e540 /webrtc/modules/audio_processing/include/audio_processing.h
parent8f85dbcce437c49808e2ed181452e42056b22dd7 (diff)
downloadwebrtc-fb4945101476036ee973d81f383f8bcee180691f.tar.gz
Disables mic bump-up level if not built with chromium
In http://chromegw.corp.google.com/viewvc/chrome-internal?view=rev&revision=61016 a feature to bump up low input audio levels to a fixed value of 33%. In https://webrtc-codereview.appspot.com/43109004/ a configuration to choose an arbitrary level was added, but still using 33% as default. The original bump-up feature was added to fix audio issues in chrome, but affected also non-chrome users. This CL disables the feature for non-chrome applications. Note that the default value is set to 0, but any value up to 12 will do. Zero was selected because it is more clear that the feature is turned off. BUG=4529 R=andrew@webrtc.org, tommi@webrtc.org Review URL: https://webrtc-codereview.appspot.com/43259004 Cr-Commit-Position: refs/heads/master@{#9048}
Diffstat (limited to 'webrtc/modules/audio_processing/include/audio_processing.h')
-rw-r--r--webrtc/modules/audio_processing/include/audio_processing.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/webrtc/modules/audio_processing/include/audio_processing.h b/webrtc/modules/audio_processing/include/audio_processing.h
index f91d53aff2..63c70f7e2a 100644
--- a/webrtc/modules/audio_processing/include/audio_processing.h
+++ b/webrtc/modules/audio_processing/include/audio_processing.h
@@ -78,7 +78,11 @@ struct ReportedDelay {
// [12, 255]. Here, 255 maps to 100%.
//
// Must be provided through AudioProcessing::Create(Confg&).
+#if defined(WEBRTC_CHROMIUM_BUILD)
static const int kAgcStartupMinVolume = 85;
+#else
+static const int kAgcStartupMinVolume = 0;
+#endif // defined(WEBRTC_CHROMIUM_BUILD)
struct ExperimentalAgc {
ExperimentalAgc() : enabled(true), startup_min_volume(kAgcStartupMinVolume) {}
ExperimentalAgc(bool enabled)