Sortix volatile manual
This manual documents Sortix volatile, a development build that has not been officially released. You can instead view this document in the latest official manual.
SDL_LoadWAV(3) | SDL API Reference | SDL_LoadWAV(3) |
NAME
SDL_LoadWAV - Load a WAVE fileSYNOPSIS
#include "SDL.h"DESCRIPTION
SDL_LoadWAV This function loads a WAVE file into memory.EXAMPLE
SDL_AudioSpec wav_spec;
Uint32 wav_length;
Uint8 *wav_buffer;
/* Load the WAV */
if( SDL_LoadWAV("test.wav", &wav_spec, &wav_buffer, &wav_length) == NULL ){
fprintf(stderr, "Could not open test.wav: %s
", SDL_GetError());
exit(-1);
}
.
.
.
/* Do stuff with the WAV */
.
.
/* Free It */
SDL_FreeWAV(wav_buffer);
SEE ALSO
SDL_AudioSpec, SDL_OpenAudio, SDL_FreeWAVTue 11 Sep 2001, 22:58 | SDL |