diff options
author | Timmy Keller <tjk@tjkeller.xyz> | 2024-09-23 23:08:13 -0500 |
---|---|---|
committer | Timmy Keller <tjk@tjkeller.xyz> | 2024-09-23 23:08:13 -0500 |
commit | 34c3d9896055db4e9afe24c478c9d454c80353cc (patch) | |
tree | 26132e0f0e45fe18c1c06667a298c7efcf80e1c3 /pavold.c | |
parent | 711a992c83d7bb5fac583b7b1e8d9d4ca8a93e33 (diff) | |
download | pavolctld-34c3d9896055db4e9afe24c478c9d454c80353cc.tar.xz pavolctld-34c3d9896055db4e9afe24c478c9d454c80353cc.zip |
add stdout flush after output
Diffstat (limited to 'pavold.c')
-rw-r--r-- | pavold.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) { |