1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-25 16:33:02 +00:00

do not always request little-endian despite the actual sound format. by Alexander Strange - astrange@ithinksw.com

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14904 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nplourde 2005-03-03 13:46:54 +00:00
parent de064ea3e7
commit 56753f0ae7

View File

@ -40,6 +40,7 @@
#include <CoreAudio/AudioHardware.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <inttypes.h>
#include <pthread.h>
@ -314,7 +315,7 @@ static int init(int rate,int channels,int format,int flags)
// unsigned int
ao->outputStreamBasicDescription.mFormatFlags=kAudioFormatFlagIsPacked;
}
if(format&AF_FORMAT_BE)
if((format&AF_FORMAT_END_MASK)==AF_FORMAT_BE)
ao->outputStreamBasicDescription.mFormatFlags|=kAudioFormatFlagIsBigEndian;
ao->outputStreamBasicDescription.mBytesPerPacket=