Struct pulseaudio::protocol::command::SinkInfo
source · pub struct SinkInfo {Show 22 fields
pub index: u32,
pub name: CString,
pub description: Option<CString>,
pub props: Props,
pub state: SinkState,
pub sample_spec: SampleSpec,
pub channel_map: ChannelMap,
pub owner_module_index: Option<u32>,
pub cvolume: ChannelVolume,
pub muted: bool,
pub monitor_source_index: Option<u32>,
pub monitor_source_name: Option<CString>,
pub flags: SinkFlags,
pub actual_latency: u64,
pub configured_latency: u64,
pub driver: Option<CString>,
pub base_volume: Volume,
pub volume_steps: Option<u32>,
pub card_index: Option<u32>,
pub ports: Vec<PortInfo>,
pub active_port: usize,
pub formats: Vec<FormatInfo>,
}Expand description
A sink connected to a PulseAudio server. if necessary).
Fields§
§index: u32Server-internal sink ID.
name: CStringThe human readable name of the sink.
description: Option<CString>A description of the sink.
props: PropsA list of properties.
state: SinkStateThe current state of the sink.
sample_spec: SampleSpecThe format of samples that the sink expects.
channel_map: ChannelMapThe mapping of channels to positions that the sink expects.
owner_module_index: Option<u32>The ID of the module that owns this sink.
cvolume: ChannelVolumeThe volume of the sink.
muted: boolWhether the sink is muted.
monitor_source_index: Option<u32>The ID of the monitor source for the sink.
monitor_source_name: Option<CString>Name of the monitor source for the sink.
flags: SinkFlagsFlags the sink is configured with.
actual_latency: u64The length of queued audio in the output, in microseconds.
configured_latency: u64The configured latency of the sink, in microseconds.
driver: Option<CString>The name of the driver used for this sink.
base_volume: VolumeThe base volume of the sink.
volume_steps: Option<u32>The number of individual steps in volume, for sinks which do not support arbitrary volumes.
card_index: Option<u32>The index of the card this sink belongs to.
ports: Vec<PortInfo>A sink has at least one port a plug can be plugged into, and only one port can be active at any given time.
active_port: usizeThe index of the currently active port.
formats: Vec<FormatInfo>The list of supported sample formats.
Implementations§
Trait Implementations§
source§impl PartialEq for SinkInfo
impl PartialEq for SinkInfo
source§impl TagStructRead for SinkInfo
impl TagStructRead for SinkInfo
source§fn read(
ts: &mut TagStructReader<'_>,
protocol_version: u16
) -> Result<SinkInfo, ProtocolError>
fn read( ts: &mut TagStructReader<'_>, protocol_version: u16 ) -> Result<SinkInfo, ProtocolError>
Self from a tagstruct.source§impl TagStructWrite for SinkInfo
impl TagStructWrite for SinkInfo
source§fn write(
&self,
w: &mut TagStructWriter<'_>,
protocol_version: u16
) -> Result<(), ProtocolError>
fn write( &self, w: &mut TagStructWriter<'_>, protocol_version: u16 ) -> Result<(), ProtocolError>
self into a tagstruct.