fix: Windows support

eww...
This commit is contained in:
Martin Prokoph
2025-09-08 18:27:22 +02:00
parent 223c3356b9
commit 7cbe2466d8
9 changed files with 30 additions and 15 deletions

View File

@@ -65,6 +65,8 @@ public class MusicThread extends Thread {
sourceDataLine.close();
} catch (LineUnavailableException | IOException | UnsupportedAudioFileException e) {
throw new RuntimeException(e);
} catch (IllegalArgumentException ignored) {
// Happens when no audio device is connected
}
}
}