}
void
-PannerShell::run (BufferSet& inbufs, BufferSet& outbufs, framepos_t start_frame, framepos_t end_frame, pframes_t nframes)
+PannerShell::run (BufferSet& inbufs, BufferSet& outbufs, samplepos_t start_sample, samplepos_t end_sample, pframes_t nframes)
{
if (inbufs.count().n_audio() == 0) {
/* Input has no audio buffers (e.g. Aux Send in a MIDI track at a
// If we shouldn't play automation defer to distribute_no_automation
- if (!(as & Play || ((as & Touch) && !_panner->touching()))) {
+ if (!((as & Play) || ((as & (Touch | Latch)) && !_panner->touching()))) {
distribute_no_automation (inbufs, outbufs, nframes, 1.0);
i->silence(nframes);
}
- _panner->distribute_automated (inbufs, outbufs, start_frame, end_frame, nframes, _session.pan_automation_buffer());
+ _panner->distribute_automated (inbufs, outbufs, start_sample, end_sample, nframes, _session.pan_automation_buffer());
}
}