28 #ifndef SDL_MIXER_COMPILEDVERSION
29 #define SDL_MIXER_COMPILEDVERSION \
30 SDL_VERSIONNUM(SDL_MIXER_MAJOR_VERSION, \
31 SDL_MIXER_MINOR_VERSION, SDL_MIXER_PATCHLEVEL)
33 #ifndef SDL_MIXER_VERSION_ATLEAST
34 #define SDL_MIXER_VERSION_ATLEAST(X, Y, Z) \
35 (SDL_MIXER_COMPILEDVERSION >= SDL_VERSIONNUM(X, Y, Z))
39 const uint16_t format,
43 #if SDL_MIXER_VERSION_ATLEAST(2, 0, 2)
44 return Mix_OpenAudioDevice(frequency,
49 SDL_AUDIO_ALLOW_FREQUENCY_CHANGE | SDL_AUDIO_ALLOW_CHANNELS_CHANGE);
52 return Mix_OpenAudio(frequency,
61 return Mix_LoadMUSType_RW(rw, MUS_OGG, 1);
Mix_Music * LoadMUSOgg_RW(SDL_RWops *const rw)
int MixOpenAudio(const int frequency, const uint16_t format, const int nchannels, const int chunksize)