diff options
author | Jaroslav Kysela <perex@perex.cz> | 2010-01-27 10:26:52 +0100 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2010-01-27 10:28:17 +0100 |
commit | 0034b1f83f6e14f89a2fc2b2b02f14fcf0e93b2f (patch) | |
tree | 07280287c8e458b9530b8ec3269147e0fbed1883 | |
parent | c2eaf88f7e070770dae442a2000e3926750dbb54 (diff) | |
download | alsa-utils-0034b1f83f6e14f89a2fc2b2b02f14fcf0e93b2f.tar.gz |
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 <perex@perex.cz>
-rw-r--r-- | speaker-test/speaker-test.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |