-
-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stutter and lag when playing multiple samples repeatedly #74
Comments
Thanks for reporting! Presumably this is an issue with how extra JSyn data players are allocated ad hoc when a sound file that is already playing is cued to start another playback... This will require a bit of debugging around here to figure out whether the issue is with the JSyn engine being overloaded, or if it's a general garbage collection issue (in which case this TODO finally needs implementing...): processing-sound/src/processing/sound/AudioSample.java Lines 305 to 320 in d508007
|
Hi, |
I had another look and it might not be just about the number of active audio players, but an issue of previously used but now inactive players staying connected to the synthesis engine forever. Could you do me a favour and try out the following test build and let me know if it improves the situation for you? sound.zip Just extract it into your Processing's I tried to test it with the sketch you posted above but I'm finding it difficult to hear past the clipping that's happening with too many simultaneous players, you probably have a better idea of what it should sound like... (note that |
Hi,
I just tested the provided lib build, and the behavior seems unchanged. Once the number of repeatedly played sounds exceeds the threshold, it will start to stutter even after the playback has finished.
|
When using SoundFile class and triggering samples repeatedly it will start to stutter eventually. This is not happening in another audio library - Beads. Also reported here: https://discourse.processing.org/t/sound-library-bugs-lagging-noise-choppy/4718 Example code below:
The text was updated successfully, but these errors were encountered: