NAME

PulseAudio::Backend::Utilities - The backend module for the pacmd

SYNOPSIS

$pa = PulseAudio->new;

$sink = $pa->get_sink_by_index(5);

$sink = $pa->get_sink_by([qw/properties device.bus_path/], q[pci-0000:00:1b.0] );

$sink->set_sink_volume('50%');

$sink->exec(vlc); # sets up PULSE_SINK

DESCRIPTION

This module serves to provide all the functionality of the backend utilities.

Methods

get_sink_by( $arrayRef, $value )
get_source_by( [qw/properties subpropertykey/], $value )

Takes an arrayref to establish the depth and location to check against, and a single key.

get_sink_by_index( $idx )
get_source_by_index( $idx )

Takes a simple index (integer)

sources
sinks
defaults

Two attributes that store HashRefs to the Source Objects and Sink Objects, indexed by the PulseAudio index of the source or sink.