fix region export with fades and gain.
[ardour.git] / libs / ardour / send.cc
index 1664f42b354f0668755d2d977575a7a7aa50ec16..71cab468794bd26e576cc8f2605022d21bcb3176 100644 (file)
@@ -44,9 +44,9 @@ using namespace PBD;
 using namespace std;
 
 string
-Send::name_and_id_new_send (Session& s, Role r, uint32_t& bitslot)
+Send::name_and_id_new_send (Session& s, Role r, uint32_t& bitslot, bool ignore_bitslot)
 {
-       if (r == Role (0)) {
+       if (ignore_bitslot) {
                /* this happens during initial construction of sends from XML, 
                   before they get ::set_state() called. lets not worry about
                   it.
@@ -70,8 +70,8 @@ Send::name_and_id_new_send (Session& s, Role r, uint32_t& bitslot)
        
 }
 
-Send::Send (Session& s, boost::shared_ptr<Pannable> p, boost::shared_ptr<MuteMaster> mm, Role r)
-       : Delivery (s, p, mm, name_and_id_new_send (s, r, _bitslot), r)
+Send::Send (Session& s, boost::shared_ptr<Pannable> p, boost::shared_ptr<MuteMaster> mm, Role r, bool ignore_bitslot)
+       : Delivery (s, p, mm, name_and_id_new_send (s, r, _bitslot, ignore_bitslot), r)
        , _metering (false)
 {
        if (_role == Listen) {