Constrain panner value to valid range
This commit is contained in:
parent
7aa4d6a91f
commit
ce088f1f44
@ -26,14 +26,16 @@ using namespace ARDOUR;
|
|||||||
void
|
void
|
||||||
PanControllable::actually_set_value (double v, Controllable::GroupControlDisposition group_override)
|
PanControllable::actually_set_value (double v, Controllable::GroupControlDisposition group_override)
|
||||||
{
|
{
|
||||||
boost::shared_ptr<Panner> p = owner->panner();
|
v = std::min (upper (), std::max (lower (), v));
|
||||||
|
|
||||||
if (!p) {
|
if (!owner || !owner->panner()) {
|
||||||
/* no panner: just do it */
|
/* no panner: just do it */
|
||||||
AutomationControl::actually_set_value (v, group_override);
|
AutomationControl::actually_set_value (v, group_override);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
boost::shared_ptr<Panner> p = owner->panner();
|
||||||
|
|
||||||
bool can_set = false;
|
bool can_set = false;
|
||||||
|
|
||||||
switch (parameter().type()) {
|
switch (parameter().type()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user