[Scummvm-cvs-logs] CVS: scummvm/sound voc.h,1.1,1.2

Max Horn fingolfin at users.sourceforge.net
Tue Sep 9 05:35:07 CEST 2003


Update of /cvsroot/scummvm/scummvm/sound
In directory sc8-pr-cvs1:/tmp/cvs-serv31137

Modified Files:
	voc.h 
Log Message:
map 0xD3 in VOC headers to 22050 Hz, too

Index: voc.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/voc.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- voc.h	7 Sep 2003 20:23:38 -0000	1.1
+++ voc.h	9 Sep 2003 12:34:13 -0000	1.2
@@ -52,11 +52,11 @@
 static inline int getSampleRateFromVOCRate(int vocSR) {
 	if (vocSR == 0xa6) {
 		return 11025;
-	} else if (vocSR == 0xd2) {
+	} else if (vocSR == 0xd2 || vocSR == 0xd3) {
 		return 22050;
 	} else {
 		int sr = 1000000L / (256L - vocSR);
-		warning("inexact sample rate used: %i", sr);
+		warning("inexact sample rate used: %i (0x%x)", sr, vocSR);
 		return sr;
 	}
 }





More information about the Scummvm-git-logs mailing list