// so that we don't need a long period to stabilize at the beginning.
if (err < 0.0) {
int delay_samples_to_add = lrintf(-err);
- for (ssize_t i = 0; i < delay_samples_to_add * num_channels; ++i) {
+ for (ssize_t i = 0; i < delay_samples_to_add * int(num_channels); ++i) {
buffer.push_front(0.0f);
}
total_consumed_samples -= delay_samples_to_add; // Equivalent to increasing input_samples_received on a0 and a1.
// (we start ResamplingQueues also when we e.g. switch sound sources),
// but in general, a little bit of increased timing jitter is acceptable
// right after a setup change like this.
- double loop_bandwidth_hz = (total_consumed_samples < 4 * freq_in) ? 0.2 : 0.02;
+ double loop_bandwidth_hz = (total_consumed_samples < 4 * int(freq_in)) ? 0.2 : 0.02;
// Set filters. The first filter much wider than the first one (20x as wide).
double w = (2.0 * M_PI) * loop_bandwidth_hz * num_samples / freq_out;