mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
midiloop: use blocking mode
Busy waiting is evil - use blocking mode when reading the actual test data.
This commit is contained in:
parent
07137c0267
commit
15e936e277
1 changed files with 2 additions and 0 deletions
|
|
@ -133,6 +133,8 @@ int main(int argc, char** argv)
|
|||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
snd_rawmidi_nonblock(handle_in, 0);
|
||||
|
||||
patsize = writepattern(handle_out, obuf);
|
||||
gettimeofday(&start, NULL);
|
||||
patsize = writepattern(handle_out, obuf);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue