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''.
$al->Sound(digi => 'auto',
midi => 'none');
Currently only auto and none are valid drivers.
$sound->shutdown;
$sound->volume(digi => $digital_volume,
midi => $midi_volume);
Either may be omitted to keep the current volume.
Colin O'Leary <colin@mx3.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.