diff options
Diffstat (limited to 'webrtc/modules/audio_processing/test/test_utils.h')
-rw-r--r-- | webrtc/modules/audio_processing/test/test_utils.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/webrtc/modules/audio_processing/test/test_utils.h b/webrtc/modules/audio_processing/test/test_utils.h index 291e03e5f4..e23beb66f4 100644 --- a/webrtc/modules/audio_processing/test/test_utils.h +++ b/webrtc/modules/audio_processing/test/test_utils.h @@ -79,7 +79,7 @@ void WriteIntData(const int16_t* data, void WriteFloatData(const float* const* data, size_t samples_per_channel, - int num_channels, + size_t num_channels, WavWriter* wav_file, RawFile* raw_file); @@ -93,7 +93,7 @@ void SetFrameSampleRate(AudioFrame* frame, template <typename T> void SetContainerFormat(int sample_rate_hz, - int num_channels, + size_t num_channels, AudioFrame* frame, rtc::scoped_ptr<ChannelBuffer<T> >* cb) { SetFrameSampleRate(frame, sample_rate_hz); @@ -101,7 +101,7 @@ void SetContainerFormat(int sample_rate_hz, cb->reset(new ChannelBuffer<T>(frame->samples_per_channel_, num_channels)); } -AudioProcessing::ChannelLayout LayoutFromChannels(int num_channels); +AudioProcessing::ChannelLayout LayoutFromChannels(size_t num_channels); template <typename T> float ComputeSNR(const T* ref, const T* test, size_t length, float* variance) { |