Allow port matrix to show both audio and midi ports at the same time, and use that...
[ardour.git] / gtk2_ardour / bundle_manager.cc
index 66e985e808dc9e3a75098fd557c5a78f0375d551..9916f805810f65741e3e59a7befdff44608e27e7 100644 (file)
@@ -107,7 +107,7 @@ BundleEditorMatrix::can_add_channel (boost::shared_ptr<Bundle> b) const
 }
 
 void
-BundleEditorMatrix::add_channel (boost::shared_ptr<Bundle> b)
+BundleEditorMatrix::add_channel (boost::shared_ptr<Bundle> b, DataType t)
 {
        if (b == _bundle) {
 
@@ -118,13 +118,12 @@ BundleEditorMatrix::add_channel (boost::shared_ptr<Bundle> b)
                        return;
                }
 
-               /* XXX: allow user to specify type */
-               _bundle->add_channel (d.get_name(), DataType::AUDIO);
+               _bundle->add_channel (d.get_name(), t);
                setup_ports (OURS);
 
        } else {
 
-               PortMatrix::add_channel (b);
+               PortMatrix::add_channel (b, t);
 
        }
 }