[Scummvm-cvs-logs] CVS: scummvm/scumm sound.cpp,1.83,1.84

Jonathan Gray khalek at linuxgamers.net
Fri Feb 28 05:34:01 CET 2003


On Fri, 28 Feb 2003, Max Horn wrote:

> At 3:32 Uhr -0800 28.02.2003, Jonathan Gray wrote:
> >Update of /cvsroot/scummvm/scummvm/scumm
> >In directory sc8-pr-cvs1:/tmp/cvs-serv9784
> >
> >Modified Files:
> >	sound.cpp
> >Log Message:
> >change rate for humongous DIGI sounds to 11025
> >
> >Index: sound.cpp
> >===================================================================
> >RCS file: /cvsroot/scummvm/scummvm/scumm/sound.cpp,v
> >retrieving revision 1.83
> >retrieving revision 1.84
> >diff -u -d -r1.83 -r1.84
> >--- sound.cpp	8 Feb 2003 00:38:17 -0000	1.83
> >+++ sound.cpp	28 Feb 2003 11:32:43 -0000	1.84
> >@@ -225,7 +225,8 @@
> >  				return;	// abort
> >
> >  			size = READ_BE_UINT32_UNALIGNED(ptr+4);
> >-			rate = 8000;	// FIXME - what value here
> >?!? 8000 is just a guess
> >+			// FIXME - what value here ?!? 11025 is just
> >a guess based on strings in w32 bin, prev guess 8000
> >+			rate = 11025;
> >
> >  			// Allocate a sound buffer, copy the data
> >into it, and play
> >  			sound = (char*)malloc(size);
>
> Are you sure about this one? Did you ever consider that it might be a
> different value for different games?
>

It sounds accurate for all the humongous games I've tested when compared
to the original interpreters. Ultimately the real answer probably lies in
the header file along with stereo or mono and whether the sample is 8 or
16 bit.

As far as I know humongous games are the only ones that use DIGI and even
then it seems to only be the older games we have listed on the
compatibility page.

Jonathan

>
> Max
>





More information about the Scummvm-git-logs mailing list