[Scummvm-cvs-logs] CVS: scummvm sound.cpp,1.97,1.98

Max Horn fingolfin at users.sourceforge.net
Thu Jul 4 04:19:07 CEST 2002


Update of /cvsroot/scummvm/scummvm
In directory usw-pr-cvs1:/tmp/cvs-serv20748

Modified Files:
	sound.cpp 
Log Message:
endian fix for Putt-Putt sound playback

Index: sound.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound.cpp,v
retrieving revision 1.97
retrieving revision 1.98
diff -u -d -r1.97 -r1.98
--- sound.cpp	2 Jul 2002 21:28:57 -0000	1.97
+++ sound.cpp	4 Jul 2002 11:18:25 -0000	1.98
@@ -207,11 +207,11 @@
 	else if (ptr != NULL && READ_UINT32_UNALIGNED(ptr) == MKID('DIGI')) {
 		// TODO - discover what data the first chunk, HSHD, contains
 		// it might be useful here.
-		ptr += 8 + READ_UINT32_UNALIGNED(ptr+12);
+		ptr += 8 + READ_BE_UINT32_UNALIGNED(ptr+12);
 		if (READ_UINT32_UNALIGNED(ptr) != MKID('SDAT'))
 			return;	// abort
 
-		int size = READ_UINT32_UNALIGNED(ptr+4);
+		int size = READ_BE_UINT32_UNALIGNED(ptr+4);
 		int rate = 8000;	// FIXME - what value here ?!? this is just a guess for now
 		
 		// Allocate a sound buffer, copy the data into it, and play





More information about the Scummvm-git-logs mailing list