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: *const c_char
Name of the sink.
index: u32
Index of the sink.
description: *const c_char
Description of this sink.
sample_spec: Spec
Sample spec of this sink.
channel_map: Map
Channel map.
owner_module: u32
Index of the owning module of this sink, or
::def::INVALID_INDEX
.
volume: CVolume
Volume of the sink.
mute: i32
Mute switch of the sink.
monitor_source: u32
Index of the monitor source connected to this sink.
monitor_source_name: *const c_char
The name of the monitor source.
latency: Usecs
Length of queued audio in the output buffer.
driver: *const c_char
Driver name.
flags: SinkFlagSet
Flags.
proplist: *mut ProplistInternal
Property list.
configured_latency: Usecs
The latency this device has been configured to.
base_volume: Volume
Some kind of "base" volume that refers to unamplified/unattenuated volume in the context of the output device.
state: SinkState
State.
n_volume_steps: u32
Number of volume steps for sinks which do not support arbitrary volumes.
card: u32
Card index, or ::def::INVALID_INDEX
.
n_ports: u32
Number of entries in port array.
ports: *mut *mut SinkPortInfo
Array of available ports, or NULL
. Array is terminated by an entry set to NULL
. The
number of entries is stored in n_ports
.
active_port: *mut SinkPortInfo
Pointer to active port in the array, or NULL
.
n_formats: u8
Number of formats supported by the sink.
formats: *mut *mut InfoInternal
Array of formats supported by the sink.