diff options
author | David Robillard <d@drobilla.net> | 2007-06-03 20:06:01 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-06-03 20:06:01 +0000 |
commit | b0e91bfa0899435c7b798ebd35363147eb1b2823 (patch) | |
tree | 0efa702f1d76ca2fadf309674cb2ee11fbc876db /libs/ardour/session_command.cc | |
parent | 41c128155a5eec412f138bcb90b8eb65bd1c5b3d (diff) |
Fix MIDI region loading.
Add model loading and destroying to SMFSource.
Load and display MIDI region data on session load.
git-svn-id: svn://localhost/ardour2/trunk@1947 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session_command.cc')
-rw-r--r-- | libs/ardour/session_command.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/ardour/session_command.cc b/libs/ardour/session_command.cc index 10f319ace8..534f2ffe81 100644 --- a/libs/ardour/session_command.cc +++ b/libs/ardour/session_command.cc @@ -24,6 +24,8 @@ #include <ardour/playlist.h> #include <ardour/audioplaylist.h> #include <ardour/audio_track.h> +#include <ardour/midi_playlist.h> +#include <ardour/midi_track.h> #include <ardour/tempo.h> #include <ardour/audiosource.h> #include <ardour/audioregion.h> @@ -93,11 +95,11 @@ Session::memento_command_factory(XMLNode *n) return new MementoCommand<Locations>(_locations, before, after); } else if (obj_T == typeid (TempoMap).name()) { return new MementoCommand<TempoMap>(*_tempo_map, before, after); - } else if (obj_T == typeid (Playlist).name() || obj_T == typeid (AudioPlaylist).name()) { + } else if (obj_T == typeid (Playlist).name() || obj_T == typeid (AudioPlaylist).name() || obj_T == typeid (MidiPlaylist).name()) { if (boost::shared_ptr<Playlist> pl = playlist_by_name(child->property("name")->value())) { return new MementoCommand<Playlist>(*(pl.get()), before, after); } - } else if (obj_T == typeid (Route).name() || obj_T == typeid (AudioTrack).name()) { + } else if (obj_T == typeid (Route).name() || obj_T == typeid (AudioTrack).name() || obj_T == typeid(MidiTrack).name()) { return new MementoCommand<Route>(*route_by_id(id), before, after); } else if (obj_T == typeid (Curve).name() || obj_T == typeid (AutomationList).name()) { if (automation_lists.count(id)) |