Add Config struct for experimental AGC.

Disable in the audio mixer.

TBR=aluebs,bjornv
BUG=2844

Review URL: https://webrtc-codereview.appspot.com/7769004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@5454 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
andrew@webrtc.org 2014-01-29 04:57:25 +00:00
parent 7433a088d2
commit c7c7a531f3
2 changed files with 12 additions and 3 deletions

View File

@ -145,8 +145,10 @@ bool AudioConferenceMixerImpl::Init() {
if(_cbCrit.get() == NULL)
return false;
_limiter.reset(AudioProcessing::Create(_id));
if(_limiter.get() == NULL)
Config config;
config.Set<ExperimentalAgc>(new ExperimentalAgc(false));
_limiter.reset(AudioProcessing::Create(config));
if(!_limiter.get())
return false;
MemoryPool<AudioFrame>::CreateMemoryPool(_audioFramePool,

View File

@ -50,8 +50,15 @@ class VoiceDetection;
// except when really necessary.
struct DelayCorrection {
DelayCorrection() : enabled(false) {}
DelayCorrection(bool enabled) : enabled(enabled) {}
explicit DelayCorrection(bool enabled) : enabled(enabled) {}
bool enabled;
};
// Must be provided through AudioProcessing::Create(Confg&). It will have no
// impact if used with AudioProcessing::SetExtraOptions().
struct ExperimentalAgc {
ExperimentalAgc() : enabled(true) {}
explicit ExperimentalAgc(bool enabled) : enabled(enabled) {}
bool enabled;
};