Audio::Play - interface for Audio::Data to hardware
use Audio::Data; use Audio::Play; $audio = Audio::Data->new(...) $svr = Audio::Play->new; $svr->play($audio);
Audio::Play is an wrapper class which loads Audio::Play::$^O i.e. a per-platform driver.
Each class provides the following interface:
Create the server and return an object. $wait is supposed to determine whether to wait for device (and for how long) but is currently not really working for many devices.
Set sample rate (if possible) to $rate.
Return sample rate.
Play $audio via the hardware. Should take steps to match hardware and data's sampling rate.
Set gain (if possible).
Wait for playing to complete.
Destructor flushes and closes hardware.
Nick Ing-Simmons <Nick@Ing-Simmons.net>, but sub-modules have been collected from wide variety of places.
1 POD Error
The following errors were encountered while parsing the POD:
=back doesn't take any parameters, but you said =back 4
To install Tk::Scope, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tk::Scope
CPAN shell
perl -MCPAN -e shell install Tk::Scope
For more information on module installation, please visit the detailed CPAN module installation guide.