diff --git a/src/sound/cocoa_s.cpp b/src/sound/cocoa_s.cpp --- 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(con 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;