diff options
author | Jamieson Christian | 2003-08-06 20:44:42 +0000 |
---|---|---|
committer | Jamieson Christian | 2003-08-06 20:44:42 +0000 |
commit | d8464534a5e516f13cd7d096666031cb4a12fad4 (patch) | |
tree | 89fe02818577e4fab2788d270d1580a22fac8ee1 /sound/audiostream.cpp | |
parent | 99716fc38e26112777947f9fb0606a9d09668aeb (diff) | |
download | scummvm-rg350-d8464534a5e516f13cd7d096666031cb4a12fad4.tar.gz scummvm-rg350-d8464534a5e516f13cd7d096666031cb4a12fad4.tar.bz2 scummvm-rg350-d8464534a5e516f13cd7d096666031cb4a12fad4.zip |
Added comment to new macro
svn-id: r9581
Diffstat (limited to 'sound/audiostream.cpp')
-rw-r--r-- | sound/audiostream.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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)) |