Allegro::Sound - Allegro sound initialization/volume routines
use Allegro; $al = Allegro->new() or die; $sound = $al->Sound() or die $al->error; $sound->volume(digi => 50);
This module includes the routines to initialize the Allegro sound card drivers.
Both Allegro::Sample and Allegro::MIDI will use this module implicitly, so you don't need a "use Allegro::Sound".
Installs the digital sound and MIDI drivers.
$al->Sound(digi => 'auto', midi => 'none');
Currently only auto and none are valid drivers.
auto
none
Desired digital card driver. Defaults to 'auto'.
Desired MIDI driver. Defaults to 'none'.
Uninstalls both the digital sound and MIDI drivers.
$sound->shutdown;
Sets global volume.
$sound->volume(digi => $digital_volume, midi => $midi_volume);
Digital sound volume. Valid values are 0-255.
MIDI volume. Valid values are 0-255.
Either may be omitted to keep the current volume.
Colin O'Leary <colino@cpan.org>
Copyright 2003 by Colin O'Leary. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The Allegro library is copyright its authors, and is giftware. See http://alleg.sf.net for more information.
To install Allegro, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Allegro
CPAN shell
perl -MCPAN -e shell install Allegro
For more information on module installation, please visit the detailed CPAN module installation guide.