aboutsummaryrefslogtreecommitdiffstats
path: root/src/audioOutputs
diff options
context:
space:
mode:
authorQball Cow <qball@qballcow.nl>2006-09-09 10:01:25 +0000
committerQball Cow <qball@qballcow.nl>2006-09-09 10:01:25 +0000
commitf3aa34badbd42c9c469ebd507c8c7b286a3054e7 (patch)
treef4d901cfc79e72a832e9e0d061f6b291fc20e7d0 /src/audioOutputs
parentf5c7f3da31c948d70da63f593162f78db79e4833 (diff)
downloadmpd-f3aa34badbd42c9c469ebd507c8c7b286a3054e7.tar.gz
mpd-f3aa34badbd42c9c469ebd507c8c7b286a3054e7.tar.xz
mpd-f3aa34badbd42c9c469ebd507c8c7b286a3054e7.zip
Hopefully fix endian problem mac x86/ppc
git-svn-id: https://svn.musicpd.org/mpd/trunk@4750 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/audioOutputs/audioOutput_osx.c7
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;