[mq]: DebugLog draft
authorAlastor Wu <alwu@mozilla.com>
Mon, 14 Mar 2016 11:01:19 +0800
changeset 339881 c7c8b4196e8d2b9b72819e35e4a0f25e9aec476d
parent 339880 fd1e33aba1f87b80a5e2afded7e2e1dfed049c1c
child 516061 383bdadfe567abfa992dd585f235f20916890036
push id12813
push useralwu@mozilla.com
push dateMon, 14 Mar 2016 03:01:38 +0000
milestone47.0a1
[mq]: DebugLog MozReview-Commit-ID: K3cRIYSMQ7L
dom/media/webaudio/AudioDestinationNode.cpp
--- a/dom/media/webaudio/AudioDestinationNode.cpp
+++ b/dom/media/webaudio/AudioDestinationNode.cpp
@@ -690,16 +690,17 @@ AudioDestinationNode::SetIsOnlyNodeForCo
 
 void
 AudioDestinationNode::CreateAudioChannelAgentIfNeeded()
 {
   if (mIsOffline || mAudioChannelAgent) {
     return;
   }
 
+  printf_stderr("DD | AD, CreateAudioChannelAgentIfNeeded\n");
   mAudioChannelAgent = new AudioChannelAgent();
   nsresult rv = mAudioChannelAgent->InitWithWeakCallback(
     GetOwner(), static_cast<int32_t>(mAudioChannel), this);
   if (NS_WARN_IF(NS_FAILED(rv))) {
     return;
   }
 }
 
@@ -725,16 +726,17 @@ AudioDestinationNode::InputMuted(bool aM
 void
 AudioDestinationNode::AudioPlayingChanged(bool aPlaying)
 {
   MOZ_ASSERT(Context() && !Context()->IsOffline());
   if (!mAudioChannelAgent) {
     return;
   }
 
+  printf_stderr("DD | AD, AudioPlayingChanged, playing = %d\n", aPlaying);
   if (aPlaying) {
     float volume = 0.0;
     bool muted = true;
     mAudioChannelAgent->NotifyStartedPlaying(true, &volume, &muted);
     WindowVolumeChanged(volume, muted);
   } else {
     mAudioChannelAgent->NotifyStoppedPlaying();
     mAudioChannelAgent = nullptr;