13
0

MCP: probably fix ardour->surface for faders

git-svn-id: svn://localhost/ardour2/branches/3.0@11929 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2012-04-12 00:45:11 +00:00
parent 9c281228b3
commit cf6d8b0e67

View File

@ -270,7 +270,7 @@ Strip::notify_gain_changed (bool force_update)
switch (_surface->mcp().flip_mode()) {
case MackieControlProtocol::Normal:
pos = _route->gain_control()->get_value();
return;
break;
case MackieControlProtocol::Swap:
case MackieControlProtocol::Zero:
@ -323,6 +323,8 @@ Strip::notify_panner_changed (bool force_update)
{
if (_route && _vpot) {
DEBUG_TRACE (DEBUG::MackieControl, string_compose ("pan change for strip %1\n", _index));
boost::shared_ptr<Pannable> pannable = _route->pannable();
if (!pannable) {
@ -344,6 +346,8 @@ Strip::notify_panner_changed (bool force_update)
break;
}
DEBUG_TRACE (DEBUG::MackieControl, string_compose ("\t\tnew position %1\n", pos));
if (force_update || pos != _last_vpot_position_written) {
_surface->write (_vpot->set_all (pos, true, Pot::dot));
_last_vpot_position_written = pos;