This website works better with JavaScript.
Home
Help
Sign In
DISTRHO
/
DPF
mirror of
https://github.com/DISTRHO/DPF
Watch
1
Star
0
Fork
0
Code
Releases
0
Activity
Browse Source
Allow to specific standalone app idle time
pull/61/head
falkTX
5 years ago
parent
421fdc2cce
commit
8e747ec0d5
2 changed files
with
3 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
dgl/Application.hpp
+2
-2
dgl/src/Application.cpp
+ 1
- 1
dgl/Application.hpp
View File
@@ -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.
+ 2
- 2
dgl/src/Application.cpp
View File
@@ -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
);
}
}
Write
Preview
Loading…
Cancel
Save