mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
pcm_min - blocking mode is default - remove extra snd_pcm_nonblock() call
This commit is contained in:
parent
4e1452ac07
commit
8e9dbcad79
1 changed files with 0 additions and 5 deletions
|
|
@ -34,11 +34,6 @@ int main(void)
|
|||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
if ((err = snd_pcm_nonblock(handle, 0)) < 0) {
|
||||
printf("Set to blocking mode failed: %s\n", snd_strerror(err));
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
for (i = 0; i < 16; i++) {
|
||||
frames = snd_pcm_writei(handle, buffer, sizeof(buffer));
|
||||
if (frames < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue