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

Unified Diff: webrtc/modules/audio_processing/aec/include/echo_cancellation.h

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/aec/include/echo_cancellation.h
diff --git a/webrtc/modules/audio_processing/aec/include/echo_cancellation.h b/webrtc/modules/audio_processing/aec/include/echo_cancellation.h
index e49a0847e03a96630479f24bedd5559aae651441..a340cf84d0d79f13b3658bf142817cf6f92576cf 100644
--- a/webrtc/modules/audio_processing/aec/include/echo_cancellation.h
+++ b/webrtc/modules/audio_processing/aec/include/echo_cancellation.h
@@ -11,6 +11,8 @@
#ifndef WEBRTC_MODULES_AUDIO_PROCESSING_AEC_INCLUDE_ECHO_CANCELLATION_H_
#define WEBRTC_MODULES_AUDIO_PROCESSING_AEC_INCLUDE_ECHO_CANCELLATION_H_
+#include <stddef.h>
+
#include "webrtc/typedefs.h"
// Errors
@@ -111,7 +113,7 @@ int32_t WebRtcAec_Init(void* aecInst, int32_t sampFreq, int32_t scSampFreq);
*/
int32_t WebRtcAec_BufferFarend(void* aecInst,
const float* farend,
- int16_t nrOfSamples);
+ size_t nrOfSamples);
/*
* Runs the echo canceller on an 80 or 160 sample blocks of data.
@@ -138,9 +140,9 @@ int32_t WebRtcAec_BufferFarend(void* aecInst,
*/
int32_t WebRtcAec_Process(void* aecInst,
const float* const* nearend,
- int num_bands,
+ size_t num_bands,
float* const* out,
- int16_t nrOfSamples,
+ size_t nrOfSamples,
int16_t msInSndCardBuf,
int32_t skew);
« no previous file with comments | « webrtc/modules/audio_processing/aec/echo_cancellation.c ('k') | webrtc/modules/audio_processing/aec/system_delay_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698