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

Unified Diff: webrtc/modules/audio_processing/audio_buffer.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
« no previous file with comments | « webrtc/modules/audio_processing/agc/mock_agc.h ('k') | webrtc/modules/audio_processing/audio_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_processing/audio_buffer.h
diff --git a/webrtc/modules/audio_processing/audio_buffer.h b/webrtc/modules/audio_processing/audio_buffer.h
index 6750af08714a14312916ba88c3ae07b4c35c0ad5..b9258d9dc572179d0d83f923a3dd9d24fe3b6ac5 100644
--- a/webrtc/modules/audio_processing/audio_buffer.h
+++ b/webrtc/modules/audio_processing/audio_buffer.h
@@ -33,19 +33,19 @@ enum Band {
class AudioBuffer {
public:
// TODO(ajm): Switch to take ChannelLayouts.
- AudioBuffer(int input_num_frames,
+ AudioBuffer(size_t input_num_frames,
int num_input_channels,
- int process_num_frames,
+ size_t process_num_frames,
int num_process_channels,
- int output_num_frames);
+ size_t output_num_frames);
virtual ~AudioBuffer();
int num_channels() const;
void set_num_channels(int num_channels);
- int num_frames() const;
- int num_frames_per_band() const;
- int num_keyboard_frames() const;
- int num_bands() const;
+ size_t num_frames() const;
+ size_t num_frames_per_band() const;
+ size_t num_keyboard_frames() const;
+ size_t num_bands() const;
// Returns a pointer array to the full-band channels.
// Usage:
@@ -127,20 +127,20 @@ class AudioBuffer {
// The audio is passed into DeinterleaveFrom() or CopyFrom() with input
// format (samples per channel and number of channels).
- const int input_num_frames_;
+ const size_t input_num_frames_;
const int num_input_channels_;
// The audio is stored by DeinterleaveFrom() or CopyFrom() with processing
// format.
- const int proc_num_frames_;
+ const size_t proc_num_frames_;
const int num_proc_channels_;
// The audio is returned by InterleaveTo() and CopyTo() with output samples
// per channels and the current number of channels. This last one can be
// changed at any time using set_num_channels().
- const int output_num_frames_;
+ const size_t output_num_frames_;
int num_channels_;
- int num_bands_;
- int num_split_frames_;
+ size_t num_bands_;
+ size_t num_split_frames_;
bool mixed_low_pass_valid_;
bool reference_copied_;
AudioFrame::VADActivity activity_;
« no previous file with comments | « webrtc/modules/audio_processing/agc/mock_agc.h ('k') | webrtc/modules/audio_processing/audio_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698