expose clock signal interval from ARDOUR_UI

This commit is contained in:
Paul Davis 2025-04-11 11:20:00 -06:00
parent 8e581d0997
commit 2d1b7f6de4
2 changed files with 11 additions and 0 deletions

View file

@ -2182,6 +2182,16 @@ ARDOUR_UI::start_clocking ()
}
}
unsigned int
ARDOUR_UI::clock_signal_interval ()
{
if (UIConfiguration::instance().get_super_rapid_clock_update()) {
return Timers::fps_interval ();
} else {
return Timers::rapid_interval ();
}
}
void
ARDOUR_UI::stop_clocking ()
{

View file

@ -298,6 +298,7 @@ public:
* (either RapidScreenUpdate || SuperRapidScreenUpdate - user-config)
*/
static sigc::signal<void, Temporal::timepos_t> Clock;
static unsigned int clock_signal_interval ();
static void close_all_dialogs () { CloseAllDialogs(); }
static sigc::signal<void> CloseAllDialogs;