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

Unified Diff: webrtc/modules/audio_processing/vad/pole_zero_filter.h

Issue 1228803003: Update audio code to use size_t more correctly, (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Review comments 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/vad/pole_zero_filter.h
diff --git a/webrtc/modules/audio_processing/vad/pole_zero_filter.h b/webrtc/modules/audio_processing/vad/pole_zero_filter.h
index 038d801a1b6bfe9d386b4e9bcc57cff120e202aa..bd13050a5c462b84507456bee8a0b9bb80318224 100644
--- a/webrtc/modules/audio_processing/vad/pole_zero_filter.h
+++ b/webrtc/modules/audio_processing/vad/pole_zero_filter.h
@@ -11,6 +11,8 @@
#ifndef WEBRTC_MODULES_AUDIO_PROCESSING_VAD_POLE_ZERO_FILTER_H_
#define WEBRTC_MODULES_AUDIO_PROCESSING_VAD_POLE_ZERO_FILTER_H_
+#include <cstddef>
+
#include "webrtc/typedefs.h"
namespace webrtc {
@@ -20,17 +22,17 @@ class PoleZeroFilter {
~PoleZeroFilter() {}
static PoleZeroFilter* Create(const float* numerator_coefficients,
- int order_numerator,
+ size_t order_numerator,
const float* denominator_coefficients,
- int order_denominator);
+ size_t order_denominator);
- int Filter(const int16_t* in, int num_input_samples, float* output);
+ int Filter(const int16_t* in, size_t num_input_samples, float* output);
private:
PoleZeroFilter(const float* numerator_coefficients,
- int order_numerator,
+ size_t order_numerator,
const float* denominator_coefficients,
- int order_denominator);
+ size_t order_denominator);
static const int kMaxFilterOrder = 24;
@@ -40,9 +42,9 @@ class PoleZeroFilter {
float numerator_coefficients_[kMaxFilterOrder + 1];
float denominator_coefficients_[kMaxFilterOrder + 1];
- int order_numerator_;
- int order_denominator_;
- int highest_order_;
+ size_t order_numerator_;
+ size_t order_denominator_;
+ size_t highest_order_;
};
} // namespace webrtc
« no previous file with comments | « webrtc/modules/audio_processing/vad/pitch_based_vad.cc ('k') | webrtc/modules/audio_processing/vad/pole_zero_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698