Ticket #651: libao2_openal_for_darwin.patch
| File libao2_openal_for_darwin.patch, 991 bytes (added by , 20 years ago) |
|---|
-
(a) configure_orig vs. (b) configure
a b 4886 4886 echocheck "OpenAL" 4887 4887 if test "$_openal" = auto ; then 4888 4888 _openal=no 4889 if darwin ; then 4890 cat > $TMPC << EOF 4891 #include <al.h> 4892 int main(void) { 4893 alSourceQueueBuffers(0, 0, 0); 4894 // alGetSourcei(0, AL_SAMPLE_OFFSET, 0); 4895 return 0; 4896 } 4897 EOF 4898 if cc_check -framework OpenAL ; then 4899 _libs_mplayer="$_libs_mplayer -framework OpenAL" 4900 _openal=yes 4901 fi 4902 else 4889 4903 cat > $TMPC << EOF 4890 4904 #include <AL/al.h> 4891 4905 int main(void) { … … 4906 4920 else 4907 4921 _noaomodules="openal $_noaomodules" 4908 4922 fi 4923 fi 4909 4924 echores "$_openal" 4910 4925 4911 4926 echocheck "ALSA audio" -
ao_openal.
old new 10 10 #include <stdlib.h> 11 11 #include <stdio.h> 12 12 #include <inttypes.h> 13 #ifdef SYS_DARWIN 14 #include <alc.h> 15 #include <al.h> 16 #else 13 17 #include <AL/alc.h> 14 18 #include <AL/al.h> 19 #endif 15 20 16 21 #include "config.h" 17 22 #include "mp_msg.h"
