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.
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.