mirror of
https://github.com/Ryujinx/libsoundio.git
synced 2024-12-22 18:25:35 +00:00
parent
0598f91c5a
commit
8406dcd0ad
|
@ -268,6 +268,9 @@ int main(int argc, char **argv) {
|
|||
return 1;
|
||||
}
|
||||
|
||||
// Note: in this example, if you send SIGINT (by pressing Ctrl+C for example)
|
||||
// you will lose up to 1 second of recorded audio data. In non-example code,
|
||||
// consider a better shutdown strategy.
|
||||
for (;;) {
|
||||
soundio_flush_events(soundio);
|
||||
sleep(1);
|
||||
|
|
Loading…
Reference in a new issue