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

Unified Diff: media/audio/audio_output_dispatcher_impl.cc

Issue 1864483002: Forward output glitch information from stream WebRTC log (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 7 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 | « media/audio/audio_manager_base.cc ('k') | media/audio/audio_output_proxy_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_output_dispatcher_impl.cc
diff --git a/media/audio/audio_output_dispatcher_impl.cc b/media/audio/audio_output_dispatcher_impl.cc
index b29009ab04d5d1089ea114af3c6a65759d1f9322..f50748c905d5071865ce01c32f7309f1b9c3b9d7 100644
--- a/media/audio/audio_output_dispatcher_impl.cc
+++ b/media/audio/audio_output_dispatcher_impl.cc
@@ -146,8 +146,12 @@ bool AudioOutputDispatcherImpl::HasOutputProxies() const {
bool AudioOutputDispatcherImpl::CreateAndOpenStream() {
DCHECK(task_runner_->BelongsToCurrentThread());
+
+ const int stream_id = audio_stream_id_++;
AudioOutputStream* stream = audio_manager_->MakeAudioOutputStream(
- params_, device_id_);
+ params_, device_id_,
+ base::Bind(&AudioLog::OnLogMessage, base::Unretained(audio_log_.get()),
+ stream_id));
if (!stream)
return false;
@@ -156,7 +160,6 @@ bool AudioOutputDispatcherImpl::CreateAndOpenStream() {
return false;
}
- const int stream_id = audio_stream_id_++;
audio_stream_ids_[stream] = stream_id;
audio_log_->OnCreated(
stream_id, params_, device_id_);
« no previous file with comments | « media/audio/audio_manager_base.cc ('k') | media/audio/audio_output_proxy_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698