kopia lustrzana https://github.com/jameshball/osci-render
Catch and print stack trace on XtException
rodzic
7dda40130b
commit
f5c6cabd02
2
pom.xml
2
pom.xml
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
<groupId>sh.ball</groupId>
|
<groupId>sh.ball</groupId>
|
||||||
<artifactId>osci-render</artifactId>
|
<artifactId>osci-render</artifactId>
|
||||||
<version>1.7.2</version>
|
<version>1.7.3</version>
|
||||||
|
|
||||||
<name>osci-render</name>
|
<name>osci-render</name>
|
||||||
|
|
||||||
|
|
|
@ -156,10 +156,16 @@ public class XtAudioEngine implements AudioEngine {
|
||||||
if (xtDevice.supportsFormat(format)) {
|
if (xtDevice.supportsFormat(format)) {
|
||||||
devices.add(new DefaultAudioDevice(deviceId, deviceName, mix.get().rate, XtSampleToAudioSample(mix.get().sample)));
|
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;
|
return devices;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue