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

Unified Diff: webrtc/modules/audio_processing/three_band_filter_bank.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/three_band_filter_bank.h
diff --git a/webrtc/modules/audio_processing/three_band_filter_bank.h b/webrtc/modules/audio_processing/three_band_filter_bank.h
index 7677448e697b8e83cf24967695437ebe95f0adee..18e8aee7c9bb7ff0b6f3464fe842a0868f8d163b 100644
--- a/webrtc/modules/audio_processing/three_band_filter_bank.h
+++ b/webrtc/modules/audio_processing/three_band_filter_bank.h
@@ -34,26 +34,26 @@ namespace webrtc {
// depending on the input signal after compensating for the delay.
class ThreeBandFilterBank final {
public:
- explicit ThreeBandFilterBank(int length);
+ explicit ThreeBandFilterBank(size_t length);
// Splits |in| into 3 downsampled frequency bands in |out|.
// |length| is the |in| length. Each of the 3 bands of |out| has to have a
// length of |length| / 3.
- void Analysis(const float* in, int length, float* const* out);
+ void Analysis(const float* in, size_t length, float* const* out);
// Merges the 3 downsampled frequency bands in |in| into |out|.
// |split_length| is the length of each band of |in|. |out| has to have at
// least a length of 3 * |split_length|.
- void Synthesis(const float* const* in, int split_length, float* out);
+ void Synthesis(const float* const* in, size_t split_length, float* out);
private:
void DownModulate(const float* in,
- int split_length,
- int offset,
+ size_t split_length,
+ size_t offset,
float* const* out);
void UpModulate(const float* const* in,
- int split_length,
- int offset,
+ size_t split_length,
+ size_t offset,
float* out);
std::vector<float> in_buffer_;

Powered by Google App Engine
This is Rietveld 408576698