[Scummvm-cvs-logs] CVS: scummvm/scumm sound.cpp,1.67,1.68

Max Horn fingolfin at users.sourceforge.net
Wed Jan 1 13:04:38 CET 2003


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv9707

Modified Files:
	sound.cpp 
Log Message:
endian fix

Index: sound.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/sound.cpp,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -d -r1.67 -r1.68
--- sound.cpp	31 Dec 2002 21:56:58 -0000	1.67
+++ sound.cpp	1 Jan 2003 20:59:59 -0000	1.68
@@ -203,8 +203,8 @@
 		else if (READ_UINT32_UNALIGNED(ptr) == MKID('Mac1')) {
 	
 			// Read info from the header
-			size = READ_UINT32_UNALIGNED(ptr+0x60);
-			rate = READ_UINT32_UNALIGNED(ptr+0x64) >> 16;
+			size = READ_BE_UINT32_UNALIGNED(ptr+0x60);
+			rate = READ_BE_UINT32_UNALIGNED(ptr+0x64) >> 16;
 	
 			// Skip over the header (fixed size)
 			ptr += 0x72;





More information about the Scummvm-git-logs mailing list