Only clamp to 16 kHz when AECM is enabled.

Otherwise we could needlessly downsample to 16 kHz (rather than 32 kHz)
when HW AEC is used.

BUG=3259
R=bjornv@webrtc.org

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

git-svn-id: http://webrtc.googlecode.com/svn/trunk@6033 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
andrew@webrtc.org
2014-04-30 18:58:23 +00:00
parent ff2733204d
commit e44a84d851
2 changed files with 6 additions and 6 deletions

View File

@ -61,12 +61,7 @@ struct ExperimentalAgc {
bool enabled;
};
#if defined(ANDROID) || defined(IOS)
// AECM only supports 8kHz & 16kHz.
static const int kAudioProcMaxNativeSampleRateHz = 16000;
#else
static const int kAudioProcMaxNativeSampleRateHz = 32000;
#endif
// The Audio Processing Module (APM) provides a collection of voice processing
// components designed for real-time communications software.