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

pub struct SinkInfo<'a> {
    pub name: Option<Cow<'a, str>>,
    pub index: u32,
    pub description: Option<Cow<'a, str>>,
    pub sample_spec: Spec,
    pub channel_map: Map,
    pub owner_module: Option<u32>,
    pub volume: ChannelVolumes,
    pub mute: bool,
    pub monitor_source: u32,
    pub monitor_source_name: Option<Cow<'a, str>>,
    pub latency: MicroSeconds,
    pub driver: Option<Cow<'a, str>>,
    pub flags: SinkFlagSet,
    pub proplist: Proplist,
    pub configured_latency: MicroSeconds,
    pub base_volume: Volume,
    pub state: SinkState,
    pub n_volume_steps: u32,
    pub card: Option<u32>,
    pub ports: Vec<SinkPortInfo<'a>>,
    pub active_port: Option<Box<SinkPortInfo<'a>>>,
    pub formats: Vec<Info>,
}

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 None if is invalid.

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 None if invalid.

Set of available ports.

Pointer to active port in the set, or None.

Set of formats supported by the sink.

Trait Implementations

impl<'a> Debug for SinkInfo<'a>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a> !Send for SinkInfo<'a>

impl<'a> !Sync for SinkInfo<'a>