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