Calculations can only be reliably performed on software volumes as it is commonly unknown what scale hardware volumes relate to.

The functions described above are only valid when used with software volumes. Hence it is usually a better idea to treat all volume values as opaque with a range from PA_VOLUME_MUTED (0%) to PA_VOLUME_NORM (100%) and to refrain from any calculations with them.

Convenience Functions

To handle the pa_cvolume structure, the PulseAudio library provides a number of convenienc functions: