--- 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;