commit d721228ed1a9df515d51c2d57ea3f7199f86daa5
Author: Simon Howard <fraggle@soulsphere.org>
AuthorDate: Sun Feb 28 14:02:01 2016 -0500
Commit: Simon Howard <fraggle@soulsphere.org>
CommitDate: Sun Feb 28 14:02:01 2016 -0500
sound: Remove another workaround for an old SDL bug.
Now we're on SDL2 we can just assume this is fixed.
---
src/i_sdlsound.c | 26 --------------------------
1 file changed, 26 deletions(-)
diff --git a/src/i_sdlsound.c b/src/i_sdlsound.c
index 6896330d..fe183675 100644
--- a/src/i_sdlsound.c
+++ b/src/i_sdlsound.c
@@ -1126,32 +1126,6 @@ static boolean I_SDL_InitSound(boolean _use_sfx_prefix)
}
#endif
- // SDL_mixer version 1.2.8 and earlier has a bug in the Mix_SetPanning
- // function that can cause the game to lock up. If we're using an old
- // version, we need to apply a workaround. But the workaround has its
- // own drawbacks ...
-
- {
- const SDL_version *mixer_version;
- int v;
-
- mixer_version = Mix_Linked_Version();
- v = SDL_VERSIONNUM(mixer_version->major,
- mixer_version->minor,
- mixer_version->patch);
-
- if (v <= SDL_VERSIONNUM(1, 2, 8))
- {
- setpanning_workaround = true;
- fprintf(stderr, "\n"
- "ATTENTION: You are using an old version of SDL_mixer!\n"
- " This version has a bug that may cause "
- "your sound to stutter.\n"
- " Please upgrade to a newer version!\n"
- "\n");
- }
- }
-
Mix_AllocateChannels(NUM_CHANNELS);
SDL_PauseAudio(0);