Mix_LoadWAV_RW -- Helper macro to load a sound sample (in WAV, OGG, MP3, MOD or MIDI format) from a chunk of memory in an SDL_RWops structure.
#include "SDL_mixer.h" Mix_Chunk *Mix_LoadWAV_RW(SDL_RWops *src, int freesrc);
Mix_LoadWAV_RW is a macro that loads a sound sample from a a block of memory. It supports WAVE-, MOD-, MIDI-, OGG- and MP3 files (sometimes depends on compilation options). It accepts two arguments, the first being a pointer to the RWops structure from which to read and the second being a flag to free the source memory after loading is complete or not.
Returns a Mix_Chunk containing the whole sample on success, or NULL on error.