mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
2nd fix for initial write
This commit is contained in:
parent
183da83f8e
commit
ff913d0143
1 changed files with 4 additions and 0 deletions
|
|
@ -436,6 +436,10 @@ int main(int argc, char *argv[])
|
||||||
fprintf(stderr, "write error\n");
|
fprintf(stderr, "write error\n");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if (writebuf(phandle, buffer, latency, &frames_out) < 0) {
|
||||||
|
fprintf(stderr, "write error\n");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
if ((err = snd_pcm_start(chandle)) < 0) {
|
if ((err = snd_pcm_start(chandle)) < 0) {
|
||||||
printf("Go error: %s\n", snd_strerror(err));
|
printf("Go error: %s\n", snd_strerror(err));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue