Review

Opening the Mixer

To set up audio using the "mixer" library, do this:
Mix_Chunk * sample;
Mix_Music * song;
...
Mix_OpenAudio(frequency, format,
              channels, chunksize);
...
sample = Mix_LoadWav("sample.wav");
song = Mix_LoadMUS("song.mod");
When you're done:
Mix_FreeChunk(sample);
Mix_FreeMusic(song);
Mix_CloseAudio();