summaryrefslogtreecommitdiff
path: root/src/sound
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-06-17 19:38:00 +0000
committersmatz <smatz@openttd.org>2008-06-17 19:38:00 +0000
commit9da745b38110bc827ff6b5d5c9c3c9bf928c2335 (patch)
treeb271027ea798874acb1d7592eb84626b079887e9 /src/sound
parentdedb0033b3647d795a23118a22f227d7af33960d (diff)
downloadopenttd-9da745b38110bc827ff6b5d5c9c3c9bf928c2335.tar.xz
(svn r13552) -Codechange: use TTD_ENDIAN comparations instead of tests if TTD_[BIG/LITTLE]_ENDIAN is defined
Diffstat (limited to 'src/sound')
-rw-r--r--src/sound/cocoa_s.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sound/cocoa_s.cpp b/src/sound/cocoa_s.cpp
index 9921cb0cf..7e315fb75 100644
--- a/src/sound/cocoa_s.cpp
+++ b/src/sound/cocoa_s.cpp
@@ -24,7 +24,7 @@
#include "../debug.h"
#include "../driver.h"
#include "../mixer.h"
-#include "../core/endian_func.hpp"
+#include "../core/endian_type.hpp"
#include "cocoa_s.h"
@@ -61,9 +61,9 @@ const char *SoundDriver_Cocoa::Start(const char * const *parm)
requestedDesc.mBitsPerChannel = 16;
requestedDesc.mFormatFlags |= kLinearPCMFormatFlagIsSignedInteger;
-#ifdef TTD_BIG_ENDIAN
+#if TTD_ENDIAN == TTD_BIG_ENDIAN
requestedDesc.mFormatFlags |= kLinearPCMFormatFlagIsBigEndian;
-#endif
+#endif /* TTD_ENDIAN == TTD_BIG_ENDIAN */
requestedDesc.mFramesPerPacket = 1;
requestedDesc.mBytesPerFrame = requestedDesc.mBitsPerChannel * requestedDesc.mChannelsPerFrame / 8;