]> git.alsa-project.org Git - alsa-utils.git/commitdiff
speaker-test: add fflush(stdout) to write_loop
authorJaroslav Kysela <perex@perex.cz>
Wed, 27 Jan 2010 09:26:52 +0000 (10:26 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 27 Jan 2010 09:28:17 +0000 (10:28 +0100)
Flush stdout for pipes. The monitor tool from hda-analyzer requires this.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
speaker-test/speaker-test.c

index 053ed3b2e154fdbdf02b56440e0c0f9021a563d6..d8d68e23441d4460ab8828d067eebbf17e398499 100644 (file)
@@ -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;