[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
When using SDL_mixer functions you need to avoid the following functions from SDL:
SDL_OpenAudio
Mix_OpenAudio
instead.
SDL_CloseAudio
Mix_CloseAudio
instead.
SDL_PauseAudio
Mix_Pause(-1)
and Mix_PauseMusic
instead, to pause.Mix_Resume(-1)
and Mix_ResumeMusic
instead, to unpause.
SDL_LockAudio
SDL_UnlockAudio
You may call the following functions freely:
SDL_AudioDriverName
SDL_GetAudioStatus
It is also a BAD idea to call SDL_mixer and SDL audio functions from a callback. Callbacks include Effects functions and other SDL_mixer audio hooks.