DPF

DISTRHO Plugin Framework
Log | Files | Refs | Submodules | README | LICENSE

commit 8e747ec0d573d66396a4f81dbc7a167964494e07
parent 421fdc2ccead216ac00a5810a568bd1ea03cbef1
Author: falkTX <falktx@gmail.com>
Date:   Sat,  4 Aug 2018 12:28:28 +0200

Allow to specific standalone app idle time

Diffstat:
Mdgl/Application.hpp | 2+-
Mdgl/src/Application.cpp | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dgl/Application.hpp b/dgl/Application.hpp @@ -62,7 +62,7 @@ public: idle() is called at regular intervals. @note This function is meant for standalones only, *never* call this from plugins. */ - void exec(); + void exec(int idleTime = 10); /** Quit the application. diff --git a/dgl/src/Application.cpp b/dgl/src/Application.cpp @@ -44,12 +44,12 @@ void Application::idle() } } -void Application::exec() +void Application::exec(int idleTime) { for (; pData->doLoop;) { idle(); - d_msleep(10); + d_msleep(idleTime); } }