summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-05-04 03:29:17 +0200
committerSven Gothel <[email protected]>2023-05-04 03:29:17 +0200
commite3e58836fc6578aa8814731c9b15581b3e0cb580 (patch)
treeb31221be0b18ff718a6d9f22cfbd89a8777d78d2
parent4f3a757646d16cf18d4a41e67abf63411f35c300 (diff)
AudioSinkFactory: Add debug output in case of failed initialization
-rw-r--r--src/jogl/classes/com/jogamp/opengl/util/av/AudioSinkFactory.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/util/av/AudioSinkFactory.java b/src/jogl/classes/com/jogamp/opengl/util/av/AudioSinkFactory.java
index a2b29b4eb..f8a69301c 100644
--- a/src/jogl/classes/com/jogamp/opengl/util/av/AudioSinkFactory.java
+++ b/src/jogl/classes/com/jogamp/opengl/util/av/AudioSinkFactory.java
@@ -57,6 +57,8 @@ public class AudioSinkFactory {
audioSink = (AudioSink) ReflectionUtil.createInstance(implName, cl);
if( audioSink.isInitialized() ) {
return audioSink;
+ } else if(AudioSink.DEBUG) {
+ System.err.println("AudioSinkFactory: Couldn't initialize AudioSink '"+implName+"'");
}
} catch (final Throwable t) {
if(AudioSink.DEBUG) { System.err.println("Caught "+t.getClass().getName()+": "+t.getMessage()); t.printStackTrace(); }