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

Unified Diff: webrtc/modules/audio_processing/ns/ns_core.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/ns/ns_core.h
diff --git a/webrtc/modules/audio_processing/ns/ns_core.h b/webrtc/modules/audio_processing/ns/ns_core.h
index 8a7992ec5a69fe345d516e4bd7e31bdd1a2a7ef9..aba1c468ed8f5044b8a9ca847e50da641e7b0cb0 100644
--- a/webrtc/modules/audio_processing/ns/ns_core.h
+++ b/webrtc/modules/audio_processing/ns/ns_core.h
@@ -51,10 +51,10 @@ typedef struct NSParaExtract_ {
typedef struct NoiseSuppressionC_ {
uint32_t fs;
- int blockLen;
- int windShift;
- int anaLen;
- int magnLen;
+ size_t blockLen;
+ size_t windShift;
+ size_t anaLen;
+ size_t magnLen;
int aggrMode;
const float* window;
float analyzeBuf[ANAL_BLOCKL_MAX];
@@ -74,7 +74,7 @@ typedef struct NoiseSuppressionC_ {
float denoiseBound;
int gainmap;
// FFT work arrays.
- int ip[IP_LENGTH];
+ size_t ip[IP_LENGTH];
float wfft[W_LENGTH];
// Parameters for new method: some not needed, will reduce/cleanup later.
@@ -181,7 +181,7 @@ void WebRtcNs_AnalyzeCore(NoiseSuppressionC* self, const float* speechFrame);
*/
void WebRtcNs_ProcessCore(NoiseSuppressionC* self,
const float* const* inFrame,
- int num_bands,
+ size_t num_bands,
float* const* outFrame);
#ifdef __cplusplus
« no previous file with comments | « webrtc/modules/audio_processing/ns/noise_suppression.c ('k') | webrtc/modules/audio_processing/ns/ns_core.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698