diff --git a/pom.xml b/pom.xml
index 730b079..b2454cd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
sh.ball
osci-render
- 1.7.2
+ 1.7.3
osci-render
diff --git a/src/main/java/sh/ball/audio/engine/XtAudioEngine.java b/src/main/java/sh/ball/audio/engine/XtAudioEngine.java
index c48d8a0..25a02a7 100644
--- a/src/main/java/sh/ball/audio/engine/XtAudioEngine.java
+++ b/src/main/java/sh/ball/audio/engine/XtAudioEngine.java
@@ -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;
}