mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
Fix a bug with the deviceio test.
This commit is contained in:
@@ -594,7 +594,7 @@ int main(int argc, char** argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Now we just keep looping and wait for user input. */
|
/* Now we just keep looping and wait for user input. */
|
||||||
while (!g_State.wantsToClose) {
|
for (;;) {
|
||||||
if (interactive) {
|
if (interactive) {
|
||||||
int c;
|
int c;
|
||||||
|
|
||||||
@@ -630,6 +630,10 @@ int main(int argc, char** argv)
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
/* Running in auto-close mode. Just sleep for a bit. The data callback will control when this loop aborts. */
|
/* Running in auto-close mode. Just sleep for a bit. The data callback will control when this loop aborts. */
|
||||||
|
if (g_State.wantsToClose) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
ma_sleep(10);
|
ma_sleep(10);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user