Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(603)

Unified Diff: webrtc/modules/audio_processing/aecm/echo_control_mobile.c

Issue 1227213002: Update audio code to use size_t more correctly, webrtc/modules/audio_processing/ (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Resync Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_processing/aecm/echo_control_mobile.c
diff --git a/webrtc/modules/audio_processing/aecm/echo_control_mobile.c b/webrtc/modules/audio_processing/aecm/echo_control_mobile.c
index 5f3fa2af68103124eb14e742aff067f82fa106fa..83781e97fed039652af8398c1ebbfa9f2aeceeea 100644
--- a/webrtc/modules/audio_processing/aecm/echo_control_mobile.c
+++ b/webrtc/modules/audio_processing/aecm/echo_control_mobile.c
@@ -199,7 +199,7 @@ int32_t WebRtcAecm_Init(void *aecmInst, int32_t sampFreq)
}
int32_t WebRtcAecm_BufferFarend(void *aecmInst, const int16_t *farend,
- int16_t nrOfSamples)
+ size_t nrOfSamples)
{
AecMobile* aecm = aecmInst;
int32_t retVal = 0;
@@ -233,21 +233,21 @@ int32_t WebRtcAecm_BufferFarend(void *aecmInst, const int16_t *farend,
WebRtcAecm_DelayComp(aecm);
}
- WebRtc_WriteBuffer(aecm->farendBuf, farend, (size_t) nrOfSamples);
+ WebRtc_WriteBuffer(aecm->farendBuf, farend, nrOfSamples);
return retVal;
}
int32_t WebRtcAecm_Process(void *aecmInst, const int16_t *nearendNoisy,
const int16_t *nearendClean, int16_t *out,
- int16_t nrOfSamples, int16_t msInSndCardBuf)
+ size_t nrOfSamples, int16_t msInSndCardBuf)
{
AecMobile* aecm = aecmInst;
int32_t retVal = 0;
- short i;
+ size_t i;
short nmbrOfFilledBuffers;
- short nBlocks10ms;
- short nFrames;
+ size_t nBlocks10ms;
+ size_t nFrames;
#ifdef AEC_DEBUG
short msInAECBuf;
#endif

Powered by Google App Engine
This is Rietveld 408576698