fix: Windows support
eww...
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user