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

Unified Diff: webrtc/modules/audio_device/audio_device_buffer.cc

Issue 1168753002: Match existing type usage better. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Resync Created 5 years, 6 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/modules/audio_device/audio_device_buffer.cc
diff --git a/webrtc/modules/audio_device/audio_device_buffer.cc b/webrtc/modules/audio_device/audio_device_buffer.cc
index febacbc8a69c2799316b1b484ff3c04c2060e743..18a242f8e03e41568833684bc4ae969f6473d433 100644
--- a/webrtc/modules/audio_device/audio_device_buffer.cc
+++ b/webrtc/modules/audio_device/audio_device_buffer.cc
@@ -563,7 +563,7 @@ int32_t AudioDeviceBuffer::RequestPlayoutData(uint32_t nSamples)
}
}
- return nSamplesOut;
+ return static_cast<int32_t>(nSamplesOut);
}
// ----------------------------------------------------------------------------
@@ -590,7 +590,7 @@ int32_t AudioDeviceBuffer::GetPlayoutData(void* audioBuffer)
_playFile.Write(&_playBuffer[0], _playSize);
}
- return _playSamples;
+ return static_cast<int32_t>(_playSamples);
}
} // namespace webrtc
« no previous file with comments | « webrtc/modules/audio_coding/neteq/test/RTPencode.cc ('k') | webrtc/modules/audio_device/dummy/file_audio_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698