mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-07 06:46:43 +00:00
(svn r3385) -Fix: [OSX] fixed endian issue in cocoa sound driver. Now it works correctly on x86 too (hopefully)
This commit is contained in:
parent
473b3072ea
commit
c86e6e008d
@ -65,7 +65,8 @@ static const char *CocoaSoundStart(const char * const *parm)
|
|||||||
|
|
||||||
requestedDesc.mBitsPerChannel = 16;
|
requestedDesc.mBitsPerChannel = 16;
|
||||||
requestedDesc.mFormatFlags |= kLinearPCMFormatFlagIsSignedInteger;
|
requestedDesc.mFormatFlags |= kLinearPCMFormatFlagIsSignedInteger;
|
||||||
#if 1 // Big endian?
|
|
||||||
|
#ifdef TTD_BIG_ENDIAN
|
||||||
requestedDesc.mFormatFlags |= kLinearPCMFormatFlagIsBigEndian;
|
requestedDesc.mFormatFlags |= kLinearPCMFormatFlagIsBigEndian;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user