Skip to content

Commit

Permalink
Fixed our own test app. :)
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jul 5, 2007
1 parent 4e47787 commit 9f3749b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/loopwave.c
Expand Up @@ -43,14 +43,14 @@ void SDLCALL fillerup(void *unused, Uint8 *stream, int len)

/* Go! */
while ( waveleft <= len ) {
SDL_MixAudio(stream, waveptr, waveleft, SDL_MIX_MAXVOLUME);
SDL_memcpy(stream, waveptr, waveleft);
stream += waveleft;
len -= waveleft;
waveptr = wave.sound;
waveleft = wave.soundlen;
wave.soundpos = 0;
}
SDL_MixAudio(stream, waveptr, len, SDL_MIX_MAXVOLUME);
SDL_memcpy(stream, waveptr, len);
wave.soundpos += len;
}

Expand Down

0 comments on commit 9f3749b

Please sign in to comment.