tote-bag-labs / valentine

An open source compressor meant to pump and breathe
GNU General Public License v3.0
123 stars 6 forks source link

Don't resize buffers on audio thread #101

Open JoseDiazRohena opened 5 months ago

JoseDiazRohena commented 5 months ago

I resize buffers in the audio thread. I thought this would be ok because I set a flag indicating that we should avoid allocation when doing so. However, this only works if the buffer is decreasing in size. Having the buffer size set in prepareToPlay and then having the host provide a larger than expected buffer will cause allocations.