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

Unified Diff: content/browser/renderer_host/media/audio_sync_reader.cc

Issue 1703473002: Make AudioOutputDevice restartable and reinitializable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@new_mixing
Patch Set: Created 4 years, 10 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 | « no previous file | content/renderer/media/audio_device_factory.cc » ('j') | media/audio/audio_device_thread.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 85b13f8453c4da6f8e3ca359f75c1b36406e693b..9b4de6d60d427d7b85da666ea8d06732f256ef85 100644
--- a/content/browser/renderer_host/media/audio_sync_reader.cc
+++ b/content/browser/renderer_host/media/audio_sync_reader.cc
@@ -105,6 +105,7 @@ void AudioSyncReader::UpdatePendingBytes(uint32_t bytes,
}
void AudioSyncReader::Read(AudioBus* dest) {
+// printf("--+--+--+--+-- AudioSyncReader::Read enter\n");
++renderer_callback_count_;
if (!WaitUntilDataIsReady()) {
++renderer_missed_callback_count_;
@@ -115,6 +116,7 @@ void AudioSyncReader::Read(AudioBus* dest) {
LOG(WARNING) << "(log cap reached, suppressing further logs)";
}
dest->Zero();
+// printf("--+--+--+--+-- AudioSyncReader::Read exit 1\n");
return;
}
@@ -122,6 +124,8 @@ void AudioSyncReader::Read(AudioBus* dest) {
dest->Zero();
else
output_bus_->CopyTo(dest);
+
+// printf("--+--+--+--+-- AudioSyncReader::Read exit 2\n");
}
void AudioSyncReader::Close() {
« no previous file with comments | « no previous file | content/renderer/media/audio_device_factory.cc » ('j') | media/audio/audio_device_thread.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698