[MPlayer-cvslog] r38213 - trunk/libao2/ao_coreaudio.c

reimar subversion at mplayerhq.hu
Thu Dec 31 21:46:33 EET 2020


Author: reimar
Date: Thu Dec 31 21:46:32 2020
New Revision: 38213

Log:
ao_coreaudio: quick hack to make it work on modern OSX.

The APIs were renamed to be audio-specific.

Modified:
   trunk/libao2/ao_coreaudio.c

Modified: trunk/libao2/ao_coreaudio.c
==============================================================================
--- trunk/libao2/ao_coreaudio.c	Tue Dec 29 23:02:05 2020	(r38212)
+++ trunk/libao2/ao_coreaudio.c	Thu Dec 31 21:46:32 2020	(r38213)
@@ -55,6 +55,14 @@
 #include "libavutil/fifo.h"
 #include "subopt-helper.h"
 
+#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1060
+#define Component AudioComponent
+#define FindNextComponent AudioComponentFindNext
+#define ComponentDescription AudioComponentDescription
+#define OpenAComponent AudioComponentInstanceNew
+#define CloseComponent AudioComponentInstanceDispose
+#endif
+
 static const ao_info_t info =
   {
     "Darwin/Mac OS X native audio output",


More information about the MPlayer-cvslog mailing list