Load raw audio data of the mixer format from a memory buffer
a pointer to the sample as a Mix_Chunk. NULL is returned on errors, such as when out of memory.
Note: This function does very little checking. If the format mismatches the output format it will not return an error. This is probably a dangerous function to use.
Binds to C-function in SDL_mixer.h
Mix_Chunk *Mix_QuickLoad_RAW(Uint8 *mem)
// quick-load a raw sample from memory // Uint8 *raw; // I assume you have the raw data here, // or compiled in the program... Mix_Chunk *raw_chunk; if(!(raw_chunk=Mix_QuickLoad_RAW(raw))) { printf("Mix_QuickLoad_RAW: %s\n", Mix_GetError()); // handle error }
SdlMixer Class | Tao.Sdl Namespace | Mix_LoadWAV | Mix_QuickLoad_WAV | Mix_FreeChunk