I believe pa_cvolume_avg() is what you are looking for. https://freedesktop.org/software/pulseaudio/doxygen/volume_8h.html#a0f34f2c6d1b4738bf7f11ff06775dc1f https://github.com/holomorph/dwmstatus/blob/5bd96bd82f3879c9ee7d6ca88be2ea7e090b9380/pulse.c#L52