mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
Prevent user from indirectly disabling LAN amp
This commit is contained in:
parent
b167e6f2ed
commit
9d865f241d
1 changed files with 10 additions and 0 deletions
|
|
@ -2496,6 +2496,11 @@ ProcessorBox::processor_operation (ProcessorOperation op)
|
||||||
if (!boost::dynamic_pointer_cast<PluginInsert> (*i)) {
|
if (!boost::dynamic_pointer_cast<PluginInsert> (*i)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if (boost::dynamic_pointer_cast<Amp> (*i) && boost::dynamic_pointer_cast<Amp> (*i)->gain_control()->parameter().type() != GainAutomation) {
|
||||||
|
/* Trim, Volume */
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef MIXBUS
|
#ifdef MIXBUS
|
||||||
if (boost::dynamic_pointer_cast<PluginInsert> (*i)->is_channelstrip()) {
|
if (boost::dynamic_pointer_cast<PluginInsert> (*i)->is_channelstrip()) {
|
||||||
continue;
|
continue;
|
||||||
|
|
@ -2588,6 +2593,11 @@ ProcessorBox::processor_button_release_event (GdkEventButton *ev, ProcessorEntry
|
||||||
processor = child->processor ();
|
processor = child->processor ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (boost::dynamic_pointer_cast<Amp> (processor) && boost::dynamic_pointer_cast<Amp> (processor)->gain_control()->parameter().type() != GainAutomation) {
|
||||||
|
/* Volume */
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (processor && Keyboard::is_delete_event (ev)) {
|
if (processor && Keyboard::is_delete_event (ev)) {
|
||||||
|
|
||||||
Glib::signal_idle().connect (sigc::bind (
|
Glib::signal_idle().connect (sigc::bind (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue