fix-6096 (#11281)
This commit is contained in:
parent
9e330c9e38
commit
866e3f0432
|
@ -132,9 +132,7 @@ export function play(type: 'noteMy' | 'note' | 'antenna' | 'channel' | 'notifica
|
||||||
}
|
}
|
||||||
|
|
||||||
export function playFile(file: string, volume: number) {
|
export function playFile(file: string, volume: number) {
|
||||||
const masterVolume = soundConfigStore.state.sound_masterVolume;
|
|
||||||
if (masterVolume === 0) return;
|
|
||||||
|
|
||||||
const audio = setVolume(getAudio(file), volume);
|
const audio = setVolume(getAudio(file), volume);
|
||||||
|
if (audio.volume === 0) return;
|
||||||
audio.play();
|
audio.play();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue