From 80879012692bb3d24fd615c90818d989c64f28cd Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Sun, 24 Jan 2010 16:34:57 -0600 Subject: [PATCH] Mixer: Make sure process queue is rebuilt upon binding of controls. --- Mixer/Chain.C | 2 ++ Mixer/Controller_Module.C | 4 +++- Mixer/Mono_Pan_Module.C | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Mixer/Chain.C b/Mixer/Chain.C index 4772d48..d086593 100644 --- a/Mixer/Chain.C +++ b/Mixer/Chain.C @@ -558,6 +558,8 @@ Chain::add_control ( Controller_Module *m ) controls_pack->add( m ); + configure_ports(); + engine()->unlock(); controls_pack->redraw(); diff --git a/Mixer/Controller_Module.C b/Mixer/Controller_Module.C index 9b74f53..74a8c2f 100644 --- a/Mixer/Controller_Module.C +++ b/Mixer/Controller_Module.C @@ -118,7 +118,9 @@ Controller_Module::Controller_Module ( bool is_default ) : Module( is_default, 5 add_port( Port( this, Port::OUTPUT, Port::CONTROL ) ); - mode( GUI ); + _mode = GUI; + +// mode( GUI ); // mode( CV ); // configure_inputs( 1 ); diff --git a/Mixer/Mono_Pan_Module.C b/Mixer/Mono_Pan_Module.C index cf94055..2490799 100644 --- a/Mixer/Mono_Pan_Module.C +++ b/Mixer/Mono_Pan_Module.C @@ -26,7 +26,7 @@ Mono_Pan_Module::Mono_Pan_Module ( ) : Module ( 50, 24, name() ) { Port p( this, Port::INPUT, Port::CONTROL, "Pan" ); - p.hints.type = Port::Hints::LOGARITHMIC; +// p.hints.type = Port::Hints::LOGARITHMIC; p.hints.ranged = true; p.hints.minimum = -1.0f; p.hints.maximum = 1.0f;