Merged r3140:3141 from branches/SDL-1.2: loopwave fix.
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402414
This commit is contained in:
parent
409c8b5862
commit
8f06683bc6
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue