]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
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 2ef31444916dbc40c20a8ac4f1c82b1ad5a71411..a2f4e4797756d3eea63db82abea7b2619da9e8c7 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 4e42a9674438432bed58fcf05ec39b9477e27010..6f92eb1348aebf82c90b1274170c911660a33cdd 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"