2nd fix for initial write

This commit is contained in:
Jaroslav Kysela 2001-10-15 11:49:36 +00:00
parent 183da83f8e
commit ff913d0143

View file

@ -436,6 +436,10 @@ int main(int argc, char *argv[])
fprintf(stderr, "write error\n");
break;
}
if (writebuf(phandle, buffer, latency, &frames_out) < 0) {
fprintf(stderr, "write error\n");
break;
}
if ((err = snd_pcm_start(chandle)) < 0) {
printf("Go error: %s\n", snd_strerror(err));