]> git.alsa-project.org Git - alsa-lib.git/commitdiff
2nd fix for initial write
authorJaroslav Kysela <perex@perex.cz>
Mon, 15 Oct 2001 11:49:36 +0000 (11:49 +0000)
committerJaroslav Kysela <perex@perex.cz>
Mon, 15 Oct 2001 11:49:36 +0000 (11:49 +0000)
test/latency.c

index b8c7aea828f375589bc5bfb5ee5bc3a20e780c88..837151ab7407045d1ce827113ef65f1992560036 100644 (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));