Polarity control value needs to be able to go negative as it
authorCarl Hetherington <carl@carlh.net>
Wed, 3 Aug 2011 12:16:42 +0000 (12:16 +0000)
committerCarl Hetherington <carl@carlh.net>
Wed, 3 Aug 2011 12:16:42 +0000 (12:16 +0000)
is a gain.  Fixes #4212.

git-svn-id: svn://localhost/ardour2/branches/3.0@9950 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/monitor_processor.cc

index d12db38c27d042e117d93932b6e5cf2c4f10e42b..60c3c3f732be6b1f60ff74f9da3e08f421dc7c74 100644 (file)
@@ -492,7 +492,7 @@ MonitorProcessor::ChannelRecord::ChannelRecord (uint32_t chn)
        : current_gain (1.0)
        , cut_ptr (new MPControl<gain_t> (1.0, string_compose (_("cut control %1"), chn), PBD::Controllable::GainLike))
        , dim_ptr (new MPControl<bool> (false, string_compose (_("dim control"), chn), PBD::Controllable::Toggle))
-       , polarity_ptr (new MPControl<gain_t> (1.0, string_compose (_("polarity control"), chn), PBD::Controllable::Toggle))
+       , polarity_ptr (new MPControl<gain_t> (1.0, string_compose (_("polarity control"), chn), PBD::Controllable::Toggle, -1, 1))
        , soloed_ptr (new MPControl<bool> (false, string_compose (_("solo control"), chn), PBD::Controllable::Toggle))
 
        , cut_control (cut_ptr)