diff options
author | Sven Gothel <[email protected]> | 2023-10-03 01:25:11 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-10-03 01:25:11 +0200 |
commit | 10b236976ffef7d1a330e601bf8dc6b0228ec36b (patch) | |
tree | 3ebe8f5e362fd6a1c2ff3915e77c688757072e51 | |
parent | b87238ac343643e0077522ac3a983a8025bb1d88 (diff) |
SimpleSineSynth: Ensure stop() destroys ALAudioSink even if streamWorker is not running
-rw-r--r-- | src/java/com/jogamp/openal/util/SimpleSineSynth.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/java/com/jogamp/openal/util/SimpleSineSynth.java b/src/java/com/jogamp/openal/util/SimpleSineSynth.java index c3befe6..103353a 100644 --- a/src/java/com/jogamp/openal/util/SimpleSineSynth.java +++ b/src/java/com/jogamp/openal/util/SimpleSineSynth.java @@ -120,6 +120,8 @@ public final class SimpleSineSynth { if( null != streamWorker ) { streamWorker.doStop(); streamWorker = null; + } else { + audioSink.destroy(); } } } |