Commit c50dab48 authored by Brendan Shanks's avatar Brendan Shanks Committed by Alexandre Julliard

winecoreaudio: Remove workarounds for Mac OS X 10.4 and 10.5.

parent 98270813
...@@ -7453,9 +7453,6 @@ done ...@@ -7453,9 +7453,6 @@ done
for ac_header in \ for ac_header in \
AL/al.h \ AL/al.h \
ApplicationServices/ApplicationServices.h \ ApplicationServices/ApplicationServices.h \
AudioToolbox/AudioConverter.h \
AudioUnit/AudioUnit.h \
AudioUnit/AudioComponent.h \
CL/cl.h \ CL/cl.h \
Carbon/Carbon.h \ Carbon/Carbon.h \
CommonCrypto/CommonCryptor.h \ CommonCrypto/CommonCryptor.h \
...@@ -8974,31 +8971,11 @@ done ...@@ -8974,31 +8971,11 @@ done
LIBS="$ac_save_LIBS" LIBS="$ac_save_LIBS"
fi fi
if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes" if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes"
then then
if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes" COREAUDIO_LIBS="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
then
COREAUDIO_LIBS="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
else
COREAUDIO_LIBS="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
fi
enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-yes} enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-yes}
ac_save_LIBS="$LIBS"
LIBS="$LIBS $COREAUDIO_LIBS"
for ac_func in AUGraphAddNode
do :
ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_AUGRAPHADDNODE 1
_ACEOF
fi
done
LIBS="$ac_save_LIBS"
fi fi
if test "$ac_cv_header_OpenAL_al_h" = "yes" if test "$ac_cv_header_OpenAL_al_h" = "yes"
then then
......
...@@ -431,9 +431,6 @@ AC_SYS_LARGEFILE() ...@@ -431,9 +431,6 @@ AC_SYS_LARGEFILE()
AC_CHECK_HEADERS(\ AC_CHECK_HEADERS(\
AL/al.h \ AL/al.h \
ApplicationServices/ApplicationServices.h \ ApplicationServices/ApplicationServices.h \
AudioToolbox/AudioConverter.h \
AudioUnit/AudioUnit.h \
AudioUnit/AudioComponent.h \
CL/cl.h \ CL/cl.h \
Carbon/Carbon.h \ Carbon/Carbon.h \
CommonCrypto/CommonCryptor.h \ CommonCrypto/CommonCryptor.h \
...@@ -800,21 +797,10 @@ case $host_os in ...@@ -800,21 +797,10 @@ case $host_os in
AC_CHECK_FUNCS(SSLCopyPeerCertificates) AC_CHECK_FUNCS(SSLCopyPeerCertificates)
LIBS="$ac_save_LIBS" LIBS="$ac_save_LIBS"
fi fi
if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes" if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes"
then then
if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes" AC_SUBST(COREAUDIO_LIBS,"-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI")
then
AC_SUBST(COREAUDIO_LIBS,"-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI")
else
dnl CoreServices needed by AudioUnit
AC_SUBST(COREAUDIO_LIBS,"-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI")
fi
enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-yes} enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-yes}
dnl Check for the AUGraphAddNode function
ac_save_LIBS="$LIBS"
LIBS="$LIBS $COREAUDIO_LIBS"
AC_CHECK_FUNCS(AUGraphAddNode)
LIBS="$ac_save_LIBS"
fi fi
if test "$ac_cv_header_OpenAL_al_h" = "yes" if test "$ac_cv_header_OpenAL_al_h" = "yes"
then then
......
...@@ -22,9 +22,6 @@ ...@@ -22,9 +22,6 @@
#define ULONG CoreFoundation_ULONG #define ULONG CoreFoundation_ULONG
#define HRESULT CoreFoundation_HRESULT #define HRESULT CoreFoundation_HRESULT
#ifndef HAVE_AUDIOUNIT_AUDIOCOMPONENT_H
#include <CoreServices/CoreServices.h>
#endif
#include <AudioUnit/AudioUnit.h> #include <AudioUnit/AudioUnit.h>
#include <AudioToolbox/AudioToolbox.h> #include <AudioToolbox/AudioToolbox.h>
#undef ULONG #undef ULONG
...@@ -50,23 +47,6 @@ ...@@ -50,23 +47,6 @@
#include "coreaudio.h" #include "coreaudio.h"
#include "wine/debug.h" #include "wine/debug.h"
#ifndef HAVE_AUDIOUNIT_AUDIOCOMPONENT_H
/* Define new AudioComponent Manager types for compatibility's sake */
typedef ComponentDescription AudioComponentDescription;
#endif
#ifndef HAVE_AUGRAPHADDNODE
static inline OSStatus AUGraphAddNode(AUGraph graph, const AudioComponentDescription *desc, AUNode *node)
{
return AUGraphNewNode(graph, desc, 0, NULL, node);
}
static inline OSStatus AUGraphNodeInfo(AUGraph graph, AUNode node, AudioComponentDescription *desc, AudioUnit *au)
{
return AUGraphGetNodeInfo(graph, node, desc, 0, NULL, au);
}
#endif
WINE_DEFAULT_DEBUG_CHANNEL(wave); WINE_DEFAULT_DEBUG_CHANNEL(wave);
WINE_DECLARE_DEBUG_CHANNEL(midi); WINE_DECLARE_DEBUG_CHANNEL(midi);
......
...@@ -72,28 +72,6 @@ ...@@ -72,28 +72,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(coreaudio); WINE_DEFAULT_DEBUG_CHANNEL(coreaudio);
#ifndef HAVE_AUDIOUNIT_AUDIOCOMPONENT_H
/* Define new AudioComponent Manager functions for OSX 10.5 */
typedef Component AudioComponent;
typedef ComponentDescription AudioComponentDescription;
typedef ComponentInstance AudioComponentInstance;
static inline AudioComponent AudioComponentFindNext(AudioComponent ac, AudioComponentDescription *desc)
{
return FindNextComponent(ac, desc);
}
static inline OSStatus AudioComponentInstanceNew(AudioComponent ac, AudioComponentInstance *aci)
{
return OpenAComponent(ac, aci);
}
static inline OSStatus AudioComponentInstanceDispose(AudioComponentInstance aci)
{
return CloseComponent(aci);
}
#endif
#define NULL_PTR_ERR MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, RPC_X_NULL_REF_POINTER) #define NULL_PTR_ERR MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, RPC_X_NULL_REF_POINTER)
static const REFERENCE_TIME DefaultPeriod = 100000; static const REFERENCE_TIME DefaultPeriod = 100000;
......
...@@ -31,18 +31,6 @@ ...@@ -31,18 +31,6 @@
/* Define to 1 if you have the <asm/user.h> header file. */ /* Define to 1 if you have the <asm/user.h> header file. */
#undef HAVE_ASM_USER_H #undef HAVE_ASM_USER_H
/* Define to 1 if you have the <AudioToolbox/AudioConverter.h> header file. */
#undef HAVE_AUDIOTOOLBOX_AUDIOCONVERTER_H
/* Define to 1 if you have the <AudioUnit/AudioComponent.h> header file. */
#undef HAVE_AUDIOUNIT_AUDIOCOMPONENT_H
/* Define to 1 if you have the <AudioUnit/AudioUnit.h> header file. */
#undef HAVE_AUDIOUNIT_AUDIOUNIT_H
/* Define to 1 if you have the `AUGraphAddNode' function. */
#undef HAVE_AUGRAPHADDNODE
/* Define to 1 if you have the <capi20.h> header file. */ /* Define to 1 if you have the <capi20.h> header file. */
#undef HAVE_CAPI20_H #undef HAVE_CAPI20_H
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment