Skip to content
Tangent 128 edited this page Mar 28, 2015 · 3 revisions

SDL mixer

Additional module for SDL_mixer.

Module

local mixer = require "SDL.mixer" 

Objects

Object Description
Music A music object
Chunk A chunk object

Tables

Table Description
mixer.flags Flags for mixer
mixer.fading Fading status
mixer.type Type of music

Functions

Function Description
mixer.init Initialize the SDL_mixer module
mixer.openAudio Open an audio device
mixer.getNumChunkDecoders Get the number of decoders
mixer.getChunkDecoder Get a chunk decoder name
mixer.loadWAV Load a chunk by path
mixer.loadWAV_RW Load a chunk with RWops
mixer.allocateChannels Prepare channels
mixer.volume Set or get the volume
mixer.pause Pause the sound system
mixer.resume Resume the sound
mixer.haltChannel Halt a channel
mixer.expireChannel Expire a channel
mixer.fadeOutChannel Fade out effect
mixer.playing Check if playing
mixer.paused Check if paused
mixer.fadingChannel Get the fading status
mixer.reserveChannels Reserve channels
mixer.groupChannel Group channel
mixer.groupChannels Group channels
mixer.groupCount Get the number of channels in a group
mixer.groupAvailable Find a channel in a group
mixer.groupOldest Get the oldest channel
mixer.groupNewer Get the newest channel
mixer.fadeOutGroup Fade out a group
mixer.haltGroup Halt a group
mixer.getNumMusicDecoders Get the number of music decoders
mixer.getMusicDecoder Get a music decoder name
mixer.loadMUS Load a music
mixer.closeAudio Close the audio
mixer.quit Close the SDL_mixer module
Clone this wiki locally