13
0

Make IO::connect_ports_to_bundle able to partially connect

Forward the optional |allow_partial| boolean to |Bundle::connect|.
This commit is contained in:
Julien "_FrnchFrgg_" RIVAUD 2017-08-23 22:03:20 +02:00
parent 8cb40ab25b
commit 1aa3a3f4d6
2 changed files with 9 additions and 2 deletions

View File

@ -98,6 +98,7 @@ class LIBARDOUR_API IO : public SessionObject, public Latent
int ensure_io (ChanCount cnt, bool clear, void *src);
int connect_ports_to_bundle (boost::shared_ptr<Bundle>, bool exclusive, void *);
int connect_ports_to_bundle (boost::shared_ptr<Bundle>, bool, bool, void *);
int disconnect_ports_from_bundle (boost::shared_ptr<Bundle>, void *);
BundleList bundles_connected ();

View File

@ -1299,7 +1299,13 @@ IO::latency () const
}
int
IO::connect_ports_to_bundle (boost::shared_ptr<Bundle> c, bool exclusive, void* src)
IO::connect_ports_to_bundle (boost::shared_ptr<Bundle> c, bool exclusive, void* src) {
return connect_ports_to_bundle(c, exclusive, false, src);
}
int
IO::connect_ports_to_bundle (boost::shared_ptr<Bundle> c, bool exclusive,
bool allow_partial, void* src)
{
BLOCK_PROCESS_CALLBACK ();
@ -1312,7 +1318,7 @@ IO::connect_ports_to_bundle (boost::shared_ptr<Bundle> c, bool exclusive, void*
}
}
c->connect (_bundle, _session.engine());
c->connect (_bundle, _session.engine(), allow_partial);
/* If this is a UserBundle, make a note of what we've done */