[Scummvm-cvs-logs] CVS: scummvm/sound audiostream.cpp,1.33,1.34

Jamieson Christian jamieson630 at users.sourceforge.net
Wed Aug 6 13:45:09 CEST 2003


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

Modified Files:
	audiostream.cpp 
Log Message:
Added comment to new macro

Index: audiostream.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/audiostream.cpp,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- audiostream.cpp	6 Aug 2003 20:41:05 -0000	1.33
+++ audiostream.cpp	6 Aug 2003 20:44:42 -0000	1.34
@@ -26,6 +26,11 @@
 #include "common/file.h"
 #include "common/util.h"
 
+// This used to be an inline template function, but
+// buggy template function handling in MSVC6 forced
+// us to go with the macro approach. So far this is
+// the only template function that MSVC6 seemed to
+// compile incorrectly. Knock on wood.
 #define READSAMPLE(is16Bit, isUnsigned, ptr) \
 	((is16Bit ? READ_BE_UINT16(ptr) : (*ptr << 8)) ^ (isUnsigned ? 0x8000 : 0))
 





More information about the Scummvm-git-logs mailing list