Bug 1659244 - Fix two static analysis warnings in AudioDestinationNode.cpp. r=pehrsons

Differential Revision: https://phabricator.services.mozilla.com/D90447
This commit is contained in:
Paul Adenot 2020-09-21 17:41:50 +00:00
Родитель 88af5e66ba
Коммит 97350e1d07
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -242,7 +242,7 @@ class DestinationNodeEngine final : public AudioNodeEngine {
void SetDoubleParameter(uint32_t aIndex, double aParam) override {
if (aIndex == VOLUME) {
mVolume = aParam;
mVolume = static_cast<float>(aParam);
}
}
@ -493,7 +493,7 @@ AudioDestinationNode::WindowVolumeChanged(float aVolume, bool aMuted) {
"aVolume = %f, aMuted = %s\n",
this, aVolume, aMuted ? "true" : "false");
float volume = aMuted ? 0.0 : aVolume;
float volume = aMuted ? 0.0f : aVolume;
mTrack->SetAudioOutputVolume(nullptr, volume);
AudioChannelService::AudibleState audible =