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

Unified Diff: webrtc/modules/audio_processing/agc/legacy/gain_control.h

Issue 1230503003: Update a ton of audio code to use size_t more correctly and in general reduce (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Resync Created 5 years, 4 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/agc/legacy/gain_control.h
diff --git a/webrtc/modules/audio_processing/agc/legacy/gain_control.h b/webrtc/modules/audio_processing/agc/legacy/gain_control.h
index 0ccba76c4bc5475fe714b87fdac91d8ed80bc0e6..08c1988f01172660c0369f82bd3519582efb0986 100644
--- a/webrtc/modules/audio_processing/agc/legacy/gain_control.h
+++ b/webrtc/modules/audio_processing/agc/legacy/gain_control.h
@@ -66,7 +66,7 @@ extern "C"
*/
int WebRtcAgc_AddFarend(void* agcInst,
const int16_t* inFar,
- int16_t samples);
+ size_t samples);
/*
* This function processes a 10 ms frame of microphone speech to determine
@@ -90,8 +90,8 @@ int WebRtcAgc_AddFarend(void* agcInst,
*/
int WebRtcAgc_AddMic(void* agcInst,
int16_t* const* inMic,
- int16_t num_bands,
- int16_t samples);
+ size_t num_bands,
+ size_t samples);
/*
* This function replaces the analog microphone with a virtual one.
@@ -118,8 +118,8 @@ int WebRtcAgc_AddMic(void* agcInst,
*/
int WebRtcAgc_VirtualMic(void* agcInst,
int16_t* const* inMic,
- int16_t num_bands,
- int16_t samples,
+ size_t num_bands,
+ size_t samples,
int32_t micLevelIn,
int32_t* micLevelOut);
@@ -159,8 +159,8 @@ int WebRtcAgc_VirtualMic(void* agcInst,
*/
int WebRtcAgc_Process(void* agcInst,
const int16_t* const* inNear,
- int16_t num_bands,
- int16_t samples,
+ size_t num_bands,
+ size_t samples,
int16_t* const* out,
int32_t inMicLevel,
int32_t* outMicLevel,
« no previous file with comments | « webrtc/modules/audio_processing/agc/legacy/digital_agc.c ('k') | webrtc/modules/audio_processing/agc/mock_agc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698