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:
@ -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.
|
||||
|
Reference in New Issue
Block a user