winecoreaudio: Remove workarounds for Mac OS X 10.4 and 10.5.
Signed-off-by: Brendan Shanks <bshanks@codeweavers.com> Signed-off-by: Andrew Eikum <aeikum@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
9827081305
commit
c50dab4828
|
@ -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
|
||||||
|
|
||||||
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
|
|
||||||
if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
|
|
||||||
then
|
then
|
||||||
COREAUDIO_LIBS="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
|
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
|
||||||
|
|
16
configure.ac
16
configure.ac
|
@ -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
|
||||||
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
|
|
||||||
if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
|
|
||||||
then
|
then
|
||||||
AC_SUBST(COREAUDIO_LIBS,"-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI")
|
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 @@
|
||||||
|
|
||||||
#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 @@
|
||||||
#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 @@
|
||||||
|
|
||||||
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 @@
|
||||||
/* 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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue