shithub: choc

Download patch

ref: 4bce23ff8c40c917c5f6b3524db173611aa0f746
parent: 52efd1028c980b4f8d76b734e955c6fd9524f92b
author: Jonathan Dowland <[email protected]>
date: Fri May 22 12:35:37 EDT 2015

Use Mix_PlayChannel instead of Mix_PlayChannelTimed

For some reason Mix_PlayChannelTimed was being used, albeit with
no timer, which is equivalent to Mix_PlayChannel but confusing.

--- a/src/i_sdlsound.c
+++ b/src/i_sdlsound.c
@@ -882,7 +882,7 @@
 
     // play sound
 
-    Mix_PlayChannelTimed(channel, &snd->chunk, 0, -1);
+    Mix_PlayChannel(channel, &snd->chunk, 0);
 
     channels_playing[channel] = sfxinfo;