NAME

PulseAudio - The great new PulseAudio!

VERSION

Version 0.01_01

DESCRIPTION

This is a suite of tools that should make scripting PulseAudio simplier. Please see further docs in PulseAudio::Backend::Utilities, PulseAudio::Sink, PulseAudio::Source.

SYNOPSIS

This module provides an object oriented interface into the Pulse configuration pacmd.

use PulseAudio;
my $pa = PulseAudio->new;

my $pa = PulseAudio->new( pulse_server => '192.168.1.102' );

## We because the absolute location of the key is {properties}{device.bus_path}
my $sink = $pa->get_sinks_by( ['properties', 'device.bus_path'], 'pci-0000:00:1b.0' )

# Execute VLC with the B<PULSE_SINK> environmental variable set the sink's index.
$sink->exec( vlc );

# Set the sinks's volume
$sink->set_sink_volume( 0x10000 ); # Sets volume to max;
$sink->set_sink_volume( 'MAX' ); # Sets volume to max;

SEE ALSO

PulseAudio::Backend::Utilities
PulseAudio::Sink
PulseAudio::Source

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc PulseAudio

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

Copyright 2012 Evan Carroll.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.