Volume

Access: read/write
The volume of the device. The array is matched against the Channels property: the first array element is the volume of the first channel in the Channels property, and so on.

There are two ways to adjust the volume. You can either adjust the overall volume by giving a single-value array, or you can precisely control the individual channels by passing an array containing a value for each channel.

!HasFlatVolume

Type: Boolean

Access: read
Whether or not the device is configured to use the "flat volume" logic, that is, the device volume follows the maximum volume of all connected streams. Currently this is not implemented for sources, so for them this property is always false.

!HasConvertibleToDecibelVolume

Type: Boolean

Access: read
If this is true, the volume values of the Volume property can be converted to decibels with pa_sw_volume_to_dB(). If you want to avoid the C API, the function does the conversion as follows:

If input = 0, then output = -200.0

Otherwise output = 20 * log10((input / 65536)3)

!BaseVolume

Type: Uint32

Access: read
The volume level at which the device doesn't perform any amplification or attenuation.

!VolumeSteps

Type: Uint32

Access: read
If the device doesn't support arbitrary volume values, this property tells the number of possible volume values. Otherwise this property has value 65537.

Mute

Type: Boolean

Access: read/write
Whether or not the device is currently muted.

!HasHardwareVolume

Type: Boolean

Access: read
Whether or not the device volume controls the hardware volume.

!HasHardwareMute

Type: Boolean

Access: read
Whether or not muting the device controls the hardware mute state.

!ConfiguredLatency

Type: Uint64

Access: read
The latency in microseconds that device has been configured to.

!HasDynamicLatency

Type: Boolean

Access: read
Whether or not the device latency can be adjusted according to the needs of the connected streams.

Latency

Type: Uint64

Access: read
The length of queued audio in the device buffer. Not all devices support latency querying; in those cases this property does not exist.