Struct libpulse_binding::context::introspect::SinkInfo [] [src]

#[repr(C)]
pub struct SinkInfo { pub name: *const c_char, pub index: u32, pub description: *const c_char, pub sample_spec: Spec, pub channel_map: Map, pub owner_module: u32, pub volume: CVolume, pub mute: i32, pub monitor_source: u32, pub monitor_source_name: *const c_char, pub latency: Usecs, pub driver: *const c_char, pub flags: SinkFlagSet, pub proplist: *mut ProplistInternal, pub configured_latency: Usecs, pub base_volume: Volume, pub state: SinkState, pub n_volume_steps: u32, pub card: u32, pub n_ports: u32, pub ports: *mut *mut SinkPortInfo, pub active_port: *mut SinkPortInfo, pub n_formats: u8, pub formats: *mut *mut InfoInternal, }

Stores information about sinks.

Please note that this structure can be extended as part of evolutionary API updates at any time in any new release.

Fields

Name of the sink.

Index of the sink.

Description of this sink.

Sample spec of this sink.

Channel map.

Index of the owning module of this sink, or ::def::INVALID_INDEX.

Volume of the sink.

Mute switch of the sink.

Index of the monitor source connected to this sink.

The name of the monitor source.

Length of queued audio in the output buffer.

Driver name.

Flags.

Property list.

The latency this device has been configured to.

Some kind of "base" volume that refers to unamplified/unattenuated volume in the context of the output device.

State.

Number of volume steps for sinks which do not support arbitrary volumes.

Card index, or ::def::INVALID_INDEX.

Number of entries in port array.

Array of available ports, or NULL. Array is terminated by an entry set to NULL. The number of entries is stored in n_ports.

Pointer to active port in the array, or NULL.

Number of formats supported by the sink.

Array of formats supported by the sink.