SP_VOLUME_MAX

The maximal volume of a channel or chunk/spSound. Same as MIX_MAX_VOLUME from SDL Mixer.

spSound

This type ist just Mix_Chunk from SDL Mixer renamed for better usage (I don’t like the SDL name). Of course you can use the SDL-type-name or use this types with SDL-mixer functions

spSoundInit

PREFIX int spSoundInit(

void

)

This inits spSound. Without no sound will be possible! It returns 1 at success and 0 at failure. If it failure, every spSound function will still be callable without crash - there will just be no sound.

Returns

int

1 at success, 0 at failure

spSoundSetChannels

PREFIX void spSoundSetChannels(

int

channels

)

Sets the maximum count of channels. More channels need more space and time to get handled. The default is 8 on most systems.

Parameters

channels

the new count of channels

spSoundQuit

PREFIX void spSoundQuit(

void

)

This has to be called at the end of the program.

spSoundPauseAll

PREFIX void spSoundPauseAll(

int

pause

)

Pauses or resumes all music and sounds. Every new started sound will be pause, too.