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