boost::shared_ptr<MidiDiskstream> mds = boost::dynamic_pointer_cast<MidiDiskstream> (ds);
mds->DataRecorded.connect_same_thread (
_diskstream_data_recorded_connection,
- boost::bind (&MidiTrack::diskstream_data_recorded, this, _1, _2));
+ boost::bind (&MidiTrack::diskstream_data_recorded, this, _1));
DiskstreamChanged (); /* EMIT SIGNAL */
}
int
MidiTrack::set_state (const XMLNode& node, int version)
-{
- return _set_state (node, version);
-}
-
-int
-MidiTrack::_set_state (const XMLNode& node, int version)
{
const XMLProperty *prop;
- if (Track::_set_state (node, version)) {
+ if (Track::set_state (node, version)) {
return -1;
}
c.set_midi (1);
bufs.set_count (c);
- diskstream->get_playback (mbuf, start_frame, end_frame);
+ diskstream->get_playback (mbuf, nframes);
/* append immediate messages to the first MIDI buffer (thus sending it to the first output port) */
/* final argument: don't waste time with automation if we're recording or we've just stopped (yes it can happen) */
- process_output_buffers (bufs, start_frame, end_frame, nframes,
- (!_session.get_record_enabled() || !Config->get_do_not_record_plugins()), declick,
- (!diskstream->record_enabled() && !_session.transport_stopped()));
+ process_output_buffers (
+ bufs, start_frame, end_frame, nframes,
+ declick, (!diskstream->record_enabled() && !_session.transport_stopped())
+ );
}
for (ProcessorList::iterator i = _processors.begin(); i != _processors.end(); ++i) {
}
void
-MidiTrack::diskstream_data_recorded (boost::shared_ptr<MidiBuffer> buf, boost::weak_ptr<MidiSource> src)
+MidiTrack::diskstream_data_recorded (boost::weak_ptr<MidiSource> src)
{
- DataRecorded (buf, src); /* EMIT SIGNAL */
+ DataRecorded (src); /* EMIT SIGNAL */
}
bool
{
return boost::shared_ptr<Diskstream> (new MidiDiskstream (_session, node));
}
+
+boost::shared_ptr<MidiBuffer>
+MidiTrack::get_gui_feed_buffer () const
+{
+ return midi_diskstream()->get_gui_feed_buffer ();
+}