if (nouts < 2) {
/* no need for panning with less than 2 outputs */
- goto send_changed;
+ if (changed) {
+ Changed (); /* EMIT SIGNAL */
+ }
+ return;
}
switch (nouts) {
(*x)->update ();
}
+ /* must emit Changed here, otherwise the changes to the pan_control below raise further
+ signals which the GUI is not prepared for until it has seen the Changed here.
+ */
+
+ if (changed) {
+ Changed (); /* EMIT SIGNAL */
+ }
+
/* force hard left/right panning in a common case: 2in/2out
*/
_streampanners.back()->set_position (1.0);
_streampanners.back()->pan_control()->list()->reset_default (1.0);
-
- changed = true;
}
}
-
- send_changed:
- if (changed) {
- Changed (); /* EMIT SIGNAL */
- }
-
- return;
}
void