Audio::Play 1.029 reviewDownload
Audio::Play is an interface for Audio::Data to hardware. SYNOPSIS use Audio::Data; use Audio::Play; $audio = Audio:
Audio::Play is an interface for Audio::Data to hardware.
$audio = Audio::Data->new(...)
$svr = Audio::Play->new;
Audio::Play is an wrapper class which loads Audio::Play::$^O i.e. a per-platform driver.
Each class provides the following interface:
$svr = $class->new([$wait])
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.
$rate = $svr->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.
Audio::Play 1.029 search tags