diff --git a/Platform/Apple/tools/jace/src/main/java/jace/core/SoundMixer.java b/Platform/Apple/tools/jace/src/main/java/jace/core/SoundMixer.java index a275514d..de6c7d89 100644 --- a/Platform/Apple/tools/jace/src/main/java/jace/core/SoundMixer.java +++ b/Platform/Apple/tools/jace/src/main/java/jace/core/SoundMixer.java @@ -283,7 +283,8 @@ public class SoundMixer extends Device { MUTE = true; PLAYBACK_ENABLED = false; - for (SoundBuffer buffer : buffers) { + while (!buffers.isEmpty()) { + SoundBuffer buffer = buffers.get(0); try { buffer.shutdown(); } catch (InterruptedException | ExecutionException e) {