Prefer SessionController::ffwd() and rewind() in surfaces

I find button_varispeed() confusing, it might be a good idea to split it up
entirely.
This commit is contained in:
David Robillard 2021-06-17 11:22:07 -04:00
parent ae8f00be50
commit 01476e352e
2 changed files with 7 additions and 3 deletions

View file

@ -313,7 +313,11 @@ FaderPort8::button_varispeed (bool ffw)
return;
}
_controller.button_varispeed (ffw);
if (ffw) {
_controller.ffwd ();
} else {
_controller.rewind ();
}
}
#ifdef FP8_MUTESOLO_UNDO

View file

@ -73,9 +73,9 @@ void JogWheel::jog_event (float delta)
break;
default:
if (delta > 0) {
_mcp.controller ().button_varispeed (true);
_mcp.controller ().ffwd ();
} else if (delta < 0) {
_mcp.controller ().button_varispeed (false);
_mcp.controller ().rewind ();
}
break;
}