Commit f3aa34ba authored by Qball Cow's avatar Qball Cow

Hopefully fix endian problem mac x86/ppc

git-svn-id: https://svn.musicpd.org/mpd/trunk@4750 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent f5c7f3da
...@@ -263,8 +263,11 @@ static int osx_openDevice(AudioOutput * audioOutput) ...@@ -263,8 +263,11 @@ static int osx_openDevice(AudioOutput * audioOutput)
streamDesc.mSampleRate = audioFormat->sampleRate; streamDesc.mSampleRate = audioFormat->sampleRate;
streamDesc.mFormatID = kAudioFormatLinearPCM; streamDesc.mFormatID = kAudioFormatLinearPCM;
streamDesc.mFormatFlags = kLinearPCMFormatFlagIsSignedInteger | streamDesc.mFormatFlags = kLinearPCMFormatFlagIsSignedInteger;
kLinearPCMFormatFlagIsBigEndian; #ifdef WORDS_BIGENDIAN
streamDesc.mFormatFlags |= kLinearPCMFormatFlagIsBigEndian;
#endif
streamDesc.mBytesPerPacket = streamDesc.mBytesPerPacket =
audioFormat->channels * audioFormat->bits / 8; audioFormat->channels * audioFormat->bits / 8;
streamDesc.mFramesPerPacket = 1; streamDesc.mFramesPerPacket = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment