mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-04-29 16:25:49 +00:00
Lower volume of non spatialized sfx
This commit is contained in:
parent
7a4792e4e8
commit
dd305f591d
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ export function AudioEmitter({ object }: { object: ConsoleObject }) {
|
||||||
sound.setVolume(volume);
|
sound.setVolume(volume);
|
||||||
} else {
|
} else {
|
||||||
sound = new Audio(audioListener);
|
sound = new Audio(audioListener);
|
||||||
sound.setVolume(Math.min(volume, 0.5));
|
sound.setVolume(Math.min(volume, 0.25));
|
||||||
}
|
}
|
||||||
|
|
||||||
soundRef.current = sound;
|
soundRef.current = sound;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue