|[ < ]||[ > ]||[ << ]||[ Up ]||[ >> ]||[Top]||[Contents]||[Index]||[ ? ]|
Mix_Chunk *Mix_LoadWAV(char *file)
Load file for use as a sample. This is actually
Mix_LoadWAV_RW(SDL_RWFromFile(file, "rb"), 1). This can load WAVE, AIFF, RIFF, OGG, and VOC files.
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.
4.2.2 Mix_LoadWAV_RW, 4.2.3 Mix_QuickLoad_WAV, 4.2.6 Mix_FreeChunk