Lines Matching defs:wave
13 /* Program to load a wave file and loop playing it using SDL sound */
15 /* loopwaves.c is much more robust in handling WAVE files --
33 Uint8 *sound; /* Pointer to wave data */
34 Uint32 soundlen; /* Length of wave data */
36 } wave;
55 waveptr = wave.sound + wave.soundpos;
56 waveleft = wave.soundlen - wave.soundpos;
63 waveptr = wave.sound;
64 waveleft = wave.soundlen;
65 wave.soundpos = 0;
68 wave.soundpos += len;
98 /* Load the wave file into memory */
99 if (SDL_LoadWAV(filename, &wave.spec, &wave.sound, &wave.soundlen) == NULL) {
104 wave.spec.callback = fillerup;
124 if (SDL_OpenAudio(&wave.spec, NULL) < 0) {
126 SDL_FreeWAV(wave.sound);
139 SDL_FreeWAV(wave.sound);