summaryrefslogtreecommitdiff
path: root/libs/ardour/midi_source.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2010-06-26 13:45:59 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2010-06-26 13:45:59 +0000
commit37978aa21437b9bb308efeb9828fbe4a06077cee (patch)
treef7b3b681e0e42c233ded6715ea824114d9e5c3ec /libs/ardour/midi_source.cc
parentecb0cd5d119d28092a8f48e4521ac5eba197bb54 (diff)
lots of details relating to MIDI file management; try to ignore ALSA sequencer MIDI ports named "Midi-Through"
git-svn-id: svn://localhost/ardour2/branches/3.0@7305 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/midi_source.cc')
-rw-r--r--libs/ardour/midi_source.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/libs/ardour/midi_source.cc b/libs/ardour/midi_source.cc
index 2e549b6fc6..36cd36795a 100644
--- a/libs/ardour/midi_source.cc
+++ b/libs/ardour/midi_source.cc
@@ -288,9 +288,19 @@ MidiSource::clone (Evoral::MusicalTime begin, Evoral::MusicalTime end)
void
MidiSource::session_saved()
{
+ /* this writes a copy of the data to disk.
+ XXX do we need to do this every time?
+ */
+
flush_midi();
+ cerr << name() << " @ " << this << " length at save = " << _length_beats << endl;
+
+#if 0 // old style: clone the source if necessary on every session save
+ // and switch to the new source
if (_model && _model->edited()) {
+ cerr << "Model exists and is edited\n";
+
boost::shared_ptr<MidiSource> newsrc = clone ();
if (newsrc) {
@@ -298,6 +308,7 @@ MidiSource::session_saved()
Switched (newsrc); /* EMIT SIGNAL */
}
}
+#endif
}
void