Closed mhamilt closed 1 year ago
Thank you for the detailed report!
I'm not sure why that particular exception is thrown but I think this might have to do with the fact that envelope re-use is not properly implemented yet under the hood, which means that repeated invocation of envelopes can actually become a burden on the program memory. Approximately how long (or approximately how many enveloper triggers) into running does the sketch stop playing?
Just looking back at the code the fix would have to go in here, I wonder if simply making sure that the player object is removed from the synthesis engine after it's finished might already do the trick: https://github.com/processing/processing-sound/blob/9c250cb7f4f279837c1b5cbaba118a0d866379bd/src/processing/sound/Env.java#L35-L54
Approximately how long (or approximately how many enveloper triggers) into running does the sketch stop playing?
Sadly, the exception is thrown at fairly random intervals. I have had it occur anywhere between a couple of minutes to just under an hour, but never longer.
I'll see if I can knock up a soak test script that will report back the number of envelope trigger and the running time.
That would be great, thanks, it sounds like maybe the issue lies somewhere else after all...
Hello,
I'm getting the following console error after intermittent intervals when using the processing.sound library. The sound cuts out, but the sketch continues to run.
Error
I have not had a chance to test for long periods on another OS, but will do as soon as possible.
Setup
macOS 10.13.6
3.5.3
2.1.0
Code