From 34c3d9896055db4e9afe24c478c9d454c80353cc Mon Sep 17 00:00:00 2001 From: Timmy Keller Date: Mon, 23 Sep 2024 23:08:13 -0500 Subject: add stdout flush after output --- pavold.c | 1 + 1 file changed, 1 insertion(+) diff --git a/pavold.c b/pavold.c index aa92d3a..02fd1e8 100644 --- a/pavold.c +++ b/pavold.c @@ -14,6 +14,7 @@ static void sink_info_volume_callback(pa_context *c, const pa_sink_info *i, int vol = pa_cvolume_avg(&i->volume); printf("%d,%.02fdB,%d,%d,%d\n", vol*100/PA_VOLUME_NORM, pa_sw_volume_to_dB(vol), i->mute, i->index, i->index == default_sink_index); + fflush(stdout); } static void sink_info_default_index_callback(pa_context *c, const pa_sink_info *i, int eol, void *userdata) { -- cgit v1.2.3