mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
midi routes have different playlists
This commit is contained in:
parent
e1fbd878f2
commit
db09fe1eb8
1 changed files with 9 additions and 2 deletions
|
|
@ -329,9 +329,16 @@ void MixerSnapshot::recall()
|
||||||
//we need the route's playlist id before it dissapears
|
//we need the route's playlist id before it dissapears
|
||||||
XMLNode& route_node = route->get_state();
|
XMLNode& route_node = route->get_state();
|
||||||
string playlist_id;
|
string playlist_id;
|
||||||
route_node.get_property (X_("audio-playlist"), playlist_id);
|
|
||||||
|
|
||||||
node.set_property(X_("audio-playlist"), playlist_id);
|
//audio route playlists
|
||||||
|
if (route_node.get_property (X_("audio-playlist"), playlist_id)) {
|
||||||
|
node.set_property(X_("audio-playlist"), playlist_id);
|
||||||
|
}
|
||||||
|
|
||||||
|
//midi route playlists
|
||||||
|
if (route_node.get_property (X_("midi-playlist"), playlist_id)) {
|
||||||
|
node.set_property(X_("midi-playlist"), playlist_id);
|
||||||
|
}
|
||||||
|
|
||||||
_session->remove_route(route);
|
_session->remove_route(route);
|
||||||
route = 0; //explicitly drop reference
|
route = 0; //explicitly drop reference
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue