зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
003334fc97
Коммит
a2a4d98d3b
|
@ -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 =
|
||||
|
|
Загрузка…
Ссылка в новой задаче