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

Unified Diff: webrtc/common_audio/resampler/include/resampler.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/common_audio/resampler/include/resampler.h
diff --git a/webrtc/common_audio/resampler/include/resampler.h b/webrtc/common_audio/resampler/include/resampler.h
index 4b63e9c1050f44e64cd853e204d95c11b758897d..0d4c1afe4ed3315d367d3dc491aee247764eb0b1 100644
--- a/webrtc/common_audio/resampler/include/resampler.h
+++ b/webrtc/common_audio/resampler/include/resampler.h
@@ -16,6 +16,8 @@
#ifndef WEBRTC_RESAMPLER_RESAMPLER_H_
#define WEBRTC_RESAMPLER_RESAMPLER_H_
+#include <stddef.h>
+
#include "webrtc/typedefs.h"
namespace webrtc {
@@ -36,8 +38,8 @@ public:
int ResetIfNeeded(int inFreq, int outFreq, int num_channels);
// Resample samplesIn to samplesOut.
- int Push(const int16_t* samplesIn, int lengthIn, int16_t* samplesOut,
- int maxLen, int &outLen);
+ int Push(const int16_t* samplesIn, size_t lengthIn, int16_t* samplesOut,
+ size_t maxLen, size_t &outLen);
private:
enum ResamplerMode
@@ -73,10 +75,10 @@ private:
// Storage if needed
int16_t* in_buffer_;
int16_t* out_buffer_;
- int in_buffer_size_;
- int out_buffer_size_;
- int in_buffer_size_max_;
- int out_buffer_size_max_;
+ size_t in_buffer_size_;
+ size_t out_buffer_size_;
+ size_t in_buffer_size_max_;
+ size_t out_buffer_size_max_;
int my_in_frequency_khz_;
int my_out_frequency_khz_;
« no previous file with comments | « webrtc/common_audio/resampler/include/push_resampler.h ('k') | webrtc/common_audio/resampler/push_resampler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698