From d8464534a5e516f13cd7d096666031cb4a12fad4 Mon Sep 17 00:00:00 2001 From: Jamieson Christian Date: Wed, 6 Aug 2003 20:44:42 +0000 Subject: Added comment to new macro svn-id: r9581 --- sound/audiostream.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sound/audiostream.cpp') diff --git a/sound/audiostream.cpp b/sound/audiostream.cpp index 665c5ab0b2..7acb3b303c 100644 --- a/sound/audiostream.cpp +++ b/sound/audiostream.cpp @@ -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)) -- cgit v1.2.3