Hopefully fix endian problem mac x86/ppc
git-svn-id: https://svn.musicpd.org/mpd/trunk@4750 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
f5c7f3da31
commit
f3aa34badb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user