mixer overlay

This commit is contained in:
minjaesong
2023-11-18 20:27:32 +09:00
parent 5c5f526d16
commit 60d793f753
6 changed files with 110 additions and 30 deletions

View File

@@ -51,6 +51,7 @@ import java.io.IOException;
import java.lang.reflect.Field;
import java.util.*;
import static java.lang.Thread.MAX_PRIORITY;
import static net.torvald.terrarum.TerrarumKt.*;
/**
@@ -1192,6 +1193,7 @@ public class App implements ApplicationListener {
AudioMixer.INSTANCE.getMasterVolume();
audioManagerThread = new Thread(new AudioManagerRunnable(), "TerrarumAudioManager");
audioManagerThread.setPriority(MAX_PRIORITY); // higher = more predictable; audio delay is very noticeable so it gets high priority
audioManagerThread.start();
Terrarum.initialise();