Line buffering is the obviously correct mode for (s)events, but block
buffering would typically be used when piping its output to another
program.
Closes: https://github.com/alsa-project/alsa-utils/pull/306
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
snd_hctl_elem_t *helem;
int err;
+ setlinebuf(stdout);
+
if ((err = snd_hctl_open(&handle, card, 0)) < 0) {
error("Control %s open error: %s\n", card, snd_strerror(err));
return err;
snd_mixer_t *handle;
int err;
+ setlinebuf(stdout);
+
if ((err = snd_mixer_open(&handle, 0)) < 0) {
error("Mixer %s open error: %s", card, snd_strerror(err));
return err;