hide_button.show();
}
+ gpm.reset_peak_display ();
+
width_button.show();
width_hide_box.show();
whvbox.show ();
void
PannerUI::setup_pan ()
{
- if (!_panner) {
- return;
- }
-
- uint32_t const nouts = _panner->out().n_audio();
- uint32_t const nins = _panner->in().n_audio();
+ int const nouts = _panner ? _panner->out().n_audio() : -1;
+ int const nins = _panner ? _panner->in().n_audio() : -1;
- if (int32_t (nouts) == _current_nouts && int32_t (nins) == _current_nins) {
+ if (nouts == _current_nouts && nins == _current_nins) {
return;
}
delete _mono_panner;
_mono_panner = 0;
+ if (!_panner) {
+ return;
+ }
+
if (nouts == 0 || nouts == 1) {
/* stick something into the panning viewport so that it redraws */