diff --git a/stepmania/src/arch/Sound/RageSoundDriver_SDL.cpp b/stepmania/src/arch/Sound/RageSoundDriver_SDL.cpp index 1e508809dc..7a30a4bd21 100644 --- a/stepmania/src/arch/Sound/RageSoundDriver_SDL.cpp +++ b/stepmania/src/arch/Sound/RageSoundDriver_SDL.cpp @@ -73,7 +73,7 @@ void RageSound_SDL::GetData(void *userdata, Uint8 *stream, int len) { /* I don't like this but I can't think of another place to put it. */ while (!SOUNDMAN) - sleep(10); + SDL_Delay(10); for (unsigned i = 0; i < P->sounds.size(); ++i) { if (P->sounds[i]->stopping) @@ -88,6 +88,8 @@ void RageSound_SDL::GetData(void *userdata, Uint8 *stream, int len) { } } + mix.read(buf); + memcpy(stream, buf, len); P->last_cursor_pos += buffersize_frames; }