]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_mix.c
put parentheses around parameters to min/max/bound macros
[xonotic/darkplaces.git] / snd_mix.c
index 3b82316698c23b615114df85493886c91baf93e9..d388a36f153c8b236ae23a186cffbd0fe1985b25 100644 (file)
--- a/snd_mix.c
+++ b/snd_mix.c
@@ -311,9 +311,6 @@ void S_TransferPaintBuffer(int endtime)
                pDSBuf->lpVtbl->Unlock(pDSBuf, pbuf, dwSize, NULL, 0);
 
                pDSBuf->lpVtbl->GetCurrentPosition(pDSBuf, &dwNewpos, &dwWrite);
-
-//             if ((dwNewpos >= il) && (dwNewpos <= ir))
-//                     Con_Printf("%d-%d p %d c\n", il, ir, dwNewpos);
        }
 #endif
 }
@@ -356,7 +353,7 @@ void S_PaintChannels(int endtime)
                                continue;
                        if (!ch->leftvol && !ch->rightvol)
                                continue;
-                       sc = S_LoadSound (ch->sfx);
+                       sc = S_LoadSound (ch->sfx, true);
                        if (!sc)
                                continue;
 
@@ -418,7 +415,6 @@ void SND_InitScaletable (void)
 
 void SND_PaintChannelFrom8 (channel_t *ch, sfxcache_t *sc, int count)
 {
-//     int     data;
        int             *lscale, *rscale;
        unsigned char *sfx;
        int             i;
@@ -458,8 +454,6 @@ void SND_PaintChannelFrom8 (channel_t *ch, sfxcache_t *sc, int count)
 
 void SND_PaintChannelFrom16 (channel_t *ch, sfxcache_t *sc, int count)
 {
-//     int data;
-//     int left, right;
        int leftvol, rightvol;
        signed short *sfx;
        int     i;