From 05508fd28461344ad71d3fb9a25e07be53803a05 Mon Sep 17 00:00:00 2001 From: molivier Date: Wed, 13 Oct 2004 13:45:16 +0000 Subject: [PATCH] Fixed a couple of comments, and modified slightly the developer printing in ResampleSfx git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4626 d7cf8633-e32d-0410-b094-e92efae38249 --- snd_mem.c | 6 +++--- snd_mix.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/snd_mem.c b/snd_mem.c index 2ef31444..a2f4e479 100644 --- 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; diff --git a/snd_mix.c b/snd_mix.c index 4e42a967..6f92eb13 100644 --- 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" -- 2.39.2