Use new Route fed-by API (1/2)
This commit is contained in:
parent
9ad154f265
commit
9b1440ab23
@ -656,16 +656,9 @@ FoldbackStrip::update_send_box ()
|
|||||||
StripableList stripables;
|
StripableList stripables;
|
||||||
stripables.clear ();
|
stripables.clear ();
|
||||||
|
|
||||||
#if 0
|
for (auto const& s : _route->signal_sources (true)) {
|
||||||
Route::FedBy fed_by = _route->fed_by ();
|
stripables.push_back (s);
|
||||||
for (Route::FedBy::iterator i = fed_by.begin (); i != fed_by.end (); ++i) {
|
|
||||||
if (i->sends_only) {
|
|
||||||
boost::shared_ptr<Route> rt (i->r.lock ());
|
|
||||||
boost::shared_ptr<Stripable> s = boost::dynamic_pointer_cast<Stripable> (rt);
|
|
||||||
stripables.push_back (s);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
stripables.sort (StripableByPresentationOrder ());
|
stripables.sort (StripableByPresentationOrder ());
|
||||||
for (StripableList::iterator it = stripables.begin (); it != stripables.end (); ++it) {
|
for (StripableList::iterator it = stripables.begin (); it != stripables.end (); ++it) {
|
||||||
boost::shared_ptr<Stripable> s_sp = *it;
|
boost::shared_ptr<Stripable> s_sp = *it;
|
||||||
@ -1078,23 +1071,17 @@ FoldbackStrip::duplicate_current_fb ()
|
|||||||
double oldgain = old_fb->gain_control ()->get_value ();
|
double oldgain = old_fb->gain_control ()->get_value ();
|
||||||
new_fb->gain_control ()->set_value (oldgain * 0.25, PBD::Controllable::NoGroup);
|
new_fb->gain_control ()->set_value (oldgain * 0.25, PBD::Controllable::NoGroup);
|
||||||
|
|
||||||
#if 0
|
for (auto const& rt : old_fb->signal_sources (true)) {
|
||||||
Route::FedBy fed_by = old_fb->fed_by ();
|
boost::shared_ptr<Send> old_snd = rt->internal_send_for (old_fb);
|
||||||
for (Route::FedBy::iterator i = fed_by.begin (); i != fed_by.end (); ++i) {
|
boost::shared_ptr<Processor> old_proc = old_snd;
|
||||||
if (i->sends_only) {
|
bool old_pre = old_proc->get_pre_fader ();
|
||||||
boost::shared_ptr<Route> rt (i->r.lock ());
|
rt->add_foldback_send (new_fb, !old_pre);
|
||||||
boost::shared_ptr<Send> old_snd = rt->internal_send_for (old_fb);
|
if (old_snd) {
|
||||||
boost::shared_ptr<Processor> old_proc = old_snd;
|
float old_gain = old_snd->gain_control ()->get_value ();
|
||||||
bool old_pre = old_proc->get_pre_fader ();
|
boost::shared_ptr<Send> new_snd = rt->internal_send_for (new_fb);
|
||||||
rt->add_foldback_send (new_fb, !old_pre);
|
new_snd->gain_control ()->set_value (old_gain, PBD::Controllable::NoGroup);
|
||||||
if (old_snd) {
|
|
||||||
float old_gain = old_snd->gain_control ()->get_value ();
|
|
||||||
boost::shared_ptr<Send> new_snd = rt->internal_send_for (new_fb);
|
|
||||||
new_snd->gain_control ()->set_value (old_gain, PBD::Controllable::NoGroup);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
set_route (new_fb);
|
set_route (new_fb);
|
||||||
route_rename ();
|
route_rename ();
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user