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: v1.0.23~10 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=0034b1f83f6e14f89a2fc2b2b02f14fcf0e93b2f;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;