Bug 774000 - Volume is always set to 0 on the device. r=cjones

This commit is contained in:
Vivien Nicolas 2012-07-15 12:38:24 +02:00
Родитель 65d3bf2485
Коммит 8e3d55262b
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -53,7 +53,7 @@ SettingsListener.observe('audio.volume.master', 0.5, function(value) {
if (!audioManager)
return;
audioManager.masterVolume = Math.min(0, Math.max(value, 1));
audioManager.masterVolume = Math.max(0.0, Math.min(value, 1.0));
});