Bug 1347758 - part4 : add audio channel log. r=Ehsan

MozReview-Commit-ID: 3zVYtD86O82
This commit is contained in:
Alastor Wu
2017-03-24 14:44:18 +08:00
parent 48e732be4c
commit 2c14c57520
7 changed files with 123 additions and 19 deletions

View File

@@ -692,7 +692,8 @@ public:
MOZ_LOG(AudioChannelService::GetAudioChannelLog(), LogLevel::Debug,
("HTMLMediaElement::AudioChannelAgentCallback, WindowVolumeChanged, "
"this = %p, aVolume = %f, aMuted = %d\n", this, aVolume, aMuted));
"this = %p, aVolume = %f, aMuted = %s\n",
this, aVolume, aMuted ? "true" : "false"));
if (mAudioChannelVolume != aVolume) {
mAudioChannelVolume = aVolume;
@@ -716,7 +717,7 @@ public:
MOZ_LOG(AudioChannelService::GetAudioChannelLog(), LogLevel::Debug,
("HTMLMediaElement::AudioChannelAgentCallback, WindowSuspendChanged, "
"this = %p, aSuspend = %d\n", this, aSuspend));
"this = %p, aSuspend = %s\n", this, SuspendTypeToStr(aSuspend)));
switch (aSuspend) {
case nsISuspendedTypes::NONE_SUSPENDED:
@@ -883,7 +884,7 @@ private:
mSuspended = aSuspend;
MOZ_LOG(AudioChannelService::GetAudioChannelLog(), LogLevel::Debug,
("HTMLMediaElement::AudioChannelAgentCallback, SetAudioChannelSuspended, "
"this = %p, aSuspend = %d\n", this, aSuspend));
"this = %p, aSuspend = %s\n", this, SuspendTypeToStr(aSuspend)));
NotifyAudioPlaybackChanged(
AudioChannelService::AudibleChangedReasons::ePauseStateChanged);