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
commit90d610bc6a96003e68ce869adeace4d5da50e612 (patch)
treec40c1fb5e41cbb66eaa5ddbae749ccf19f9919f0
parenteb12f1a66c3bdfed21061db18745835da3d3d805 (diff)
downloadopenttd-90d610bc6a96003e68ce869adeace4d5da50e612.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