summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2006-01-07 13:21:04 +0000
committerbjarni <bjarni@openttd.org>2006-01-07 13:21:04 +0000
commitc86e6e008d427a5ef6af1c6a5a1804667b166ecf (patch)
treec40c1fb5e41cbb66eaa5ddbae749ccf19f9919f0
parent473b3072ea97b78f5863d27dcca48efb152dcb04 (diff)
downloadopenttd-c86e6e008d427a5ef6af1c6a5a1804667b166ecf.tar.xz
(svn r3385) -Fix: [OSX] fixed endian issue in cocoa sound driver. Now it works correctly on x86 too (hopefully)
-rw-r--r--sound/cocoa_s.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/cocoa_s.c b/sound/cocoa_s.c
index 833d6ce36..abc44d134 100644
--- a/sound/cocoa_s.c
+++ b/sound/cocoa_s.c
@@ -65,7 +65,8 @@ static const char *CocoaSoundStart(const char * const *parm)
requestedDesc.mBitsPerChannel = 16;
requestedDesc.mFormatFlags |= kLinearPCMFormatFlagIsSignedInteger;
-#if 1 // Big endian?
+
+#ifdef TTD_BIG_ENDIAN
requestedDesc.mFormatFlags |= kLinearPCMFormatFlagIsBigEndian;
#endif