Catch and print stack trace on XtException

pull/35/head
James Ball 2021-06-24 12:19:55 +01:00
rodzic 7dda40130b
commit f5c6cabd02
2 zmienionych plików z 7 dodań i 1 usunięć

Wyświetl plik

@ -6,7 +6,7 @@
<groupId>sh.ball</groupId>
<artifactId>osci-render</artifactId>
<version>1.7.2</version>
<version>1.7.3</version>
<name>osci-render</name>

Wyświetl plik

@ -156,10 +156,16 @@ public class XtAudioEngine implements AudioEngine {
if (xtDevice.supportsFormat(format)) {
devices.add(new DefaultAudioDevice(deviceId, deviceName, mix.get().rate, XtSampleToAudioSample(mix.get().sample)));
}
} catch (XtException e) {
e.printStackTrace();
}
}
}
if (devices.isEmpty()) {
throw new RuntimeException("No suitable audio devices found");
}
return devices;
}