diff options
Diffstat (limited to '')
-rw-r--r-- | src/audioOutputs/audioOutput_osx.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/audioOutputs/audioOutput_osx.c b/src/audioOutputs/audioOutput_osx.c index 439aefab3..92b55b635 100644 --- a/src/audioOutputs/audioOutput_osx.c +++ b/src/audioOutputs/audioOutput_osx.c @@ -263,8 +263,11 @@ static int osx_openDevice(AudioOutput * audioOutput) streamDesc.mSampleRate = audioFormat->sampleRate; streamDesc.mFormatID = kAudioFormatLinearPCM; - streamDesc.mFormatFlags = kLinearPCMFormatFlagIsSignedInteger | - kLinearPCMFormatFlagIsBigEndian; + streamDesc.mFormatFlags = kLinearPCMFormatFlagIsSignedInteger; +#ifdef WORDS_BIGENDIAN + streamDesc.mFormatFlags |= kLinearPCMFormatFlagIsBigEndian; +#endif + streamDesc.mBytesPerPacket = audioFormat->channels * audioFormat->bits / 8; streamDesc.mFramesPerPacket = 1; |