[MPlayer-cvslog] CVS: main/libao2 ao_macosx.c,1.12,1.13
Nicolas Plourde CVS
syncmail at mplayerhq.hu
Thu Mar 3 14:46:56 CET 2005
CVS change done by Nicolas Plourde CVS
Update of /cvsroot/mplayer/main/libao2
In directory mail:/var2/tmp/cvs-serv8810/libao2
Modified Files:
ao_macosx.c
Log Message:
do not always request little-endian despite the actual sound format. by Alexander Strange - astrange at ithinksw.com
Index: ao_macosx.c
===================================================================
RCS file: /cvsroot/mplayer/main/libao2/ao_macosx.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- ao_macosx.c 22 Feb 2005 20:54:31 -0000 1.12
+++ ao_macosx.c 3 Mar 2005 13:46:54 -0000 1.13
@@ -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 @@
// 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=
More information about the MPlayer-cvslog
mailing list