Index


NAME

Top

SDL::Mixer - Sound and music functions

CATEGORY

Top

Mixer

DESCRIPTION

Top

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.

METHODS

Top

init

 int SDL::Mixer::init(flags)

Note: Only available for SDL::Mixer >= 1.2.10

quit

 void SDL::Mixer::quit()

Note: Only available for SDL::Mixer >= 1.2.10

linked_version

 const SDL_version * SDL::Mixer::linked_version ()

open_audio

 int SDL::Mixer::open_audio ( frequency, format, channels, chunksize )

close_audio

 void SDL::Mixer::close_audio ()

query_spec

 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

AUTHORS

Top

Tobias Leich [FROGGS]

SEE ALSO

Top

perl, SDL::Music and SDL::Sound.