added delay counter data type and adjusted related functions
[rocksndiamonds.git] / src / libgame / sound.c
index 12b01c382b8f1c50cd62403b9ce65317fa9e8840..35c0a2465457b8f34e33423aa3a91213c7e0de3d 100644 (file)
@@ -166,8 +166,8 @@ static boolean Mixer_ChannelExpired(int channel)
 
   if (expire_loop_sounds &&
       IS_LOOP(mixer[channel]) && !IS_MUSIC(mixer[channel]) &&
-      DelayReached(&mixer[channel].playing_starttime,
-                  SOUND_LOOP_EXPIRATION_TIME))
+      DelayReachedExt2(&mixer[channel].playing_starttime,
+                      SOUND_LOOP_EXPIRATION_TIME, Counter()))
     return TRUE;
 
   if (!Mix_Playing(channel))