mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-15 08:06:06 +09:00
music disc jockeying wip
This commit is contained in:
@@ -340,6 +340,8 @@ public class App implements ApplicationListener {
|
||||
|
||||
public static boolean gl40capable = false;
|
||||
|
||||
public static Thread audioManagerThread;
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
long st = System.nanoTime();
|
||||
@@ -908,6 +910,7 @@ public class App implements ApplicationListener {
|
||||
public void dispose() {
|
||||
System.out.println("Goodbye !");
|
||||
|
||||
audioManagerThread.interrupt();
|
||||
|
||||
if (currentScreen != null) {
|
||||
currentScreen.hide();
|
||||
@@ -1177,6 +1180,11 @@ public class App implements ApplicationListener {
|
||||
}
|
||||
|
||||
|
||||
AudioManager.INSTANCE.getMasterVolume();
|
||||
audioManagerThread = new Thread(new AudioManagerRunnable(), "TerrarumAudioManager");
|
||||
audioManagerThread.setPriority(2);
|
||||
audioManagerThread.start();
|
||||
|
||||
Terrarum.initialise();
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user