Implement the CLAP timer-support extension

This is entirely implemented on the Wine side. I'll assume most Windows
plugins will use their own timers instead, but this could be useful for
plugins that try to use the same interface on all platforms.
This commit is contained in:
Robbert van der Helm
2022-10-26 23:35:54 +02:00
parent eeadf36195
commit d1ef29aa3e
6 changed files with 148 additions and 3 deletions
-2
View File
@@ -172,8 +172,6 @@ MainContext::WatchdogGuard MainContext::register_watchdog(HostBridge& bridge) {
void MainContext::async_handle_watchdog_timer(
std::chrono::steady_clock::duration interval) {
// Try to keep a steady framerate, but add in delays to let other events
// get handled if the GUI message handling somehow takes very long.
watchdog_timer_.expires_at(std::chrono::steady_clock::now() + interval);
watchdog_timer_.async_wait([&](const std::error_code& error) {
if (error) {