4 # a SDL_mixer data module
6 # Copyright (C) 2000,2002 David J. Goehrig
13 my $class = ref($proto) || $proto;
15 my $self = \SDL::MixLoadWAV($filename);
22 SDL::MixFreeChunk($$self);
28 return SDL::MixVolumeChunk($$self,$volume);
41 SDL::Sound - a perl extension
45 L<SDL::Sound> is a module for loading WAV files for sound effects.
46 The file can be loaded by creating a new L<SDL::Sound> object by
47 passing the filename to the constructor;
49 my $sound = new SDL::Sound 'my_sfx.wav';
53 =head2 volume ( value )
55 Sets the volume of the sample.