sound track cacheing by track to remove any collision

This commit is contained in:
minjaesong
2024-04-02 17:15:23 +09:00
parent 918276a1be
commit 94152afcac
6 changed files with 55 additions and 10 deletions

View File

@@ -1971,7 +1971,7 @@ public class App implements ApplicationListener {
public static void playGUIsound(MusicContainer sound, double volume, float pan) {
if (!highPrioritySoundPlaying) {
var it = audioMixer.getFreeGuiTrackNoMatterWhat();
var it = audioMixer.getFreeGuiTrack();
if (it != null) {
it.stop();
it.setCurrentTrack(sound);