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

#[repr(C)]
pub struct SourceInfo { 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_of_sink: u32, pub monitor_of_sink_name: *const c_char, pub latency: Usecs, pub driver: *const c_char, pub flags: SourceFlagSet, pub proplist: *mut ProplistInternal, pub configured_latency: Usecs, pub base_volume: Volume, pub state: SourceState, pub n_volume_steps: u32, pub card: u32, pub n_ports: u32, pub ports: *mut *mut SourcePortInfo, pub active_port: *mut SourcePortInfo, pub n_formats: u8, pub formats: *mut *mut InfoInternal, }

Stores information about sources.

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 source.

Index of the source.

Description of this source.

Sample spec of this source.

Channel map.

Owning module index, or ::def::INVALID_INDEX.

Volume of the source.

Mute switch of the sink.

If this is a monitor source, the index of the owning sink, otherwise ::def::INVALID_INDEX.

Name of the owning sink, or NULL.

Length of filled record buffer of this source.

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 input device.

State.

Number of volume steps for sources 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 source.

Array of formats supported by the source.