strict i/o sets enforces output port count.
authorRobin Gareus <robin@gareus.org>
Wed, 13 Apr 2016 18:54:42 +0000 (20:54 +0200)
committerRobin Gareus <robin@gareus.org>
Wed, 13 Apr 2016 18:54:42 +0000 (20:54 +0200)
libs/ardour/route.cc

index 5c34f42b7fa8ef0e0c06d59bcbd91064381b2453..429ee3155f02ce64deb75f4f86b1378b255ac9f5 100644 (file)
@@ -4757,6 +4757,9 @@ Route::input_port_count_changing (ChanCount to)
 bool
 Route::output_port_count_changing (ChanCount to)
 {
 bool
 Route::output_port_count_changing (ChanCount to)
 {
+       if (_strict_io && !_in_configure_processors) {
+               return true;
+       }
        for (DataType::iterator t = DataType::begin(); t != DataType::end(); ++t) {
                if (processor_out_streams.get(*t) > to.get(*t)) {
                        return true;
        for (DataType::iterator t = DataType::begin(); t != DataType::end(); ++t) {
                if (processor_out_streams.get(*t) > to.get(*t)) {
                        return true;