SDL::Sound - a perl extension
SDL::Sound is a module for loading WAV files for sound effects. The file can be loaded by creating a new SDL::Sound object by passing the filename to the constructor;
my $sound = new SDL::Sound 'my_sfx.wav';
Sets the volume of the sample.
David J. Goehrig
perl SDL::Mixer
To install SDL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SDL
CPAN shell
perl -MCPAN -e shell install SDL
For more information on module installation, please visit the detailed CPAN module installation guide.