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

Unified Diff: webrtc/voice_engine/test/auto_test/fakes/fake_media_process.h

Issue 1224163002: Update audio code to use size_t more correctly, webrtc/voice_engine/ portion. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Checkpoint 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/voice_engine/test/auto_test/fakes/fake_media_process.h
diff --git a/webrtc/voice_engine/test/auto_test/fakes/fake_media_process.h b/webrtc/voice_engine/test/auto_test/fakes/fake_media_process.h
index 3e1345af542a662e64b5f205b823e7ad36f6a26b..9e82fbc0a5b3419bd4d0a8a7cfe255458a4e985b 100644
--- a/webrtc/voice_engine/test/auto_test/fakes/fake_media_process.h
+++ b/webrtc/voice_engine/test/auto_test/fakes/fake_media_process.h
@@ -18,10 +18,10 @@ class FakeMediaProcess : public webrtc::VoEMediaProcess {
virtual void Process(int channel,
const webrtc::ProcessingTypes type,
int16_t audio_10ms[],
- int length,
+ size_t length,
int sampling_freq_hz,
bool stereo) {
- for (int i = 0; i < length; i++) {
+ for (size_t i = 0; i < length; i++) {
if (!stereo) {
audio_10ms[i] = static_cast<int16_t>(audio_10ms[i] *
sin(2.0 * 3.14 * frequency * 400.0 / sampling_freq_hz));

Powered by Google App Engine
This is Rietveld 408576698