Index: content/browser/renderer_host/media/audio_sync_reader.cc |
diff --git a/content/browser/renderer_host/media/audio_sync_reader.cc b/content/browser/renderer_host/media/audio_sync_reader.cc |
index f6b3d6cef3f7db4a593402a2b355381fc8180f6a..8f2c67fd75724575d9671ee234297bc0796600b3 100644 |
--- a/content/browser/renderer_host/media/audio_sync_reader.cc |
+++ b/content/browser/renderer_host/media/audio_sync_reader.cc |
@@ -81,11 +81,13 @@ AudioSyncReader::~AudioSyncReader() { |
} |
// media::AudioOutputController::SyncReader implementations. |
-void AudioSyncReader::UpdatePendingBytes(uint32 bytes) { |
+void AudioSyncReader::UpdatePendingBytes(uint32_t bytes, |
+ uint32_t frames_skipped) { |
// Zero out the entire output buffer to avoid stuttering/repeating-buffers |
// in the anomalous case if the renderer is unable to keep up with real-time. |
output_bus_->Zero(); |
- socket_->Send(&bytes, sizeof(bytes)); |
+ uint64_t data = (static_cast<uint64_t>(bytes) << 32) | frames_skipped; |
tommi (sloooow) - chröme
2015/12/01 13:34:25
can we use a struct with two uint32_t's instead?
|
+ socket_->Send(&data, sizeof(data)); |
++buffer_index_; |
} |