Force a memcpy directly from the AEC ring buffer.
Review URL: https://webrtc-codereview.appspot.com/1140004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@3570 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
ac1f877a5e
commit
9fbd9ca849
@ -601,8 +601,6 @@ void WebRtcAec_ProcessFrame(AecCore* aec,
|
||||
int16_t* out,
|
||||
int16_t* outH) {
|
||||
int out_elements = 0;
|
||||
int16_t* out_ptr = NULL;
|
||||
int16_t out_tmp[FRAME_LEN];
|
||||
|
||||
// For each frame the process is as follows:
|
||||
// 1) If the system_delay indicates on being too small for processing a
|
||||
@ -671,12 +669,10 @@ void WebRtcAec_ProcessFrame(AecCore* aec,
|
||||
}
|
||||
}
|
||||
// Obtain an output frame.
|
||||
WebRtc_ReadBuffer(aec->outFrBuf, (void**) &out_ptr, out_tmp, FRAME_LEN);
|
||||
memcpy(out, out_ptr, sizeof(int16_t) * FRAME_LEN);
|
||||
WebRtc_ReadBuffer(aec->outFrBuf, NULL, out, FRAME_LEN);
|
||||
// For H band.
|
||||
if (aec->sampFreq == 32000) {
|
||||
WebRtc_ReadBuffer(aec->outFrBufH, (void**) &out_ptr, out_tmp, FRAME_LEN);
|
||||
memcpy(outH, out_ptr, sizeof(int16_t) * FRAME_LEN);
|
||||
WebRtc_ReadBuffer(aec->outFrBufH, NULL, outH, FRAME_LEN);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user