Prepare for GraphNode::feeds () and fed-by API update (2/2)
This commit is contained in:
parent
f2016f2408
commit
3862d13e21
@ -4632,8 +4632,7 @@ OSC::sel_new_personal_send (char *foldback, lo_message msg)
|
|||||||
//boost::shared_ptr<Route> rt_send = ;
|
//boost::shared_ptr<Route> rt_send = ;
|
||||||
if (rt && (lsn_rt != rt)) {
|
if (rt && (lsn_rt != rt)) {
|
||||||
// make sure there isn't one already
|
// make sure there isn't one already
|
||||||
bool s_only = true;
|
if (!rt->feeds (lsn_rt)) {
|
||||||
if (!rt->feeds (lsn_rt, &s_only)) {
|
|
||||||
// create send
|
// create send
|
||||||
rt->add_foldback_send (lsn_rt, false);
|
rt->add_foldback_send (lsn_rt, false);
|
||||||
//boost::shared_ptr<Send> snd = rt->internal_send_for (aux);
|
//boost::shared_ptr<Send> snd = rt->internal_send_for (aux);
|
||||||
@ -6324,8 +6323,7 @@ OSC::cue_new_send (string rt_name, lo_message msg)
|
|||||||
boost::shared_ptr<Route> rt_send = session->route_by_name (rt_name);
|
boost::shared_ptr<Route> rt_send = session->route_by_name (rt_name);
|
||||||
if (rt_send && (aux != rt_send)) {
|
if (rt_send && (aux != rt_send)) {
|
||||||
// make sure there isn't one already
|
// make sure there isn't one already
|
||||||
bool s_only = true;
|
if (!rt_send->feeds (aux)) {
|
||||||
if (!rt_send->feeds (aux, &s_only)) {
|
|
||||||
// create send
|
// create send
|
||||||
rt_send->add_foldback_send (aux, false);
|
rt_send->add_foldback_send (aux, false);
|
||||||
boost::shared_ptr<Send> snd = rt_send->internal_send_for (aux);
|
boost::shared_ptr<Send> snd = rt_send->internal_send_for (aux);
|
||||||
@ -6615,6 +6613,7 @@ OSC::cue_get_sorted_stripables(boost::shared_ptr<Stripable> aux, uint32_t id, lo
|
|||||||
{
|
{
|
||||||
Sorted sorted;
|
Sorted sorted;
|
||||||
|
|
||||||
|
#if 0
|
||||||
boost::shared_ptr<Route> aux_rt = boost::dynamic_pointer_cast<Route> (aux);
|
boost::shared_ptr<Route> aux_rt = boost::dynamic_pointer_cast<Route> (aux);
|
||||||
Route::FedBy fed_by = aux_rt->fed_by();
|
Route::FedBy fed_by = aux_rt->fed_by();
|
||||||
for (Route::FedBy::iterator i = fed_by.begin(); i != fed_by.end(); ++i) {
|
for (Route::FedBy::iterator i = fed_by.begin(); i != fed_by.end(); ++i) {
|
||||||
@ -6624,6 +6623,7 @@ OSC::cue_get_sorted_stripables(boost::shared_ptr<Stripable> aux, uint32_t id, lo
|
|||||||
s->DropReferences.connect (*this, MISSING_INVALIDATOR, boost::bind (&OSC::_cue_set, this, id, addr), this);
|
s->DropReferences.connect (*this, MISSING_INVALIDATOR, boost::bind (&OSC::_cue_set, this, id, addr), this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
sort (sorted.begin(), sorted.end(), StripableByPresentationOrder());
|
sort (sorted.begin(), sorted.end(), StripableByPresentationOrder());
|
||||||
|
|
||||||
return sorted;
|
return sorted;
|
||||||
|
Loading…
Reference in New Issue
Block a user