double fractional_shift;
double fractional_pos;
gain_t polscale = invert_polarity ? -1.0f : 1.0f;
+
+ if (nframes == 0) return;
fractional_shift = -1.0/declick;
/* store effective pan position. do this even if we are muted */
- effective_x = buffers[0][nframes-1];
+ if (nframes > 0)
+ effective_x = buffers[0][nframes-1];
if (_muted) {
return;
}
}
- if (apply_gain_automation && _session.transport_rolling()) {
+ if (apply_gain_automation && _session.transport_rolling() && nframes > 0) {
_effective_gain = gab[nframes-1];
}