mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-09 10:04:05 +09:00
sound track cacheing by track to remove any collision
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user