Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Merged r3140:3141 from branches/SDL-1.2: loopwave fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jul 5, 2007
1 parent 640aec2 commit 229f53e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/loopwave.c
Expand Up @@ -46,14 +46,14 @@ 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 229f53e

Please sign in to comment.