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

Unified Diff: media/audio/audio_device_thread.cc

Issue 1487983002: Forward the number of skipped frames by the OS in audio playout. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code review fixes, compile fixes, rebase. Created 5 years 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: media/audio/audio_device_thread.cc
diff --git a/media/audio/audio_device_thread.cc b/media/audio/audio_device_thread.cc
index 81dab87cd327fd19b0755af04f63beb939a883d9..8e99a18ff8122c7892d5589974e1143c46b3dd75 100644
--- a/media/audio/audio_device_thread.cc
+++ b/media/audio/audio_device_thread.cc
@@ -168,14 +168,14 @@ void AudioDeviceThread::Thread::ThreadMain() {
void AudioDeviceThread::Thread::Run() {
uint32_t buffer_index = 0;
while (true) {
- uint32_t pending_data = 0;
+ uint32 pending_data = 0;
size_t bytes_read = socket_.Receive(&pending_data, sizeof(pending_data));
if (bytes_read != sizeof(pending_data))
break;
// std::numeric_limits<uint32_t>::max() is a special signal which is
- // returned after the browser stops the output device in response to a
- // renderer side request.
+ // returned after the browser
+ // stops the output device in response to a renderer side request.
//
// Avoid running Process() for the paused signal, we still need to update
// the buffer index if |synchronized_buffers_| is true though.

Powered by Google App Engine
This is Rietveld 408576698