SDL::Mixer - Sound and music functions
Mixer
SDL::Mixer allows you to enable sound, alter music volume settings, and lets you play, pause and resume, as well as fading the sound and music in and out.
int SDL::Mixer::init(flags)
Note: Only available for SDL::Mixer >= 1.2.10
void SDL::Mixer::quit()
Note: Only available for SDL::Mixer >= 1.2.10
const SDL_version * SDL::Mixer::linked_version ()
int SDL::Mixer::open_audio ( frequency, format, channels, chunksize )
void SDL::Mixer::close_audio ()
AV * SDL::Mixer::query_spec () CODE: int freq, channels, status; Uint16 format; status = Mix_QuerySpec(&freq,&format,&channels); RETVAL = (AV*)sv_2mortal((SV*)newAV()); av_push(RETVAL,newSViv(status)); av_push(RETVAL,newSViv(freq)); av_push(RETVAL,newSViv(format)); av_push(RETVAL,newSViv(channels)); OUTPUT: RETVAL
Tobias Leich [FROGGS]
perl, SDL::Music and SDL::Sound.