mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-26 08:27:43 +01:00
Apply the fix for post fader redirects
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3452 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
a6f6a3909c
commit
8d5e5ecd16
1 changed files with 11 additions and 1 deletions
|
|
@ -1133,7 +1133,8 @@ Route::_reset_plugin_counts (uint32_t* err_streams)
|
|||
uint32_t send_cnt = 0;
|
||||
map<Placement,list<InsertCount> > insert_map;
|
||||
RedirectList::iterator prev;
|
||||
int32_t initial_streams, previous_initial_streams = -1;
|
||||
int32_t initial_streams = n_inputs ();;
|
||||
int32_t previous_initial_streams = n_inputs ();
|
||||
int ret = -1;
|
||||
|
||||
redirect_max_outs = 0;
|
||||
|
|
@ -1209,6 +1210,15 @@ Route::_reset_plugin_counts (uint32_t* err_streams)
|
|||
goto streamcount;
|
||||
}
|
||||
|
||||
if (!insert_map[PostFader].empty()) {
|
||||
for (list<InsertCount>::iterator i = insert_map[PostFader].begin(); i != insert_map[PostFader].end(); i++) {
|
||||
if (i->insert->can_do (previous_initial_streams, initial_streams) < 0) {
|
||||
goto streamcount;
|
||||
}
|
||||
previous_initial_streams = initial_streams;
|
||||
}
|
||||
}
|
||||
|
||||
/* OK, everything can be set up correctly, so lets do it */
|
||||
|
||||
apply_some_plugin_counts (insert_map[PreFader]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue