(svn r13552) -Codechange: use TTD_ENDIAN comparations instead of tests if TTD_[BIG/LITTLE]_ENDIAN is defined
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user