parent
17dc50c242
commit
5b965349a5
189 changed files with 15 additions and 15 deletions
|
|
@ -16,7 +16,7 @@ export function playFile(file: string, volume: number) {
|
|||
if (cache.has(file)) {
|
||||
audio = cache.get(file);
|
||||
} else {
|
||||
audio = new Audio(`/static-assets/sounds/${file}.mp3`);
|
||||
audio = new Audio(`/static-assets/client/sounds/${file}.mp3`);
|
||||
cache.set(file, audio);
|
||||
}
|
||||
audio.volume = masterVolume - ((1 - volume) * masterVolume);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue