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

Unified Diff: webrtc/voice_engine/mock/fake_voe_external_media.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
« no previous file with comments | « webrtc/voice_engine/include/voe_external_media.h ('k') | webrtc/voice_engine/output_mixer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/voice_engine/mock/fake_voe_external_media.h
diff --git a/webrtc/voice_engine/mock/fake_voe_external_media.h b/webrtc/voice_engine/mock/fake_voe_external_media.h
index 66554ae09b57d62101aac291ca32afb8f343231c..a315e9b3e4a84e5986921cdbafc286fec891eb44 100644
--- a/webrtc/voice_engine/mock/fake_voe_external_media.h
+++ b/webrtc/voice_engine/mock/fake_voe_external_media.h
@@ -42,9 +42,9 @@ class FakeVoEExternalMedia : public VoEExternalMedia {
// Use this to trigger the Process() callback to a registered media processor.
// If |audio| is NULL, a zero array of the correct length will be forwarded.
void CallProcess(ProcessingTypes type, int16_t* audio,
- int samples_per_channel, int sample_rate_hz,
+ size_t samples_per_channel, int sample_rate_hz,
int num_channels) {
- const int length = samples_per_channel * num_channels;
+ const size_t length = samples_per_channel * num_channels;
rtc::scoped_ptr<int16_t[]> data;
if (!audio) {
data.reset(new int16_t[length]);
« no previous file with comments | « webrtc/voice_engine/include/voe_external_media.h ('k') | webrtc/voice_engine/output_mixer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698