aboutsummaryrefslogtreecommitdiff
path: root/webrtc/voice_engine/voice_engine_defines.h
diff options
context:
space:
mode:
authorandrew@webrtc.org <andrew@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2013-10-04 17:54:09 +0000
committerandrew@webrtc.org <andrew@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2013-10-04 17:54:09 +0000
commit6c264cc92eb554716814db200b84752d4dfb6ba3 (patch)
tree961ad783383599630bb6c2ef0f5fd984749bdc55 /webrtc/voice_engine/voice_engine_defines.h
parent83b9e5b32875897a66f56c26bcbebbecc71f081f (diff)
downloadwebrtc-6c264cc92eb554716814db200b84752d4dfb6ba3.tar.gz
Clean up AudioProcessing defaults and errors.
- Remove unneeded #defines and switch the remainder to consts. - All AudioProcessing components are disabled by default, so remove explicit disables. - AudioProcessing uses a rational 16 kHz mono default, so no need to explictly initialize. - Add assert(false) to real-time errors which should not occur. TESTED=trybots R=bjornv@webrtc.org, xians@webrtc.org Review URL: https://webrtc-codereview.appspot.com/2253005 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4924 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'webrtc/voice_engine/voice_engine_defines.h')
-rw-r--r--webrtc/voice_engine/voice_engine_defines.h15
1 files changed, 1 insertions, 14 deletions
diff --git a/webrtc/voice_engine/voice_engine_defines.h b/webrtc/voice_engine/voice_engine_defines.h
index 42851d444b..8e5b24fb60 100644
--- a/webrtc/voice_engine/voice_engine_defines.h
+++ b/webrtc/voice_engine/voice_engine_defines.h
@@ -71,6 +71,7 @@ const bool kDefaultAgcState =
#else
true;
#endif
+const GainControl::Mode kDefaultRxAgcMode = GainControl::kAdaptiveDigital;
// Codec
// Min init target rate for iSAC-wb
@@ -122,20 +123,6 @@ enum { kVoiceEngineMaxRtpExtensionId = 14 };
} // namespace webrtc
-// TODO(ajm): we shouldn't be using the precompiler for this.
-// Use enums or bools as appropriate.
-#define WEBRTC_VOICE_ENGINE_RX_AGC_DEFAULT_STATE false
- // AudioProcessing RX AGC off
-#define WEBRTC_VOICE_ENGINE_RX_NS_DEFAULT_STATE false
- // AudioProcessing RX NS off
-#define WEBRTC_VOICE_ENGINE_RX_HP_DEFAULT_STATE false
- // AudioProcessing RX High Pass Filter off
-
-#define WEBRTC_VOICE_ENGINE_RX_AGC_DEFAULT_MODE GainControl::kAdaptiveDigital
- // AudioProcessing AGC mode
-#define WEBRTC_VOICE_ENGINE_RX_NS_DEFAULT_MODE NoiseSuppression::kModerate
- // AudioProcessing RX NS mode
-
// ----------------------------------------------------------------------------
// Build information macros
// ----------------------------------------------------------------------------