-// Parts of the code is adapted from Adriaensen's project Zita-ajbridge,
-// although it has been heavily reworked for this use case. Original copyright follows:
+// Parts of the code is adapted from Adriaensen's project Zita-ajbridge
+// (as of November 2015), although it has been heavily reworked for this use
+// case. Original copyright follows:
//
// Copyright (C) 2012-2015 Fons Adriaensen <fons@linuxaudio.org>
//
// or we're dropping a lot of data.
fprintf(stderr, "PANIC: Out of input samples to resample, still need %d output samples!\n",
int(vresampler.out_count));
- memset(vresampler.out_data, 0, vresampler.out_count * sizeof(float));
+ memset(vresampler.out_data, 0, vresampler.out_count * 2 * sizeof(float));
return false;
}