13
0

RegionFx: allow touch (for "show on touch")

This commit is contained in:
Robin Gareus 2024-08-15 14:49:19 +02:00
parent d9752bb2c5
commit 74a909e299
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -465,7 +465,6 @@ RegionFxPlugin::describe_parameter (Evoral::Parameter param)
void
RegionFxPlugin::start_touch (uint32_t param_id)
{
assert (0); // touch is N/A
std::shared_ptr<AutomationControl> ac = std::dynamic_pointer_cast<AutomationControl> (control (Evoral::Parameter (PluginAutomation, 0, param_id)));
if (ac) {
ac->start_touch (timepos_t (_session.audible_sample ())); // XXX subtract region position
@ -475,7 +474,6 @@ RegionFxPlugin::start_touch (uint32_t param_id)
void
RegionFxPlugin::end_touch (uint32_t param_id)
{
assert (0); // touch is N/A
std::shared_ptr<AutomationControl> ac = std::dynamic_pointer_cast<AutomationControl> (control (Evoral::Parameter (PluginAutomation, 0, param_id)));
if (ac) {
ac->stop_touch (timepos_t (_session.audible_sample ())); // XXX subtract region position