From: Jaroslav Kysela Date: Wed, 27 Jan 2010 09:26:52 +0000 (+0100) Subject: speaker-test: add fflush(stdout) to write_loop X-Git-Tag: rh-start~68 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=fbf5dbc0585f21588f52ba2f4314c0fd280a645f;p=alsa-utils.git speaker-test: add fflush(stdout) to write_loop Flush stdout for pipes. The monitor tool from hda-analyzer requires this. Signed-off-by: Jaroslav Kysela --- diff --git a/speaker-test/speaker-test.c b/speaker-test/speaker-test.c index 053ed3b..d8d68e2 100644 --- a/speaker-test/speaker-test.c +++ b/speaker-test/speaker-test.c @@ -689,6 +689,7 @@ static int write_loop(snd_pcm_t *handle, int channel, int periods, uint8_t *fram double phase = 0; int err, n; + fflush(stdout); if (test_type == TEST_WAV) { int bufsize = snd_pcm_frames_to_bytes(handle, period_size); n = 0;