Audio::Audiere::Stream - a sound (stream) in Audio::Audiere
See Audio::Audiere for usage.
Exports nothing.
This package provides you with individual sound streams. It should not be used on it's own, but via Audio::Audiere.
if ($stream->error()) { print "Fatal error: ", $stream->error(),"\n"; }
Return the last error message, or undef for no error.
Start playing the stream.
Stop playing the stream.
$stream->setPosition(100) if $stream->isSeekable();
Returns whether the stream is seekable or not.
if ($stream->isMuted()) { ... }
Returns true if the stream is currently muted.
while ($stream->isPlaying()) { ... }
Returns true if the stream is still playing.
Returns the current position in the stream.
Set the current position in the stream.
Returns the volume of the stream as a value between 0 and 1.
Set the volume of the stream as a value between 0 and 1.
Returns true if the stream is repeating (aka looping).
$stream->setRepeat(1); # loop $stream->setRepeat(0); # don't loop
If true, the stream will repeat (aka loop).
$stream->setPan ( -1.0 ); # -1.0 = left, 0 = center, 1.0 = right
Set the panning of the sound from -1.0 to +1.0.
Returns the current panning of the sound from -1.0 to +1.0. See setPan.
$stream->setMuted (1); # mute the stream ... $stream->setMuted (0); # unmute the stream again
Sets the stream to muted or unmuted. The stream will continue to play inaudible and also remembers it's volume, which will be restored on unmute.
(c) 2004 Tels <http://bloodgate.com/>
Audio::Audiere, Audio::Audiere::Stream, Audio::Audiere::Stream::3D, http://audiere.sf.net/.
To install Audio::Audiere, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Audio::Audiere
CPAN shell
perl -MCPAN -e shell install Audio::Audiere
For more information on module installation, please visit the detailed CPAN module installation guide.