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:
@ -55,6 +55,7 @@ int WebRtcNs_Free(NsHandle* NS_inst);
|
||||
* Input:
|
||||
* - NS_inst : Instance that should be initialized
|
||||
* - fs : sampling frequency
|
||||
* - blockLenMs : block length in ms
|
||||
*
|
||||
* Output:
|
||||
* - NS_inst : Initialized instance
|
||||
@ -62,7 +63,7 @@ int WebRtcNs_Free(NsHandle* NS_inst);
|
||||
* Return value : 0 - Ok
|
||||
* -1 - Error
|
||||
*/
|
||||
int WebRtcNs_Init(NsHandle* NS_inst, uint32_t fs);
|
||||
int WebRtcNs_Init(NsHandle* NS_inst, uint32_t fs, int blockLenMs);
|
||||
|
||||
/*
|
||||
* This changes the aggressiveness of the noise suppression method.
|
||||
|
||||
Reference in New Issue
Block a user