39 #define SDL_MIXER_MAJOR_VERSION 2 40 #define SDL_MIXER_MINOR_VERSION 0 41 #define SDL_MIXER_PATCHLEVEL 4 46 #define SDL_MIXER_VERSION(X) \ 48 (X)->major = SDL_MIXER_MAJOR_VERSION; \ 49 (X)->minor = SDL_MIXER_MINOR_VERSION; \ 50 (X)->patch = SDL_MIXER_PATCHLEVEL; \ 54 #define MIX_MAJOR_VERSION SDL_MIXER_MAJOR_VERSION 55 #define MIX_MINOR_VERSION SDL_MIXER_MINOR_VERSION 56 #define MIX_PATCHLEVEL SDL_MIXER_PATCHLEVEL 57 #define MIX_VERSION(X) SDL_MIXER_VERSION(X) 62 #define SDL_MIXER_COMPILEDVERSION \ 63 SDL_VERSIONNUM(SDL_MIXER_MAJOR_VERSION, SDL_MIXER_MINOR_VERSION, SDL_MIXER_PATCHLEVEL) 68 #define SDL_MIXER_VERSION_ATLEAST(X, Y, Z) \ 69 (SDL_MIXER_COMPILEDVERSION >= SDL_VERSIONNUM(X, Y, Z)) 99 #define MIX_CHANNELS 8 103 #define MIX_DEFAULT_FREQUENCY 22050 104 #if SDL_BYTEORDER == SDL_LIL_ENDIAN 105 #define MIX_DEFAULT_FORMAT AUDIO_S16LSB 107 #define MIX_DEFAULT_FORMAT AUDIO_S16MSB 109 #define MIX_DEFAULT_CHANNELS 2 110 #define MIX_MAX_VOLUME SDL_MIX_MAXVOLUME 165 #define Mix_LoadWAV(file) Mix_LoadWAV_RW(SDL_RWFromFile(file, "rb"), 1) 248 #define MIX_CHANNEL_POST -2 355 #define MIX_EFFECTSMAXSPEED "MIX_EFFECTSMAXSPEED" 486 extern no_parse_DECLSPEC
int SDLCALL Mix_SetReverb(
int channel,
Uint8 echo);
550 #define Mix_PlayChannel(channel,chunk,loops) Mix_PlayChannelTimed(channel,chunk,loops,-1) 558 #define Mix_FadeInChannel(channel,chunk,loops,ms) Mix_FadeInChannelTimed(channel,chunk,loops,ms,-1) 639 #define Mix_SetError SDL_SetError 640 #define Mix_GetError SDL_GetError 641 #define Mix_ClearError SDL_ClearError
DECLSPEC int SDLCALL Mix_GroupNewer(int tag)
DECLSPEC Mix_Music *SDLCALL Mix_LoadMUS(const char *file)
DECLSPEC int SDLCALL Mix_Init(int flags)
DECLSPEC void SDLCALL Mix_CloseAudio(void)
DECLSPEC int SDLCALL Mix_OpenAudio(int frequency, Uint16 format, int channels, int chunksize)
DECLSPEC Mix_Chunk *SDLCALL Mix_QuickLoad_RAW(Uint8 *mem, Uint32 len)
DECLSPEC int SDLCALL Mix_FadeOutChannel(int which, int ms)
DECLSPEC int SDLCALL Mix_GroupChannels(int from, int to, int tag)
DECLSPEC int SDLCALL Mix_SetSoundFonts(const char *paths)
DECLSPEC int SDLCALL Mix_FadeInMusic(Mix_Music *music, int loops, int ms)
DECLSPEC int SDLCALL Mix_GetNumChunkDecoders(void)
DECLSPEC void SDLCALL Mix_RewindMusic(void)
DECLSPEC int SDLCALL Mix_RegisterEffect(int chan, Mix_EffectFunc_t f, Mix_EffectDone_t d, void *arg)
DECLSPEC int SDLCALL Mix_FadeOutMusic(int ms)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
DECLSPEC void SDLCALL Mix_PauseMusic(void)
DECLSPEC Mix_Fading SDLCALL Mix_FadingChannel(int which)
DECLSPEC const char *SDLCALL Mix_GetSoundFonts(void)
DECLSPEC int SDLCALL Mix_UnregisterAllEffects(int channel)
DECLSPEC int SDLCALL Mix_HaltChannel(int channel)
GLuint const GLchar * name
DECLSPEC int SDLCALL Mix_ReserveChannels(int num)
DECLSPEC void SDLCALL Mix_ChannelFinished(void(SDLCALL *channel_finished)(int channel))
DECLSPEC int SDLCALL Mix_EachSoundFont(int(SDLCALL *function)(const char *, void *), void *data)
DECLSPEC Mix_MusicType SDLCALL Mix_GetMusicType(const Mix_Music *music)
DECLSPEC int SDLCALL Mix_GroupOldest(int tag)
DECLSPEC void SDLCALL Mix_ResumeMusic(void)
GLsizei const GLuint * paths
DECLSPEC int SDLCALL Mix_GroupCount(int tag)
GLsizei GLsizei GLfloat distance
DECLSPEC int SDLCALL Mix_GetSynchroValue(void)
DECLSPEC int SDLCALL Mix_SetSynchroValue(int value)
DECLSPEC int SDLCALL Mix_HaltMusic(void)
DECLSPEC int SDLCALL Mix_VolumeChunk(Mix_Chunk *chunk, int volume)
DECLSPEC int SDLCALL Mix_Paused(int channel)
DECLSPEC int SDLCALL Mix_Volume(int channel, int volume)
DECLSPEC void SDLCALL Mix_Resume(int channel)
DECLSPEC int SDLCALL Mix_VolumeMusic(int volume)
DECLSPEC int SDLCALL Mix_PlayingMusic(void)
DECLSPEC int SDLCALL Mix_FadeOutGroup(int tag, int ms)
DECLSPEC int SDLCALL Mix_PausedMusic(void)
Information the version of SDL in use.
DECLSPEC void SDLCALL Mix_SetPostMix(void(SDLCALL *mix_func)(void *udata, Uint8 *stream, int len), void *arg)
DECLSPEC const char *SDLCALL Mix_GetChunkDecoder(int index)
DECLSPEC Mix_Chunk *SDLCALL Mix_QuickLoad_WAV(Uint8 *mem)
GLsizei const GLfloat * value
DECLSPEC Mix_Chunk *SDLCALL Mix_LoadWAV_RW(SDL_RWops *src, int freesrc)
DECLSPEC int SDLCALL Mix_FadeInMusicPos(Mix_Music *music, int loops, int ms, double position)
DECLSPEC int SDLCALL Mix_SetMusicCMD(const char *command)
DECLSPEC int SDLCALL Mix_AllocateChannels(int numchans)
DECLSPEC SDL_bool SDLCALL Mix_HasChunkDecoder(const char *name)
DECLSPEC int SDLCALL Mix_UnregisterEffect(int channel, Mix_EffectFunc_t f)
DECLSPEC int SDLCALL Mix_SetPosition(int channel, Sint16 angle, Uint8 distance)
DECLSPEC int SDLCALL Mix_GroupAvailable(int tag)
DECLSPEC SDL_bool SDLCALL Mix_HasMusicDecoder(const char *name)
void(SDLCALL * Mix_EffectFunc_t)(int chan, void *stream, int len, void *udata)
DECLSPEC int SDLCALL Mix_SetReverseStereo(int channel, int flip)
DECLSPEC Mix_Music *SDLCALL Mix_LoadMUS_RW(SDL_RWops *src, int freesrc)
DECLSPEC int SDLCALL Mix_GroupChannel(int which, int tag)
DECLSPEC int SDLCALL Mix_PlayChannelTimed(int channel, Mix_Chunk *chunk, int loops, int ticks)
DECLSPEC void SDLCALL Mix_HookMusic(void(SDLCALL *mix_func)(void *udata, Uint8 *stream, int len), void *arg)
DECLSPEC int SDLCALL Mix_QuerySpec(int *frequency, Uint16 *format, int *channels)
DECLSPEC void SDLCALL Mix_Pause(int channel)
DECLSPEC Mix_Chunk *SDLCALL Mix_GetChunk(int channel)
DECLSPEC void SDLCALL Mix_FreeMusic(Mix_Music *music)
struct _Mix_Music Mix_Music
DECLSPEC int SDLCALL Mix_OpenAudioDevice(int frequency, Uint16 format, int channels, int chunksize, const char *device, int allowed_changes)
DECLSPEC int SDLCALL Mix_Playing(int channel)
DECLSPEC Mix_Fading SDLCALL Mix_FadingMusic(void)
DECLSPEC void SDLCALL Mix_HookMusicFinished(void(SDLCALL *music_finished)(void))
DECLSPEC void SDLCALL Mix_Quit(void)
DECLSPEC const char *SDLCALL Mix_GetMusicDecoder(int index)
DECLSPEC int SDLCALL Mix_FadeInChannelTimed(int channel, Mix_Chunk *chunk, int loops, int ms, int ticks)
GLuint GLuint GLsizei GLenum type
DECLSPEC int SDLCALL Mix_SetMusicPosition(double position)
DECLSPEC int SDLCALL Mix_GetNumMusicDecoders(void)
struct Mix_Chunk Mix_Chunk
DECLSPEC int SDLCALL Mix_HaltGroup(int tag)
DECLSPEC void SDLCALL Mix_FreeChunk(Mix_Chunk *chunk)
DECLSPEC int SDLCALL Mix_PlayMusic(Mix_Music *music, int loops)
DECLSPEC int SDLCALL Mix_SetDistance(int channel, Uint8 distance)
void(SDLCALL * Mix_EffectDone_t)(int chan, void *udata)
DECLSPEC void *SDLCALL Mix_GetMusicHookData(void)
DECLSPEC int SDLCALL Mix_ExpireChannel(int channel, int ticks)
DECLSPEC Mix_Music *SDLCALL Mix_LoadMUSType_RW(SDL_RWops *src, Mix_MusicType type, int freesrc)
DECLSPEC const SDL_version *SDLCALL Mix_Linked_Version(void)
DECLSPEC int SDLCALL Mix_SetPanning(int channel, Uint8 left, Uint8 right)