mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-10 00:25:43 +01:00
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>
This commit is contained in:
parent
c2eaf88f7e
commit
0034b1f83f
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue