fix Export SRC buffer report:

the resampler is always fed with N channels, it won't output half channels
This commit is contained in:
Robin Gareus 2016-02-16 14:00:31 +01:00
parent e18e765c75
commit a929b8b872

View File

@ -78,6 +78,8 @@ SampleRateConverter::allocate_buffers (framecnt_t max_frames)
if (!active) { return max_frames; }
framecnt_t max_frames_out = (framecnt_t) ceil (max_frames * src_data.src_ratio);
max_frames_out -= max_frames_out % channels;
if (data_out_size < max_frames_out) {
delete[] data_out;