LunaLua global Sound and Music functions

There is a hardcoded API based on the SDL Mixer audio library used in LunaLua. It provides flexible SFX and Music functions to take more advanced usage of the audio sub-system.

Music common functions
There are common music functions that providing dynamic usage of music playback with the ability to play any custom music in one section. Also, Fade-IN/Fade-OUT effects are available for usage. List of supported formats.

Music advanced functions
There are advanced music functions are giving an ability to work with SDL Mixer X library's music API directly : open any song, start/pause/resume it as you want.

Music special functions
There are special functions that giving able to seize the music stream control from SMBX Engine. Seizing of music stream giving able to play any kinds of music with LUA code. By using music stream control seizing you can correctly use the music stream with no bugs. The target section should have any switched default music ID to take the ability to pause/resume music when you switching from SMBX into another application.

Sound effects common functions
There are functions to work with sound effects and mixing channels. List of supported formats.

SFX Object sound functions
This is the user-friendly hardcoded overlay that allows you an easier managing of playing SFX.

Low-level sound functions
This is the lowest SFX API which has the direct binding into the C API SDL Mixer X.