Closed cryptozachary closed 4 months ago
The convolution reverb decay won't change in realtime because the impulse response buffer creation is asynchronous. When you set a new decay, the previous IR buffer will get GCed eventually but I think the way you have it set up it's probably firing a zillion times a second not giving enough time for the gc to happen quick enough. So if you're using the input
event on your range slider try using change
instead or setting up a debounce timer so the decay is not being modified so frequently.
Thank you Marcel - I will setup a debounce timer.
Hello Everyone,
I'm having the issue of app memory increasing dramatically when I modify the reverb decay in real-time via a knob. I believe I need to clear some impulse response buffers that are generated each time the decay changes? Below is the code i use to change the decay on the reverb. Any guidance on how I would clear these buffers would be much appreciated.
Thanks,
Zachary