limit = blimit;
} else {
- for (i = 0, n = 1; i < blimit; ++i, ++n) {
+ for (i = 0, n = 1; i < limit; ++i, ++n) {
memcpy (bufs.get_audio (i).data(), b, sizeof (Sample) * nframes);
if (n < diskstream->n_channels().n_audio()) {
tmpb = diskstream->playback_buffer(n);
}
}
}
+
+ /* try to leave any MIDI buffers alone */
+
+ ChanCount chn;
+ chn.set_audio (limit);
+ chn.set_midi (_input->n_ports().n_midi());
+ bufs.set_count (chn);
}
/* don't waste time with automation if we're recording or we've just stopped (yes it can happen) */
InternalSend::configure_io (ChanCount in, ChanCount out)
{
bool ret = Send::configure_io (in, out);
- set_block_size (_session.get_block_size());
+ set_block_size (_session.engine().frames_per_cycle());
return ret;
}
// Ensure route outputs match last processor's outputs
if (out != _output->n_ports ()) {
- cerr << "For " << _name << " out/last mismatch - out = " << out << " vs. " << _output->n_ports() << endl;
_output->ensure_io (out, false, this);
}