mirror of
https://github.com/yawut/SDL.git
synced 2026-10-01 20:56:44 -05:00
Fixed our own test app. :)
--HG-- branch : SDL-1.2
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user