mirror of
https://github.com/yawut/SDL.git
synced 2026-08-24 09:45:09 -05:00
Merged r3140:3141 from branches/SDL-1.2: loopwave fix.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user