From ff913d0143dd78131ea099e95af208639a156a48 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Mon, 15 Oct 2001 11:49:36 +0000 Subject: [PATCH] 2nd fix for initial write --- test/latency.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/latency.c b/test/latency.c index b8c7aea8..837151ab 100644 --- a/test/latency.c +++ b/test/latency.c @@ -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)); -- 2.47.1