// or we're dropping a lot of data.
fprintf(stderr, "Card %u: PANIC: Out of input samples to resample, still need %d output samples! (correction factor is %f)\n",
card_num, int(vresampler.out_count), rcorr);
- memset(vresampler.out_data, 0, vresampler.out_count * 2 * sizeof(float));
+ memset(vresampler.out_data, 0, vresampler.out_count * num_channels * sizeof(float));
return false;
}