Remove the different block lengths in ns_core
This CL has bit-exact output. What it does: * Remove the blockLen10Ms, as it is hardcoded to be equal to blockLen. * This makes outLen to be always zero, so it can be removed too. * It also avoids the need to have an outBuf, because it is not used, so it is also removed * Replaced blockLen10Ms by blockLen everywhere, since they were hardcoded to be equal. * We don't need to check if outLen is zero, because it always is, so it was removed. * Of course, the outBuf needs no initial set or copying around, because it is not used. BUG=webrtc:3811 R=bjornv@webrtc.org, kwiberg@webrtc.org Review URL: https://webrtc-codereview.appspot.com/30539004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7297 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -173,7 +173,8 @@ void NoiseSuppressionImpl::DestroyHandle(void* handle) const {
|
||||
int NoiseSuppressionImpl::InitializeHandle(void* handle) const {
|
||||
#if defined(WEBRTC_NS_FLOAT)
|
||||
return WebRtcNs_Init(static_cast<Handle*>(handle),
|
||||
apm_->proc_sample_rate_hz());
|
||||
apm_->proc_sample_rate_hz(),
|
||||
AudioProcessing::kChunkSizeMs);
|
||||
#elif defined(WEBRTC_NS_FIXED)
|
||||
return WebRtcNsx_Init(static_cast<Handle*>(handle),
|
||||
apm_->proc_sample_rate_hz());
|
||||
|
||||
Reference in New Issue
Block a user