Home | History | Annotate | Download | only in test

Lines Matching full:wave

2 /* Program to load a wave file and loop playing it using SDL sound */
4 /* loopwaves.c is much more robust in handling WAVE files --
21 Uint8 *sound; /* Pointer to wave data */
22 Uint32 soundlen; /* Length of wave data */
24 } wave;
41 waveptr = wave.sound + wave.soundpos;
42 waveleft = wave.soundlen - wave.soundpos;
49 waveptr = wave.sound;
50 waveleft = wave.soundlen;
51 wave.soundpos = 0;
54 wave.soundpos += len;
75 /* Load the wave file into memory */
77 &wave.spec, &wave.sound, &wave.soundlen) == NULL ) {
83 wave.spec.callback = fillerup;
97 if ( SDL_OpenAudio(&wave.spec, NULL) < 0 ) {
99 SDL_FreeWAV(wave.sound);
111 SDL_FreeWAV(wave.sound);