From f3aa34badbd42c9c469ebd507c8c7b286a3054e7 Mon Sep 17 00:00:00 2001 From: Qball Cow Date: Sat, 9 Sep 2006 10:01:25 +0000 Subject: Hopefully fix endian problem mac x86/ppc git-svn-id: https://svn.musicpd.org/mpd/trunk@4750 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/audioOutputs/audioOutput_osx.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/audioOutputs') 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; -- cgit v1.2.3