On 5/19/22 4:40 PM, Will Godfrey wrote:
Just a matter of curiosity, but what exactly does Rosegarden use as the system timer? Is it a direct count of something like get_time_of_day or is it a re-triggered soft timer? ... or something else entirely?
Rosegarden uses many different kind of timers depending on the situation. QTimer is used frequently in the UI. See RosegardenMainWindow::m_updateUITimer. That's an OS-driven callback timer. Very convenient.
There is also at least one sleep() loop related to the sequencer. See SequencerThread::run(). That uses QElapsedTime to get time.
Then internally, ALSA has its own timer which you can select in the preferences. That's the one that most likely generates and uses timestamps. Probably from some relatively high-resolution (millisecond) Linux "get time" call. I've not dug very far into that side of things.
Ted. _______________________________________________ Rosegarden-user mailing list [email protected] - use the link below to unsubscribe https://lists.sourceforge.net/lists/listinfo/rosegarden-user
