mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
add action to dump DSP stats to stdout
This commit is contained in:
parent
76bd2a77d7
commit
ec7b756d90
4 changed files with 19 additions and 1 deletions
|
|
@ -305,7 +305,8 @@ This mode provides many different operations on both regions and control points,
|
|||
@gedt|Common/start-loop-range|<@SECONDARY@>comma|set the start of the Loop range
|
||||
@gedt|Common/finish-loop-range|<@SECONDARY@>period|set the end of the Loop range
|
||||
|
||||
@gmark|Common/alternate-add-location-from-playhead|KP_Enter|add mark at playhead
|
||||
;@gmark|Common/alternate-add-location-from-playhead|KP_Enter|add mark at playhead
|
||||
@gmark|Common/show-dsp-stats|KP_Enter|show dsp stats
|
||||
@gmark|Common/alternate-remove-location-from-playhead|<@PRIMARY@>KP_Enter|add mark at playhead
|
||||
@wvis|Transport/focus-on-clock|KP_Divide|focus on main clock
|
||||
|
||||
|
|
|
|||
|
|
@ -3107,3 +3107,15 @@ ARDOUR_UI::setup_toplevel_window (Gtk::Window& window, const string& name, void*
|
|||
window.signal_key_press_event().connect (sigc::bind (sigc::mem_fun (*this, &ARDOUR_UI::key_event_handler), &window), false);
|
||||
window.signal_key_release_event().connect (sigc::bind (sigc::mem_fun (*this, &ARDOUR_UI::key_event_handler), &window), false);
|
||||
}
|
||||
|
||||
void
|
||||
ARDOUR_UI::show_dsp_stats ()
|
||||
{
|
||||
if (!_session) {
|
||||
cout << "No session\n";
|
||||
return;
|
||||
}
|
||||
|
||||
string str = _session->get_dsp_stats ();
|
||||
cout << str << endl;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -912,6 +912,8 @@ private:
|
|||
void action_script_changed (int i, const std::string&);
|
||||
|
||||
void ask_about_scratch_deletion ();
|
||||
|
||||
void show_dsp_stats ();
|
||||
};
|
||||
|
||||
#endif /* __ardour_gui_h__ */
|
||||
|
|
|
|||
|
|
@ -676,6 +676,9 @@ ARDOUR_UI::install_dependent_actions ()
|
|||
act = ActionManager::register_action (common_actions, "invert-selection", _("Invert Selection"), sigc::mem_fun(editor, &PublicEditor::invert_selection));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
|
||||
act = ActionManager::register_action (common_actions, "show-dsp-stats", _("Show DSP Statistics"), sigc::mem_fun(this, &ARDOUR_UI::show_dsp_stats));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
|
||||
act = ActionManager::register_action (transport_actions, X_("solo-selection"), _("Solo Selection"), sigc::bind (sigc::mem_fun(*editor, &PublicEditor::play_solo_selection), true));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
ActionManager::transport_sensitive_actions.push_back (act);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue