Sometimes, the interleaved sample buffer after resampling ends up being a few samples longer than channel_count * samples_in_channel for... reasons unknown.
Before, the fix to make sure indexing panics didn't happen was to shorten the interleaved buffer so it wouldn't overflow.
Now, the output buffer is extended such that it can fit these mysterious extra samples.
Sometimes, the interleaved sample buffer after resampling ends up being a few samples longer than
channel_count * samples_in_channel
for... reasons unknown.Before, the fix to make sure indexing panics didn't happen was to shorten the interleaved buffer so it wouldn't overflow.
Now, the output buffer is extended such that it can fit these mysterious extra samples.