Fixed a couple of comments, and modified slightly the developer printing in ResampleSfx
authormolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 13 Oct 2004 13:45:16 +0000 (13:45 +0000)
committermolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 13 Oct 2004 13:45:16 +0000 (13:45 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4626 d7cf8633-e32d-0410-b094-e92efae38249

snd_mem.c
snd_mix.c

index 2ef3144..a2f4e47 100644 (file)
--- a/snd_mem.c
+++ b/snd_mem.c
@@ -38,8 +38,8 @@ size_t ResampleSfx (const qbyte *in_data, size_t in_length, const snd_format_t*
        srclength = in_length * in_format->channels;
        outcount = (double)in_length * shm->format.speed / in_format->speed;
 
-       Con_DPrintf("ResampleSfx: resampling sound \"%s\" from %dHz to %dHz (%d samples to %d samples)\n",
-                               sfxname, in_format->speed, shm->format.speed, in_length, outcount);
+       Con_DPrintf("ResampleSfx(%s): %d samples @ %dHz -> %d samples @ %dHz\n",
+                               sfxname, in_length, in_format->speed, outcount, shm->format.speed);
 
        // Trivial case (direct transfer)
        if (in_format->speed == shm->format.speed)
@@ -160,7 +160,7 @@ qboolean S_LoadSound (sfx_t *s, qboolean complain)
        if (!shm || !shm->format.speed)
                return false;
 
-       // If we wasn't able to load it previously, no need to retry
+       // If we weren't able to load it previously, no need to retry
        if (s->flags & SFXFLAG_FILEMISSING)
                return false;
 
index 4e42a96..6f92eb1 100644 (file)
--- a/snd_mix.c
+++ b/snd_mix.c
@@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
 */
-// snd_mix.c -- portable code to mix sounds for snd_dma.c
+// snd_mix.c -- portable code to mix sounds
 
 #include "quakedef.h"
 #include "snd_main.h"