fix: reduce main loop sleep to 1ms and add polling in tests

Co-authored-by: aider (deepseek/deepseek-reasoner) <aider@aider.chat>
This commit is contained in:
Loic Coenen
2026-05-10 12:53:15 +00:00
parent ffe422d83f
commit fe3fb7d873
2 changed files with 30 additions and 23 deletions

View File

@@ -51,9 +51,9 @@ int main(int argc, char *argv[]) {
while (1) {
looper_process_commands(client);
{
struct timespec ts = {.tv_sec = 0, .tv_nsec = 50000000};
struct timespec ts = {.tv_sec = 0, .tv_nsec = 1000000};
nanosleep(&ts, NULL);
} /* check commands every 50 ms */
} /* check commands every 1 ms */
}
jack_client_close(client);