[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Mix_Chunk *Mix_LoadWAV_RW(SDL_RWops *src, int freesrc)
Load src for use as a sample. This can load WAVE, AIFF, RIFF, OGG, and VOC formats.
Using SDL_RWops
is not covered here, but they enable you to load from almost any source.
Note: You must call SDL_OpenAudio before this. It must know the output characteristics so it can convert the sample for playback, it does this conversion at load time.
Returns: a pointer to the sample as a Mix_Chunk
. NULL is returned on errors.
|
See Also:
4.2.3 Mix_LoadWAV,
4.2.5 Mix_QuickLoad_WAV,
4.2.8 Mix_FreeChunk