Table of Contents
Playing music and sounds
The brick engine provides routines for playing songs and sounds. Both songs and sounds must be loaded into the brick engine before they can be played.
Songs
Songs can be started and stopped, and the song volume can be adjusted independent of the sounds. Songs can be loaded either from disk, or from a memory buffer. The file formats supported are all of those supported by SDL_mixer.
Sounds
Sounds can be started and stopped, and sound volume and panning can be adjusted at any time. Sounds can be loaded in three ways: from a file on disk or in a memory buffer in one of the file formats supported by SDL_mixer, or from a buffer containing raw sound data that matches the compile-time sound format settings.