mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 21:55:43 +01:00
Expose RTA in Route context menu
This commit is contained in:
parent
b41bc2cf95
commit
0508d8cc4d
1 changed files with 18 additions and 0 deletions
|
|
@ -89,6 +89,7 @@
|
|||
#include "gui_thread.h"
|
||||
#include "route_group_menu.h"
|
||||
#include "meter_patterns.h"
|
||||
#include "rta_manager.h"
|
||||
#include "ui_config.h"
|
||||
#include "triggerbox_ui.h"
|
||||
|
||||
|
|
@ -1133,6 +1134,23 @@ MixerStrip::build_route_ops_menu ()
|
|||
denormal_menu_item->set_active (_route->denormal_protection());
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
if (active && !is_singleton ()) {
|
||||
items.push_back (CheckMenuElem (_("RTA")));
|
||||
Gtk::CheckMenuItem* i = dynamic_cast<Gtk::CheckMenuItem *> (&items.back());
|
||||
bool attached = RTAManager::instance ()->attached (_route);
|
||||
i->set_active (attached);
|
||||
i->signal_activate().connect ([this, attached]() {
|
||||
if (attached) {
|
||||
RTAManager::instance ()->remove (_route);
|
||||
} else {
|
||||
RTAManager::instance ()->attach (_route);
|
||||
ARDOUR_UI::instance()->show_realtime_analyzer ();
|
||||
}
|
||||
});
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Disk I/O */
|
||||
|
||||
if (active && is_track()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue