xaudio: Use the bundled FAudio and build with msvcrt.
Based on a patch by Rémi Bernon. Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
6b45777121
commit
d8be85863f
|
@ -649,8 +649,6 @@ CUPS_LIBS
|
||||||
CUPS_CFLAGS
|
CUPS_CFLAGS
|
||||||
CAPI20_LIBS
|
CAPI20_LIBS
|
||||||
CAPI20_CFLAGS
|
CAPI20_CFLAGS
|
||||||
FAUDIO_LIBS
|
|
||||||
FAUDIO_CFLAGS
|
|
||||||
SDL2_LIBS
|
SDL2_LIBS
|
||||||
SDL2_CFLAGS
|
SDL2_CFLAGS
|
||||||
UNWIND_LIBS
|
UNWIND_LIBS
|
||||||
|
@ -858,7 +856,6 @@ with_capi
|
||||||
with_coreaudio
|
with_coreaudio
|
||||||
with_cups
|
with_cups
|
||||||
with_dbus
|
with_dbus
|
||||||
with_faudio
|
|
||||||
with_float_abi
|
with_float_abi
|
||||||
with_fontconfig
|
with_fontconfig
|
||||||
with_freetype
|
with_freetype
|
||||||
|
@ -1980,8 +1977,6 @@ UNWIND_CFLAGS
|
||||||
UNWIND_LIBS
|
UNWIND_LIBS
|
||||||
SDL2_CFLAGS
|
SDL2_CFLAGS
|
||||||
SDL2_LIBS
|
SDL2_LIBS
|
||||||
FAUDIO_CFLAGS
|
|
||||||
FAUDIO_LIBS
|
|
||||||
CAPI20_CFLAGS
|
CAPI20_CFLAGS
|
||||||
CAPI20_LIBS
|
CAPI20_LIBS
|
||||||
CUPS_CFLAGS
|
CUPS_CFLAGS
|
||||||
|
@ -2649,7 +2644,6 @@ Optional Packages:
|
||||||
--without-coreaudio do not use the CoreAudio sound support
|
--without-coreaudio do not use the CoreAudio sound support
|
||||||
--without-cups do not use CUPS
|
--without-cups do not use CUPS
|
||||||
--without-dbus do not use DBus (dynamic device support)
|
--without-dbus do not use DBus (dynamic device support)
|
||||||
--without-faudio do not use FAudio (XAudio2 support)
|
|
||||||
--with-float-abi=abi specify the ABI (soft|softfp|hard) for ARM platforms
|
--with-float-abi=abi specify the ABI (soft|softfp|hard) for ARM platforms
|
||||||
--without-fontconfig do not use fontconfig
|
--without-fontconfig do not use fontconfig
|
||||||
--without-freetype do not use the FreeType library
|
--without-freetype do not use the FreeType library
|
||||||
|
@ -2803,9 +2797,6 @@ Some influential environment variables:
|
||||||
UNWIND_LIBS Linker flags for libunwind, overriding pkg-config
|
UNWIND_LIBS Linker flags for libunwind, overriding pkg-config
|
||||||
SDL2_CFLAGS C compiler flags for sdl2, overriding pkg-config
|
SDL2_CFLAGS C compiler flags for sdl2, overriding pkg-config
|
||||||
SDL2_LIBS Linker flags for sdl2, overriding pkg-config
|
SDL2_LIBS Linker flags for sdl2, overriding pkg-config
|
||||||
FAUDIO_CFLAGS
|
|
||||||
C compiler flags for FAudio, overriding pkg-config
|
|
||||||
FAUDIO_LIBS Linker flags for FAudio, overriding pkg-config
|
|
||||||
CAPI20_CFLAGS
|
CAPI20_CFLAGS
|
||||||
C compiler flags for capi20, overriding pkg-config
|
C compiler flags for capi20, overriding pkg-config
|
||||||
CAPI20_LIBS Linker flags for capi20, overriding pkg-config
|
CAPI20_LIBS Linker flags for capi20, overriding pkg-config
|
||||||
|
@ -4038,12 +4029,6 @@ if test "${with_dbus+set}" = set; then :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Check whether --with-faudio was given.
|
|
||||||
if test "${with_faudio+set}" = set; then :
|
|
||||||
withval=$with_faudio;
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
# Check whether --with-float-abi was given.
|
# Check whether --with-float-abi was given.
|
||||||
if test "${with_float_abi+set}" = set; then :
|
if test "${with_float_abi+set}" = set; then :
|
||||||
withval=$with_float_abi;
|
withval=$with_float_abi;
|
||||||
|
@ -14679,123 +14664,6 @@ esac
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "x$with_faudio" != "xno"
|
|
||||||
then
|
|
||||||
if ${FAUDIO_CFLAGS:+false} :; then :
|
|
||||||
if ${PKG_CONFIG+:} false; then :
|
|
||||||
FAUDIO_CFLAGS=`$PKG_CONFIG --cflags FAudio 2>/dev/null`
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ${FAUDIO_LIBS:+false} :; then :
|
|
||||||
if ${PKG_CONFIG+:} false; then :
|
|
||||||
FAUDIO_LIBS=`$PKG_CONFIG --libs FAudio 2>/dev/null`
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
FAUDIO_LIBS=${FAUDIO_LIBS:-"-lFAudio"}
|
|
||||||
$as_echo "$as_me:${as_lineno-$LINENO}: FAudio cflags: $FAUDIO_CFLAGS" >&5
|
|
||||||
$as_echo "$as_me:${as_lineno-$LINENO}: FAudio libs: $FAUDIO_LIBS" >&5
|
|
||||||
ac_save_CPPFLAGS=$CPPFLAGS
|
|
||||||
CPPFLAGS="$CPPFLAGS $FAUDIO_CFLAGS"
|
|
||||||
for ac_header in FAudio.h
|
|
||||||
do :
|
|
||||||
ac_fn_c_check_header_mongrel "$LINENO" "FAudio.h" "ac_cv_header_FAudio_h" "$ac_includes_default"
|
|
||||||
if test "x$ac_cv_header_FAudio_h" = xyes; then :
|
|
||||||
cat >>confdefs.h <<_ACEOF
|
|
||||||
#define HAVE_FAUDIO_H 1
|
|
||||||
_ACEOF
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lFAudio" >&5
|
|
||||||
$as_echo_n "checking for -lFAudio... " >&6; }
|
|
||||||
if ${ac_cv_lib_soname_FAudio+:} false; then :
|
|
||||||
$as_echo_n "(cached) " >&6
|
|
||||||
else
|
|
||||||
ac_check_soname_save_LIBS=$LIBS
|
|
||||||
LIBS="-lFAudio $FAUDIO_LIBS $LIBS"
|
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
||||||
/* end confdefs.h. */
|
|
||||||
|
|
||||||
/* Override any GCC internal prototype to avoid an error.
|
|
||||||
Use char because int might match the return type of a GCC
|
|
||||||
builtin and then its argument prototype would still apply. */
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C"
|
|
||||||
#endif
|
|
||||||
char FAudioCreate ();
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
return FAudioCreate ();
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
_ACEOF
|
|
||||||
if ac_fn_c_try_link "$LINENO"; then :
|
|
||||||
case "$LIBEXT" in
|
|
||||||
dll) ac_cv_lib_soname_FAudio=`$ac_cv_path_LDD conftest.exe | grep "FAudio" | sed -e "s/dll.*/dll/"';2,$d'` ;;
|
|
||||||
dylib) ac_cv_lib_soname_FAudio=`$OTOOL -L conftest$ac_exeext | grep "libFAudio*\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libFAudio*\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
|
|
||||||
*) ac_cv_lib_soname_FAudio=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libFAudio*\\.$LIBEXT" | sed -e "s/^.*\\[\\(libFAudio*\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
|
|
||||||
if ${ac_cv_lib_soname_FAudio:+false} :; then :
|
|
||||||
ac_cv_lib_soname_FAudio=`$LDD conftest$ac_exeext | grep "libFAudio*\\.$LIBEXT" | sed -e "s/^.*\(libFAudio*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
|
|
||||||
fi ;;
|
|
||||||
esac
|
|
||||||
else
|
|
||||||
ac_cv_lib_soname_FAudio=
|
|
||||||
fi
|
|
||||||
rm -f core conftest.err conftest.$ac_objext \
|
|
||||||
conftest$ac_exeext conftest.$ac_ext
|
|
||||||
LIBS=$ac_check_soname_save_LIBS
|
|
||||||
fi
|
|
||||||
if ${ac_cv_lib_soname_FAudio:+false} :; then :
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
|
|
||||||
$as_echo "not found" >&6; }
|
|
||||||
|
|
||||||
else
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_FAudio" >&5
|
|
||||||
$as_echo "$ac_cv_lib_soname_FAudio" >&6; }
|
|
||||||
|
|
||||||
cat >>confdefs.h <<_ACEOF
|
|
||||||
#define SONAME_LIBFAUDIO "$ac_cv_lib_soname_FAudio"
|
|
||||||
_ACEOF
|
|
||||||
|
|
||||||
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
done
|
|
||||||
|
|
||||||
ac_wine_check_funcs_save_LIBS="$LIBS"
|
|
||||||
LIBS="$LIBS $FAUDIO_LIBS"
|
|
||||||
for ac_func in FAudio_CommitOperationSet \
|
|
||||||
F3DAudioInitialize8 \
|
|
||||||
FAudioLinkedVersion \
|
|
||||||
FAudioCreateReverb9WithCustomAllocatorEXT
|
|
||||||
do :
|
|
||||||
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
||||||
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
|
||||||
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
|
||||||
cat >>confdefs.h <<_ACEOF
|
|
||||||
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
||||||
_ACEOF
|
|
||||||
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
LIBS="$ac_wine_check_funcs_save_LIBS"
|
|
||||||
|
|
||||||
CPPFLAGS=$ac_save_CPPFLAGS
|
|
||||||
|
|
||||||
fi
|
|
||||||
if test "x$ac_cv_lib_soname_FAudio" = "x"; then :
|
|
||||||
case "x$with_faudio" in
|
|
||||||
x) as_fn_append wine_notices "|libFAudio ${notice_platform}development files not found, XAudio2 won't be supported." ;;
|
|
||||||
xno) ;;
|
|
||||||
*) as_fn_error $? "libFAudio ${notice_platform}development files not found, XAudio2 won't be supported.
|
|
||||||
This is an error since --with-faudio was requested." "$LINENO" 5 ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "x$with_capi" != "xno"
|
if test "x$with_capi" != "xno"
|
||||||
then
|
then
|
||||||
if ${CAPI20_CFLAGS:+false} :; then :
|
if ${CAPI20_CFLAGS:+false} :; then :
|
||||||
|
@ -15499,45 +15367,6 @@ esac
|
||||||
enable_openal32=${enable_openal32:-no}
|
enable_openal32=${enable_openal32:-no}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "x$ac_cv_lib_soname_FAudio" = "x"
|
|
||||||
then
|
|
||||||
enable_x3daudio1_0=${enable_x3daudio1_0:-no}
|
|
||||||
enable_x3daudio1_1=${enable_x3daudio1_1:-no}
|
|
||||||
enable_x3daudio1_2=${enable_x3daudio1_2:-no}
|
|
||||||
enable_x3daudio1_3=${enable_x3daudio1_3:-no}
|
|
||||||
enable_x3daudio1_4=${enable_x3daudio1_4:-no}
|
|
||||||
enable_x3daudio1_5=${enable_x3daudio1_5:-no}
|
|
||||||
enable_x3daudio1_6=${enable_x3daudio1_6:-no}
|
|
||||||
enable_x3daudio1_7=${enable_x3daudio1_7:-no}
|
|
||||||
enable_xactengine2_0=${enable_xactengine2_0:-no}
|
|
||||||
enable_xactengine2_4=${enable_xactengine2_4:-no}
|
|
||||||
enable_xactengine2_7=${enable_xactengine2_7:-no}
|
|
||||||
enable_xactengine2_9=${enable_xactengine2_9:-no}
|
|
||||||
enable_xactengine3_0=${enable_xactengine3_0:-no}
|
|
||||||
enable_xactengine3_1=${enable_xactengine3_1:-no}
|
|
||||||
enable_xactengine3_2=${enable_xactengine3_2:-no}
|
|
||||||
enable_xactengine3_3=${enable_xactengine3_3:-no}
|
|
||||||
enable_xactengine3_4=${enable_xactengine3_4:-no}
|
|
||||||
enable_xactengine3_5=${enable_xactengine3_5:-no}
|
|
||||||
enable_xactengine3_6=${enable_xactengine3_6:-no}
|
|
||||||
enable_xactengine3_7=${enable_xactengine3_7:-no}
|
|
||||||
enable_xapofx1_1=${enable_xapofx1_1:-no}
|
|
||||||
enable_xapofx1_2=${enable_xapofx1_2:-no}
|
|
||||||
enable_xapofx1_3=${enable_xapofx1_3:-no}
|
|
||||||
enable_xapofx1_4=${enable_xapofx1_4:-no}
|
|
||||||
enable_xapofx1_5=${enable_xapofx1_5:-no}
|
|
||||||
enable_xaudio2_0=${enable_xaudio2_0:-no}
|
|
||||||
enable_xaudio2_1=${enable_xaudio2_1:-no}
|
|
||||||
enable_xaudio2_2=${enable_xaudio2_2:-no}
|
|
||||||
enable_xaudio2_3=${enable_xaudio2_3:-no}
|
|
||||||
enable_xaudio2_4=${enable_xaudio2_4:-no}
|
|
||||||
enable_xaudio2_5=${enable_xaudio2_5:-no}
|
|
||||||
enable_xaudio2_6=${enable_xaudio2_6:-no}
|
|
||||||
enable_xaudio2_7=${enable_xaudio2_7:-no}
|
|
||||||
enable_xaudio2_8=${enable_xaudio2_8:-no}
|
|
||||||
enable_xaudio2_9=${enable_xaudio2_9:-no}
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "$ac_cv_header_libprocstat_h" = "yes"
|
if test "$ac_cv_header_libprocstat_h" = "yes"
|
||||||
then
|
then
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for procstat_open_sysctl in -lprocstat" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for procstat_open_sysctl in -lprocstat" >&5
|
||||||
|
@ -18838,8 +18667,6 @@ UNWIND_CFLAGS = $UNWIND_CFLAGS
|
||||||
UNWIND_LIBS = $UNWIND_LIBS
|
UNWIND_LIBS = $UNWIND_LIBS
|
||||||
SDL2_CFLAGS = $SDL2_CFLAGS
|
SDL2_CFLAGS = $SDL2_CFLAGS
|
||||||
SDL2_LIBS = $SDL2_LIBS
|
SDL2_LIBS = $SDL2_LIBS
|
||||||
FAUDIO_CFLAGS = $FAUDIO_CFLAGS
|
|
||||||
FAUDIO_LIBS = $FAUDIO_LIBS
|
|
||||||
CAPI20_CFLAGS = $CAPI20_CFLAGS
|
CAPI20_CFLAGS = $CAPI20_CFLAGS
|
||||||
CAPI20_LIBS = $CAPI20_LIBS
|
CAPI20_LIBS = $CAPI20_LIBS
|
||||||
CUPS_CFLAGS = $CUPS_CFLAGS
|
CUPS_CFLAGS = $CUPS_CFLAGS
|
||||||
|
|
55
configure.ac
55
configure.ac
|
@ -42,7 +42,6 @@ AC_ARG_WITH(coreaudio, AS_HELP_STRING([--without-coreaudio],[do not use the Core
|
||||||
[if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi])
|
[if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi])
|
||||||
AC_ARG_WITH(cups, AS_HELP_STRING([--without-cups],[do not use CUPS]))
|
AC_ARG_WITH(cups, AS_HELP_STRING([--without-cups],[do not use CUPS]))
|
||||||
AC_ARG_WITH(dbus, AS_HELP_STRING([--without-dbus],[do not use DBus (dynamic device support)]))
|
AC_ARG_WITH(dbus, AS_HELP_STRING([--without-dbus],[do not use DBus (dynamic device support)]))
|
||||||
AC_ARG_WITH(faudio, AS_HELP_STRING([--without-faudio],[do not use FAudio (XAudio2 support)]))
|
|
||||||
AC_ARG_WITH(float-abi, AS_HELP_STRING([--with-float-abi=abi],[specify the ABI (soft|softfp|hard) for ARM platforms]))
|
AC_ARG_WITH(float-abi, AS_HELP_STRING([--with-float-abi=abi],[specify the ABI (soft|softfp|hard) for ARM platforms]))
|
||||||
AC_ARG_WITH(fontconfig,AS_HELP_STRING([--without-fontconfig],[do not use fontconfig]))
|
AC_ARG_WITH(fontconfig,AS_HELP_STRING([--without-fontconfig],[do not use fontconfig]))
|
||||||
AC_ARG_WITH(freetype, AS_HELP_STRING([--without-freetype],[do not use the FreeType library]))
|
AC_ARG_WITH(freetype, AS_HELP_STRING([--without-freetype],[do not use the FreeType library]))
|
||||||
|
@ -1610,21 +1609,6 @@ fi
|
||||||
WINE_NOTICE_WITH(sdl,[test "x$ac_cv_lib_soname_SDL2" = "x"],
|
WINE_NOTICE_WITH(sdl,[test "x$ac_cv_lib_soname_SDL2" = "x"],
|
||||||
[libSDL2 ${notice_platform}development files not found, SDL2 won't be supported.])
|
[libSDL2 ${notice_platform}development files not found, SDL2 won't be supported.])
|
||||||
|
|
||||||
dnl **** Check for FAudio ****
|
|
||||||
if test "x$with_faudio" != "xno"
|
|
||||||
then
|
|
||||||
WINE_PACKAGE_FLAGS(FAUDIO,[FAudio],[-lFAudio],,,
|
|
||||||
[AC_CHECK_HEADERS([FAudio.h],
|
|
||||||
[WINE_CHECK_SONAME(FAudio,FAudioCreate,,,[$FAUDIO_LIBS],[[libFAudio*]])])
|
|
||||||
WINE_CHECK_LIB_FUNCS([FAudio_CommitOperationSet \
|
|
||||||
F3DAudioInitialize8 \
|
|
||||||
FAudioLinkedVersion \
|
|
||||||
FAudioCreateReverb9WithCustomAllocatorEXT], [$FAUDIO_LIBS])
|
|
||||||
])
|
|
||||||
fi
|
|
||||||
WINE_NOTICE_WITH(faudio,[test "x$ac_cv_lib_soname_FAudio" = "x"],
|
|
||||||
[libFAudio ${notice_platform}development files not found, XAudio2 won't be supported.])
|
|
||||||
|
|
||||||
dnl **** Check for capi4linux ****
|
dnl **** Check for capi4linux ****
|
||||||
if test "x$with_capi" != "xno"
|
if test "x$with_capi" != "xno"
|
||||||
then
|
then
|
||||||
|
@ -1733,45 +1717,6 @@ WINE_NOTICE_WITH(openal,[test "x$ac_cv_lib_openal" != xyes],
|
||||||
[libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.],
|
[libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.],
|
||||||
[enable_openal32])
|
[enable_openal32])
|
||||||
|
|
||||||
if test "x$ac_cv_lib_soname_FAudio" = "x"
|
|
||||||
then
|
|
||||||
enable_x3daudio1_0=${enable_x3daudio1_0:-no}
|
|
||||||
enable_x3daudio1_1=${enable_x3daudio1_1:-no}
|
|
||||||
enable_x3daudio1_2=${enable_x3daudio1_2:-no}
|
|
||||||
enable_x3daudio1_3=${enable_x3daudio1_3:-no}
|
|
||||||
enable_x3daudio1_4=${enable_x3daudio1_4:-no}
|
|
||||||
enable_x3daudio1_5=${enable_x3daudio1_5:-no}
|
|
||||||
enable_x3daudio1_6=${enable_x3daudio1_6:-no}
|
|
||||||
enable_x3daudio1_7=${enable_x3daudio1_7:-no}
|
|
||||||
enable_xactengine2_0=${enable_xactengine2_0:-no}
|
|
||||||
enable_xactengine2_4=${enable_xactengine2_4:-no}
|
|
||||||
enable_xactengine2_7=${enable_xactengine2_7:-no}
|
|
||||||
enable_xactengine2_9=${enable_xactengine2_9:-no}
|
|
||||||
enable_xactengine3_0=${enable_xactengine3_0:-no}
|
|
||||||
enable_xactengine3_1=${enable_xactengine3_1:-no}
|
|
||||||
enable_xactengine3_2=${enable_xactengine3_2:-no}
|
|
||||||
enable_xactengine3_3=${enable_xactengine3_3:-no}
|
|
||||||
enable_xactengine3_4=${enable_xactengine3_4:-no}
|
|
||||||
enable_xactengine3_5=${enable_xactengine3_5:-no}
|
|
||||||
enable_xactengine3_6=${enable_xactengine3_6:-no}
|
|
||||||
enable_xactengine3_7=${enable_xactengine3_7:-no}
|
|
||||||
enable_xapofx1_1=${enable_xapofx1_1:-no}
|
|
||||||
enable_xapofx1_2=${enable_xapofx1_2:-no}
|
|
||||||
enable_xapofx1_3=${enable_xapofx1_3:-no}
|
|
||||||
enable_xapofx1_4=${enable_xapofx1_4:-no}
|
|
||||||
enable_xapofx1_5=${enable_xapofx1_5:-no}
|
|
||||||
enable_xaudio2_0=${enable_xaudio2_0:-no}
|
|
||||||
enable_xaudio2_1=${enable_xaudio2_1:-no}
|
|
||||||
enable_xaudio2_2=${enable_xaudio2_2:-no}
|
|
||||||
enable_xaudio2_3=${enable_xaudio2_3:-no}
|
|
||||||
enable_xaudio2_4=${enable_xaudio2_4:-no}
|
|
||||||
enable_xaudio2_5=${enable_xaudio2_5:-no}
|
|
||||||
enable_xaudio2_6=${enable_xaudio2_6:-no}
|
|
||||||
enable_xaudio2_7=${enable_xaudio2_7:-no}
|
|
||||||
enable_xaudio2_8=${enable_xaudio2_8:-no}
|
|
||||||
enable_xaudio2_9=${enable_xaudio2_9:-no}
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl **** Check for libprocstat ****
|
dnl **** Check for libprocstat ****
|
||||||
if test "$ac_cv_header_libprocstat_h" = "yes"
|
if test "$ac_cv_header_libprocstat_h" = "yes"
|
||||||
then
|
then
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
EXTRADEFS = -DX3DAUDIO1_VER=0 -DXAUDIO2_VER=0
|
EXTRADEFS = -DX3DAUDIO1_VER=0 -DXAUDIO2_VER=0
|
||||||
MODULE = x3daudio1_0.dll
|
MODULE = x3daudio1_0.dll
|
||||||
PARENTSRC = ../xaudio2_7
|
PARENTSRC = ../xaudio2_7
|
||||||
EXTRALIBS = $(FAUDIO_LIBS)
|
IMPORTS = $(FAUDIO_PE_LIBS)
|
||||||
EXTRAINCL = $(FAUDIO_CFLAGS)
|
EXTRAINCL = $(FAUDIO_PE_CFLAGS)
|
||||||
|
|
||||||
EXTRADLLFLAGS = -mcygwin
|
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
x3daudio.c
|
x3daudio.c
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
EXTRADEFS = -DX3DAUDIO1_VER=1 -DXAUDIO2_VER=1
|
EXTRADEFS = -DX3DAUDIO1_VER=1 -DXAUDIO2_VER=1
|
||||||
MODULE = x3daudio1_1.dll
|
MODULE = x3daudio1_1.dll
|
||||||
PARENTSRC = ../xaudio2_7
|
PARENTSRC = ../xaudio2_7
|
||||||
EXTRALIBS = $(FAUDIO_LIBS)
|
IMPORTS = $(FAUDIO_PE_LIBS)
|
||||||
EXTRAINCL = $(FAUDIO_CFLAGS)
|
EXTRAINCL = $(FAUDIO_PE_CFLAGS)
|
||||||
|
|
||||||
EXTRADLLFLAGS = -mcygwin
|
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
x3daudio.c
|
x3daudio.c
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
EXTRADEFS = -DX3DAUDIO1_VER=2 -DXAUDIO2_VER=2
|
EXTRADEFS = -DX3DAUDIO1_VER=2 -DXAUDIO2_VER=2
|
||||||
MODULE = x3daudio1_2.dll
|
MODULE = x3daudio1_2.dll
|
||||||
PARENTSRC = ../xaudio2_7
|
PARENTSRC = ../xaudio2_7
|
||||||
EXTRALIBS = $(FAUDIO_LIBS)
|
IMPORTS = $(FAUDIO_PE_LIBS)
|
||||||
EXTRAINCL = $(FAUDIO_CFLAGS)
|
EXTRAINCL = $(FAUDIO_PE_CFLAGS)
|
||||||
|
|
||||||
EXTRADLLFLAGS = -mcygwin
|
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
x3daudio.c
|
x3daudio.c
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
EXTRADEFS = -DX3DAUDIO1_VER=3 -DXAUDIO2_VER=3
|
EXTRADEFS = -DX3DAUDIO1_VER=3 -DXAUDIO2_VER=3
|
||||||
MODULE = x3daudio1_3.dll
|
MODULE = x3daudio1_3.dll
|
||||||
PARENTSRC = ../xaudio2_7
|
PARENTSRC = ../xaudio2_7
|
||||||
EXTRALIBS = $(FAUDIO_LIBS)
|
IMPORTS = $(FAUDIO_PE_LIBS)
|
||||||
EXTRAINCL = $(FAUDIO_CFLAGS)
|
EXTRAINCL = $(FAUDIO_PE_CFLAGS)
|
||||||
|
|
||||||
EXTRADLLFLAGS = -mcygwin
|
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
x3daudio.c
|
x3daudio.c
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
EXTRADEFS = -DX3DAUDIO1_VER=4 -DXAUDIO2_VER=4
|
EXTRADEFS = -DX3DAUDIO1_VER=4 -DXAUDIO2_VER=4
|
||||||
MODULE = x3daudio1_4.dll
|
MODULE = x3daudio1_4.dll
|
||||||
PARENTSRC = ../xaudio2_7
|
PARENTSRC = ../xaudio2_7
|
||||||
EXTRALIBS = $(FAUDIO_LIBS)
|
IMPORTS = $(FAUDIO_PE_LIBS)
|
||||||
EXTRAINCL = $(FAUDIO_CFLAGS)
|
EXTRAINCL = $(FAUDIO_PE_CFLAGS)
|
||||||
|
|
||||||
EXTRADLLFLAGS = -mcygwin
|
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
x3daudio.c
|
x3daudio.c
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
EXTRADEFS = -DX3DAUDIO1_VER=5 -DXAUDIO2_VER=5
|
EXTRADEFS = -DX3DAUDIO1_VER=5 -DXAUDIO2_VER=5
|
||||||
MODULE = x3daudio1_5.dll
|
MODULE = x3daudio1_5.dll
|
||||||
PARENTSRC = ../xaudio2_7
|
PARENTSRC = ../xaudio2_7
|
||||||
EXTRALIBS = $(FAUDIO_LIBS)
|
IMPORTS = $(FAUDIO_PE_LIBS)
|
||||||
EXTRAINCL = $(FAUDIO_CFLAGS)
|
EXTRAINCL = $(FAUDIO_PE_CFLAGS)
|
||||||
|
|
||||||
EXTRADLLFLAGS = -mcygwin
|
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
x3daudio.c
|
x3daudio.c
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
EXTRADEFS = -DX3DAUDIO1_VER=6 -DXAUDIO2_VER=6
|
EXTRADEFS = -DX3DAUDIO1_VER=6 -DXAUDIO2_VER=6
|
||||||
MODULE = x3daudio1_6.dll
|
MODULE = x3daudio1_6.dll
|
||||||
PARENTSRC = ../xaudio2_7
|
PARENTSRC = ../xaudio2_7
|
||||||
EXTRALIBS = $(FAUDIO_LIBS)
|
IMPORTS = $(FAUDIO_PE_LIBS)
|
||||||
EXTRAINCL = $(FAUDIO_CFLAGS)
|
EXTRAINCL = $(FAUDIO_PE_CFLAGS)
|
||||||
|
|
||||||
EXTRADLLFLAGS = -mcygwin
|
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
x3daudio.c
|
x3daudio.c
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
EXTRADEFS = -DX3DAUDIO1_VER=7 -DXAUDIO2_VER=7
|
EXTRADEFS = -DX3DAUDIO1_VER=7 -DXAUDIO2_VER=7
|
||||||
MODULE = x3daudio1_7.dll
|
MODULE = x3daudio1_7.dll
|
||||||
PARENTSRC = ../xaudio2_7
|
PARENTSRC = ../xaudio2_7
|
||||||
EXTRALIBS = $(FAUDIO_LIBS)
|
IMPORTS = $(FAUDIO_PE_LIBS)
|
||||||
EXTRAINCL = $(FAUDIO_CFLAGS)
|
EXTRAINCL = $(FAUDIO_PE_CFLAGS)
|
||||||
|
|
||||||
EXTRADLLFLAGS = -mcygwin
|
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
x3daudio.c
|
x3daudio.c
|
||||||
|
|
|
@ -1,11 +1,8 @@
|
||||||
MODULE = xactengine2_0.dll
|
MODULE = xactengine2_0.dll
|
||||||
IMPORTS = ole32 uuid
|
IMPORTS = $(FAUDIO_PE_LIBS) ole32 uuid
|
||||||
|
EXTRAINCL = $(FAUDIO_PE_CFLAGS)
|
||||||
EXTRADEFS = -DXACT3_VER=0x0200
|
EXTRADEFS = -DXACT3_VER=0x0200
|
||||||
PARENTSRC = ../xactengine3_7
|
PARENTSRC = ../xactengine3_7
|
||||||
EXTRALIBS = $(FAUDIO_LIBS)
|
|
||||||
EXTRAINCL = $(FAUDIO_CFLAGS)
|
|
||||||
|
|
||||||
EXTRADLLFLAGS = -mcygwin
|
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
xact_dll.c
|
xact_dll.c
|
||||||
|
|
|
@ -1,11 +1,8 @@
|
||||||
MODULE = xactengine2_4.dll
|
MODULE = xactengine2_4.dll
|
||||||
IMPORTS = ole32 uuid
|
IMPORTS = $(FAUDIO_PE_LIBS) ole32 uuid
|
||||||
|
EXTRAINCL = $(FAUDIO_PE_CFLAGS)
|
||||||
EXTRADEFS = -DXACT3_VER=0x0204
|
EXTRADEFS = -DXACT3_VER=0x0204
|
||||||
PARENTSRC = ../xactengine3_7
|
PARENTSRC = ../xactengine3_7
|
||||||
EXTRALIBS = $(FAUDIO_LIBS)
|
|
||||||
EXTRAINCL = $(FAUDIO_CFLAGS)
|
|
||||||
|
|
||||||
EXTRADLLFLAGS = -mcygwin
|
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
xact_dll.c
|
xact_dll.c
|
||||||
|
|
|
@ -1,11 +1,8 @@
|
||||||
MODULE = xactengine2_7.dll
|
MODULE = xactengine2_7.dll
|
||||||
IMPORTS = ole32 uuid
|
IMPORTS = $(FAUDIO_PE_LIBS) ole32 uuid
|
||||||
|
EXTRAINCL = $(FAUDIO_PE_CFLAGS)
|
||||||
EXTRADEFS = -DXACT3_VER=0x0207
|
EXTRADEFS = -DXACT3_VER=0x0207
|
||||||
PARENTSRC = ../xactengine3_7
|
PARENTSRC = ../xactengine3_7
|
||||||
EXTRALIBS = $(FAUDIO_LIBS)
|
|
||||||
EXTRAINCL = $(FAUDIO_CFLAGS)
|
|
||||||
|
|
||||||
EXTRADLLFLAGS = -mcygwin
|
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
xact_dll.c
|
xact_dll.c
|
||||||
|
|
|
@ -1,11 +1,8 @@
|
||||||
MODULE = xactengine2_9.dll
|
MODULE = xactengine2_9.dll
|
||||||
IMPORTS = ole32 uuid
|
IMPORTS = $(FAUDIO_PE_LIBS) ole32 uuid
|
||||||
|
EXTRAINCL = $(FAUDIO_PE_CFLAGS)
|
||||||
EXTRADEFS = -DXACT3_VER=0x0209
|
EXTRADEFS = -DXACT3_VER=0x0209
|
||||||
PARENTSRC = ../xactengine3_7
|
PARENTSRC = ../xactengine3_7
|
||||||
EXTRALIBS = $(FAUDIO_LIBS)
|
|
||||||
EXTRAINCL = $(FAUDIO_CFLAGS)
|
|
||||||
|
|
||||||
EXTRADLLFLAGS = -mcygwin
|
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
xact_dll.c
|
xact_dll.c
|
||||||
|
|
|
@ -1,11 +1,8 @@
|
||||||
MODULE = xactengine3_0.dll
|
MODULE = xactengine3_0.dll
|
||||||
IMPORTS = ole32 uuid
|
IMPORTS = $(FAUDIO_PE_LIBS) ole32 uuid
|
||||||
|
EXTRAINCL = $(FAUDIO_PE_CFLAGS)
|
||||||
EXTRADEFS = -DXACT3_VER=0x0300
|
EXTRADEFS = -DXACT3_VER=0x0300
|
||||||
PARENTSRC = ../xactengine3_7
|
PARENTSRC = ../xactengine3_7
|
||||||
EXTRALIBS = $(FAUDIO_LIBS)
|
|
||||||
EXTRAINCL = $(FAUDIO_CFLAGS)
|
|
||||||
|
|
||||||
EXTRADLLFLAGS = -mcygwin
|
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
xact_dll.c
|
xact_dll.c
|
||||||
|
|
|
@ -1,11 +1,8 @@
|
||||||
MODULE = xactengine3_1.dll
|
MODULE = xactengine3_1.dll
|
||||||
IMPORTS = ole32 uuid
|
IMPORTS = $(FAUDIO_PE_LIBS) ole32 uuid
|
||||||
|
EXTRAINCL = $(FAUDIO_PE_CFLAGS)
|
||||||
EXTRADEFS = -DXACT3_VER=0x0301
|
EXTRADEFS = -DXACT3_VER=0x0301
|
||||||
PARENTSRC = ../xactengine3_7
|
PARENTSRC = ../xactengine3_7
|
||||||
EXTRALIBS = $(FAUDIO_LIBS)
|
|
||||||
EXTRAINCL = $(FAUDIO_CFLAGS)
|
|
||||||
|
|
||||||
EXTRADLLFLAGS = -mcygwin
|
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
xact_dll.c
|
xact_dll.c
|
||||||
|
|
|
@ -1,11 +1,8 @@
|
||||||
MODULE = xactengine3_2.dll
|
MODULE = xactengine3_2.dll
|
||||||
IMPORTS = ole32 uuid
|
IMPORTS = $(FAUDIO_PE_LIBS) ole32 uuid
|
||||||
|
EXTRAINCL = $(FAUDIO_PE_CFLAGS)
|
||||||
EXTRADEFS = -DXACT3_VER=0x0302
|
EXTRADEFS = -DXACT3_VER=0x0302
|
||||||
PARENTSRC = ../xactengine3_7
|
PARENTSRC = ../xactengine3_7
|
||||||
EXTRALIBS = $(FAUDIO_LIBS)
|
|
||||||
EXTRAINCL = $(FAUDIO_CFLAGS)
|
|
||||||
|
|
||||||
EXTRADLLFLAGS = -mcygwin
|
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
xact_dll.c
|
xact_dll.c
|
||||||
|
|
|
@ -1,11 +1,8 @@
|
||||||
MODULE = xactengine3_3.dll
|
MODULE = xactengine3_3.dll
|
||||||
IMPORTS = ole32 uuid
|
IMPORTS = $(FAUDIO_PE_LIBS) ole32 uuid
|
||||||
|
EXTRAINCL = $(FAUDIO_PE_CFLAGS)
|
||||||
EXTRADEFS = -DXACT3_VER=0x0303
|
EXTRADEFS = -DXACT3_VER=0x0303
|
||||||
PARENTSRC = ../xactengine3_7
|
PARENTSRC = ../xactengine3_7
|
||||||
EXTRALIBS = $(FAUDIO_LIBS)
|
|
||||||
EXTRAINCL = $(FAUDIO_CFLAGS)
|
|
||||||
|
|
||||||
EXTRADLLFLAGS = -mcygwin
|
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
xact_dll.c
|
xact_dll.c
|
||||||
|
|
|
@ -1,11 +1,8 @@
|
||||||
MODULE = xactengine3_4.dll
|
MODULE = xactengine3_4.dll
|
||||||
IMPORTS = ole32 uuid
|
IMPORTS = $(FAUDIO_PE_LIBS) ole32 uuid
|
||||||
|
EXTRAINCL = $(FAUDIO_PE_CFLAGS)
|
||||||
EXTRADEFS = -DXACT3_VER=0x0304
|
EXTRADEFS = -DXACT3_VER=0x0304
|
||||||
PARENTSRC = ../xactengine3_7
|
PARENTSRC = ../xactengine3_7
|
||||||
EXTRALIBS = $(FAUDIO_LIBS)
|
|
||||||
EXTRAINCL = $(FAUDIO_CFLAGS)
|
|
||||||
|
|
||||||
EXTRADLLFLAGS = -mcygwin
|
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
xact_dll.c
|
xact_dll.c
|
||||||
|
|
|
@ -1,11 +1,8 @@
|
||||||
MODULE = xactengine3_5.dll
|
MODULE = xactengine3_5.dll
|
||||||
IMPORTS = ole32 uuid
|
IMPORTS = $(FAUDIO_PE_LIBS) ole32 uuid
|
||||||
|
EXTRAINCL = $(FAUDIO_PE_CFLAGS)
|
||||||
EXTRADEFS = -DXACT3_VER=0x0305
|
EXTRADEFS = -DXACT3_VER=0x0305
|
||||||
PARENTSRC = ../xactengine3_7
|
PARENTSRC = ../xactengine3_7
|
||||||
EXTRALIBS = $(FAUDIO_LIBS)
|
|
||||||
EXTRAINCL = $(FAUDIO_CFLAGS)
|
|
||||||
|
|
||||||
EXTRADLLFLAGS = -mcygwin
|
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
xact_dll.c
|
xact_dll.c
|
||||||
|
|
|
@ -1,11 +1,8 @@
|
||||||
MODULE = xactengine3_6.dll
|
MODULE = xactengine3_6.dll
|
||||||
IMPORTS = ole32 uuid
|
IMPORTS = $(FAUDIO_PE_LIBS) ole32 uuid
|
||||||
|
EXTRAINCL = $(FAUDIO_PE_CFLAGS)
|
||||||
EXTRADEFS = -DXACT3_VER=0x0306
|
EXTRADEFS = -DXACT3_VER=0x0306
|
||||||
PARENTSRC = ../xactengine3_7
|
PARENTSRC = ../xactengine3_7
|
||||||
EXTRALIBS = $(FAUDIO_LIBS)
|
|
||||||
EXTRAINCL = $(FAUDIO_CFLAGS)
|
|
||||||
|
|
||||||
EXTRADLLFLAGS = -mcygwin
|
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
xact_dll.c
|
xact_dll.c
|
||||||
|
|
|
@ -1,10 +1,7 @@
|
||||||
MODULE = xactengine3_7.dll
|
MODULE = xactengine3_7.dll
|
||||||
IMPORTS = ole32 uuid
|
IMPORTS = $(FAUDIO_PE_LIBS) ole32 uuid
|
||||||
|
EXTRAINCL = $(FAUDIO_PE_CFLAGS)
|
||||||
EXTRADEFS = -DXACT3_VER=0x0307
|
EXTRADEFS = -DXACT3_VER=0x0307
|
||||||
EXTRALIBS = $(FAUDIO_LIBS)
|
|
||||||
EXTRAINCL = $(FAUDIO_CFLAGS)
|
|
||||||
|
|
||||||
EXTRADLLFLAGS = -mcygwin
|
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
xact_dll.c
|
xact_dll.c
|
||||||
|
|
|
@ -16,21 +16,23 @@
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <FACT.h>
|
#include <FACT.h>
|
||||||
|
|
||||||
#define NONAMELESSUNION
|
#define NONAMELESSUNION
|
||||||
#define COBJMACROS
|
#define COBJMACROS
|
||||||
|
#include "objbase.h"
|
||||||
|
|
||||||
#include "initguid.h"
|
|
||||||
#if XACT3_VER < 0x0300
|
#if XACT3_VER < 0x0300
|
||||||
|
#include "xact2wb.h"
|
||||||
|
#include "initguid.h"
|
||||||
#include "xact.h"
|
#include "xact.h"
|
||||||
#else
|
#else
|
||||||
|
#include "xact3wb.h"
|
||||||
|
#include "xaudio2.h"
|
||||||
|
#include "initguid.h"
|
||||||
#include "xact3.h"
|
#include "xact3.h"
|
||||||
#endif
|
#endif
|
||||||
#include "rpcproxy.h"
|
|
||||||
#include "wine/debug.h"
|
#include "wine/debug.h"
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(xact3);
|
WINE_DEFAULT_DEBUG_CHANNEL(xact3);
|
||||||
|
@ -1464,11 +1466,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD reason, void *pReserved)
|
||||||
{
|
{
|
||||||
case DLL_PROCESS_ATTACH:
|
case DLL_PROCESS_ATTACH:
|
||||||
DisableThreadLibraryCalls( hinstDLL );
|
DisableThreadLibraryCalls( hinstDLL );
|
||||||
|
|
||||||
#ifdef HAVE_FAUDIOLINKEDVERSION
|
|
||||||
TRACE("Using FAudio version %d\n", FAudioLinkedVersion() );
|
TRACE("Using FAudio version %d\n", FAudioLinkedVersion() );
|
||||||
#endif
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
|
@ -1,11 +1,8 @@
|
||||||
EXTRADEFS = -DXAPOFX1_VER=1 -DXAUDIO2_VER=2
|
EXTRADEFS = -DXAPOFX1_VER=1 -DXAUDIO2_VER=2
|
||||||
MODULE = xapofx1_1.dll
|
MODULE = xapofx1_1.dll
|
||||||
IMPORTS = ole32
|
IMPORTS = $(FAUDIO_PE_LIBS) ole32
|
||||||
|
EXTRAINCL = $(FAUDIO_PE_CFLAGS)
|
||||||
PARENTSRC = ../xaudio2_7
|
PARENTSRC = ../xaudio2_7
|
||||||
EXTRALIBS = $(FAUDIO_LIBS)
|
|
||||||
EXTRAINCL = $(FAUDIO_CFLAGS)
|
|
||||||
|
|
||||||
EXTRADLLFLAGS = -mcygwin
|
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
xapo.c \
|
xapo.c \
|
||||||
|
|
|
@ -1,11 +1,8 @@
|
||||||
EXTRADEFS = -DXAPOFX1_VER=2 -DXAUDIO2_VER=3
|
EXTRADEFS = -DXAPOFX1_VER=2 -DXAUDIO2_VER=3
|
||||||
MODULE = xapofx1_2.dll
|
MODULE = xapofx1_2.dll
|
||||||
IMPORTS = ole32
|
IMPORTS = $(FAUDIO_PE_LIBS) ole32
|
||||||
|
EXTRAINCL = $(FAUDIO_PE_CFLAGS)
|
||||||
PARENTSRC = ../xaudio2_7
|
PARENTSRC = ../xaudio2_7
|
||||||
EXTRALIBS = $(FAUDIO_LIBS)
|
|
||||||
EXTRAINCL = $(FAUDIO_CFLAGS)
|
|
||||||
|
|
||||||
EXTRADLLFLAGS = -mcygwin
|
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
xapo.c \
|
xapo.c \
|
||||||
|
|
|
@ -1,11 +1,8 @@
|
||||||
EXTRADEFS = -DXAPOFX1_VER=3 -DXAUDIO2_VER=4
|
EXTRADEFS = -DXAPOFX1_VER=3 -DXAUDIO2_VER=4
|
||||||
MODULE = xapofx1_3.dll
|
MODULE = xapofx1_3.dll
|
||||||
IMPORTS = ole32
|
IMPORTS = $(FAUDIO_PE_LIBS) ole32
|
||||||
|
EXTRAINCL = $(FAUDIO_PE_CFLAGS)
|
||||||
PARENTSRC = ../xaudio2_7
|
PARENTSRC = ../xaudio2_7
|
||||||
EXTRALIBS = $(FAUDIO_LIBS)
|
|
||||||
EXTRAINCL = $(FAUDIO_CFLAGS)
|
|
||||||
|
|
||||||
EXTRADLLFLAGS = -mcygwin
|
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
xapo.c \
|
xapo.c \
|
||||||
|
|
|
@ -1,11 +1,8 @@
|
||||||
EXTRADEFS = -DXAPOFX1_VER=4 -DXAUDIO2_VER=6
|
EXTRADEFS = -DXAPOFX1_VER=4 -DXAUDIO2_VER=6
|
||||||
MODULE = xapofx1_4.dll
|
MODULE = xapofx1_4.dll
|
||||||
IMPORTS = ole32
|
IMPORTS = $(FAUDIO_PE_LIBS) ole32
|
||||||
|
EXTRAINCL = $(FAUDIO_PE_CFLAGS)
|
||||||
PARENTSRC = ../xaudio2_7
|
PARENTSRC = ../xaudio2_7
|
||||||
EXTRALIBS = $(FAUDIO_LIBS)
|
|
||||||
EXTRAINCL = $(FAUDIO_CFLAGS)
|
|
||||||
|
|
||||||
EXTRADLLFLAGS = -mcygwin
|
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
xapo.c \
|
xapo.c \
|
||||||
|
|
|
@ -1,11 +1,8 @@
|
||||||
EXTRADEFS = -DXAPOFX1_VER=5 -DXAUDIO2_VER=7
|
EXTRADEFS = -DXAPOFX1_VER=5 -DXAUDIO2_VER=7
|
||||||
MODULE = xapofx1_5.dll
|
MODULE = xapofx1_5.dll
|
||||||
IMPORTS = ole32
|
IMPORTS = $(FAUDIO_PE_LIBS) ole32
|
||||||
|
EXTRAINCL = $(FAUDIO_PE_CFLAGS)
|
||||||
PARENTSRC = ../xaudio2_7
|
PARENTSRC = ../xaudio2_7
|
||||||
EXTRALIBS = $(FAUDIO_LIBS)
|
|
||||||
EXTRAINCL = $(FAUDIO_CFLAGS)
|
|
||||||
|
|
||||||
EXTRADLLFLAGS = -mcygwin
|
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
xapo.c \
|
xapo.c \
|
||||||
|
|
|
@ -1,11 +1,8 @@
|
||||||
EXTRADEFS = -DXAUDIO2_VER=0
|
EXTRADEFS = -DXAUDIO2_VER=0
|
||||||
MODULE = xaudio2_0.dll
|
MODULE = xaudio2_0.dll
|
||||||
IMPORTS = advapi32 ole32 user32 uuid
|
IMPORTS = $(FAUDIO_PE_LIBS) advapi32 ole32 user32 uuid
|
||||||
|
EXTRAINCL = $(FAUDIO_PE_CFLAGS)
|
||||||
PARENTSRC = ../xaudio2_7
|
PARENTSRC = ../xaudio2_7
|
||||||
EXTRALIBS = $(FAUDIO_LIBS)
|
|
||||||
EXTRAINCL = $(FAUDIO_CFLAGS)
|
|
||||||
|
|
||||||
EXTRADLLFLAGS = -mcygwin
|
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
compat.c \
|
compat.c \
|
||||||
|
|
|
@ -1,11 +1,8 @@
|
||||||
EXTRADEFS = -DXAUDIO2_VER=1
|
EXTRADEFS = -DXAUDIO2_VER=1
|
||||||
MODULE = xaudio2_1.dll
|
MODULE = xaudio2_1.dll
|
||||||
IMPORTS = advapi32 ole32 user32 uuid
|
IMPORTS = $(FAUDIO_PE_LIBS) advapi32 ole32 user32 uuid
|
||||||
|
EXTRAINCL = $(FAUDIO_PE_CFLAGS)
|
||||||
PARENTSRC = ../xaudio2_7
|
PARENTSRC = ../xaudio2_7
|
||||||
EXTRALIBS = $(FAUDIO_LIBS)
|
|
||||||
EXTRAINCL = $(FAUDIO_CFLAGS)
|
|
||||||
|
|
||||||
EXTRADLLFLAGS = -mcygwin
|
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
compat.c \
|
compat.c \
|
||||||
|
|
|
@ -1,11 +1,8 @@
|
||||||
EXTRADEFS = -DXAUDIO2_VER=2
|
EXTRADEFS = -DXAUDIO2_VER=2
|
||||||
MODULE = xaudio2_2.dll
|
MODULE = xaudio2_2.dll
|
||||||
IMPORTS = advapi32 ole32 user32 uuid
|
IMPORTS = $(FAUDIO_PE_LIBS) advapi32 ole32 user32 uuid
|
||||||
|
EXTRAINCL = $(FAUDIO_PE_CFLAGS)
|
||||||
PARENTSRC = ../xaudio2_7
|
PARENTSRC = ../xaudio2_7
|
||||||
EXTRALIBS = $(FAUDIO_LIBS)
|
|
||||||
EXTRAINCL = $(FAUDIO_CFLAGS)
|
|
||||||
|
|
||||||
EXTRADLLFLAGS = -mcygwin
|
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
compat.c \
|
compat.c \
|
||||||
|
|
|
@ -1,11 +1,8 @@
|
||||||
EXTRADEFS = -DXAUDIO2_VER=3
|
EXTRADEFS = -DXAUDIO2_VER=3
|
||||||
MODULE = xaudio2_3.dll
|
MODULE = xaudio2_3.dll
|
||||||
IMPORTS = advapi32 ole32 user32 uuid
|
IMPORTS = $(FAUDIO_PE_LIBS) advapi32 ole32 user32 uuid
|
||||||
|
EXTRAINCL = $(FAUDIO_PE_CFLAGS)
|
||||||
PARENTSRC = ../xaudio2_7
|
PARENTSRC = ../xaudio2_7
|
||||||
EXTRALIBS = $(FAUDIO_LIBS)
|
|
||||||
EXTRAINCL = $(FAUDIO_CFLAGS)
|
|
||||||
|
|
||||||
EXTRADLLFLAGS = -mcygwin
|
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
compat.c \
|
compat.c \
|
||||||
|
|
|
@ -1,11 +1,8 @@
|
||||||
EXTRADEFS = -DXAUDIO2_VER=4
|
EXTRADEFS = -DXAUDIO2_VER=4
|
||||||
MODULE = xaudio2_4.dll
|
MODULE = xaudio2_4.dll
|
||||||
IMPORTS = advapi32 ole32 user32 uuid
|
IMPORTS = $(FAUDIO_PE_LIBS) advapi32 ole32 user32 uuid
|
||||||
|
EXTRAINCL = $(FAUDIO_PE_CFLAGS)
|
||||||
PARENTSRC = ../xaudio2_7
|
PARENTSRC = ../xaudio2_7
|
||||||
EXTRALIBS = $(FAUDIO_LIBS)
|
|
||||||
EXTRAINCL = $(FAUDIO_CFLAGS)
|
|
||||||
|
|
||||||
EXTRADLLFLAGS = -mcygwin
|
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
compat.c \
|
compat.c \
|
||||||
|
|
|
@ -1,11 +1,8 @@
|
||||||
EXTRADEFS = -DXAUDIO2_VER=5
|
EXTRADEFS = -DXAUDIO2_VER=5
|
||||||
MODULE = xaudio2_5.dll
|
MODULE = xaudio2_5.dll
|
||||||
IMPORTS = advapi32 ole32 user32 uuid
|
IMPORTS = $(FAUDIO_PE_LIBS) advapi32 ole32 user32 uuid
|
||||||
|
EXTRAINCL = $(FAUDIO_PE_CFLAGS)
|
||||||
PARENTSRC = ../xaudio2_7
|
PARENTSRC = ../xaudio2_7
|
||||||
EXTRALIBS = $(FAUDIO_LIBS)
|
|
||||||
EXTRAINCL = $(FAUDIO_CFLAGS)
|
|
||||||
|
|
||||||
EXTRADLLFLAGS = -mcygwin
|
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
compat.c \
|
compat.c \
|
||||||
|
|
|
@ -1,11 +1,8 @@
|
||||||
EXTRADEFS = -DXAUDIO2_VER=6
|
EXTRADEFS = -DXAUDIO2_VER=6
|
||||||
MODULE = xaudio2_6.dll
|
MODULE = xaudio2_6.dll
|
||||||
IMPORTS = advapi32 ole32 user32 uuid
|
IMPORTS = $(FAUDIO_PE_LIBS) advapi32 ole32 user32 uuid
|
||||||
|
EXTRAINCL = $(FAUDIO_PE_CFLAGS)
|
||||||
PARENTSRC = ../xaudio2_7
|
PARENTSRC = ../xaudio2_7
|
||||||
EXTRALIBS = $(FAUDIO_LIBS)
|
|
||||||
EXTRAINCL = $(FAUDIO_CFLAGS)
|
|
||||||
|
|
||||||
EXTRADLLFLAGS = -mcygwin
|
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
compat.c \
|
compat.c \
|
||||||
|
|
|
@ -1,10 +1,7 @@
|
||||||
EXTRADEFS = -DXAUDIO2_VER=7
|
EXTRADEFS = -DXAUDIO2_VER=7
|
||||||
MODULE = xaudio2_7.dll
|
MODULE = xaudio2_7.dll
|
||||||
IMPORTS = advapi32 ole32 user32 uuid
|
IMPORTS = $(FAUDIO_PE_LIBS) advapi32 ole32 user32 uuid
|
||||||
EXTRALIBS = $(FAUDIO_LIBS)
|
EXTRAINCL = $(FAUDIO_PE_CFLAGS)
|
||||||
EXTRAINCL = $(FAUDIO_CFLAGS)
|
|
||||||
|
|
||||||
EXTRADLLFLAGS = -mcygwin
|
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
compat.c \
|
compat.c \
|
||||||
|
|
|
@ -89,8 +89,6 @@
|
||||||
* Add SideDelay member to XAUDIO2FX_REVERB_PARAMETERS
|
* Add SideDelay member to XAUDIO2FX_REVERB_PARAMETERS
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
|
|
||||||
#define NONAMELESSUNION
|
#define NONAMELESSUNION
|
||||||
#define NONAMELESSSTRUCT
|
#define NONAMELESSSTRUCT
|
||||||
#define COBJMACROS
|
#define COBJMACROS
|
||||||
|
@ -2162,16 +2160,6 @@ static HRESULT WINAPI XA20_CreateMasteringVoice(IXAudio20 *iface,
|
||||||
|
|
||||||
This->mst.effect_chain = wrap_effect_chain(pEffectChain);
|
This->mst.effect_chain = wrap_effect_chain(pEffectChain);
|
||||||
|
|
||||||
pthread_mutex_lock(&This->mst.engine_lock);
|
|
||||||
|
|
||||||
This->mst.engine_thread = CreateThread(NULL, 0, &engine_thread, &This->mst, 0, NULL);
|
|
||||||
|
|
||||||
pthread_cond_wait(&This->mst.engine_done, &This->mst.engine_lock);
|
|
||||||
|
|
||||||
pthread_mutex_unlock(&This->mst.engine_lock);
|
|
||||||
|
|
||||||
FAudio_SetEngineProcedureEXT(This->faudio, &engine_cb, &This->mst);
|
|
||||||
|
|
||||||
FAudio_CreateMasteringVoice(This->faudio, &This->mst.faudio_voice, inputChannels,
|
FAudio_CreateMasteringVoice(This->faudio, &This->mst.faudio_voice, inputChannels,
|
||||||
inputSampleRate, flags, deviceIndex, This->mst.effect_chain);
|
inputSampleRate, flags, deviceIndex, This->mst.effect_chain);
|
||||||
|
|
||||||
|
@ -2397,16 +2385,6 @@ static HRESULT WINAPI XA22_CreateMasteringVoice(IXAudio22 *iface,
|
||||||
|
|
||||||
This->mst.effect_chain = wrap_effect_chain(pEffectChain);
|
This->mst.effect_chain = wrap_effect_chain(pEffectChain);
|
||||||
|
|
||||||
pthread_mutex_lock(&This->mst.engine_lock);
|
|
||||||
|
|
||||||
This->mst.engine_thread = CreateThread(NULL, 0, &engine_thread, &This->mst, 0, NULL);
|
|
||||||
|
|
||||||
pthread_cond_wait(&This->mst.engine_done, &This->mst.engine_lock);
|
|
||||||
|
|
||||||
pthread_mutex_unlock(&This->mst.engine_lock);
|
|
||||||
|
|
||||||
FAudio_SetEngineProcedureEXT(This->faudio, &engine_cb, &This->mst);
|
|
||||||
|
|
||||||
FAudio_CreateMasteringVoice(This->faudio, &This->mst.faudio_voice, inputChannels,
|
FAudio_CreateMasteringVoice(This->faudio, &This->mst.faudio_voice, inputChannels,
|
||||||
inputSampleRate, flags, deviceIndex, This->mst.effect_chain);
|
inputSampleRate, flags, deviceIndex, This->mst.effect_chain);
|
||||||
|
|
||||||
|
@ -2631,16 +2609,6 @@ static HRESULT WINAPI XA23_CreateMasteringVoice(IXAudio23 *iface,
|
||||||
|
|
||||||
This->mst.effect_chain = wrap_effect_chain(pEffectChain);
|
This->mst.effect_chain = wrap_effect_chain(pEffectChain);
|
||||||
|
|
||||||
pthread_mutex_lock(&This->mst.engine_lock);
|
|
||||||
|
|
||||||
This->mst.engine_thread = CreateThread(NULL, 0, &engine_thread, &This->mst, 0, NULL);
|
|
||||||
|
|
||||||
pthread_cond_wait(&This->mst.engine_done, &This->mst.engine_lock);
|
|
||||||
|
|
||||||
pthread_mutex_unlock(&This->mst.engine_lock);
|
|
||||||
|
|
||||||
FAudio_SetEngineProcedureEXT(This->faudio, &engine_cb, &This->mst);
|
|
||||||
|
|
||||||
FAudio_CreateMasteringVoice(This->faudio, &This->mst.faudio_voice, inputChannels,
|
FAudio_CreateMasteringVoice(This->faudio, &This->mst.faudio_voice, inputChannels,
|
||||||
inputSampleRate, flags, deviceIndex, This->mst.effect_chain);
|
inputSampleRate, flags, deviceIndex, This->mst.effect_chain);
|
||||||
|
|
||||||
|
@ -2819,16 +2787,6 @@ static HRESULT WINAPI XA27_CreateMasteringVoice(IXAudio27 *iface,
|
||||||
|
|
||||||
This->mst.effect_chain = wrap_effect_chain(pEffectChain);
|
This->mst.effect_chain = wrap_effect_chain(pEffectChain);
|
||||||
|
|
||||||
pthread_mutex_lock(&This->mst.engine_lock);
|
|
||||||
|
|
||||||
This->mst.engine_thread = CreateThread(NULL, 0, &engine_thread, &This->mst, 0, NULL);
|
|
||||||
|
|
||||||
pthread_cond_wait(&This->mst.engine_done, &This->mst.engine_lock);
|
|
||||||
|
|
||||||
pthread_mutex_unlock(&This->mst.engine_lock);
|
|
||||||
|
|
||||||
FAudio_SetEngineProcedureEXT(This->faudio, &engine_cb, &This->mst);
|
|
||||||
|
|
||||||
FAudio_CreateMasteringVoice(This->faudio, &This->mst.faudio_voice, inputChannels,
|
FAudio_CreateMasteringVoice(This->faudio, &This->mst.faudio_voice, inputChannels,
|
||||||
inputSampleRate, flags, deviceIndex, This->mst.effect_chain);
|
inputSampleRate, flags, deviceIndex, This->mst.effect_chain);
|
||||||
|
|
||||||
|
|
|
@ -17,8 +17,6 @@
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
#include "windef.h"
|
#include "windef.h"
|
||||||
|
@ -38,12 +36,7 @@ HRESULT CDECL X3DAudioInitialize(UINT32 chanmask, float speedofsound,
|
||||||
X3DAUDIO_HANDLE handle)
|
X3DAUDIO_HANDLE handle)
|
||||||
{
|
{
|
||||||
TRACE("0x%x, %f, %p\n", chanmask, speedofsound, handle);
|
TRACE("0x%x, %f, %p\n", chanmask, speedofsound, handle);
|
||||||
#ifdef HAVE_F3DAUDIOINITIALIZE8
|
|
||||||
return F3DAudioInitialize8(chanmask, speedofsound, handle);
|
return F3DAudioInitialize8(chanmask, speedofsound, handle);
|
||||||
#else
|
|
||||||
F3DAudioInitialize(chanmask, speedofsound, handle);
|
|
||||||
return S_OK;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
#endif /* XAUDIO2_VER >= 8 */
|
#endif /* XAUDIO2_VER >= 8 */
|
||||||
|
|
||||||
|
|
|
@ -18,8 +18,6 @@
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
#define NONAMELESSUNION
|
#define NONAMELESSUNION
|
||||||
|
@ -313,7 +311,6 @@ static inline HRESULT get_fapo_from_clsid(REFCLSID clsid, FAPO **fapo)
|
||||||
XAudio_Internal_Free,
|
XAudio_Internal_Free,
|
||||||
XAudio_Internal_Realloc
|
XAudio_Internal_Realloc
|
||||||
);
|
);
|
||||||
#if XAUDIO2_VER >= 9 && HAVE_FAUDIOCREATEREVERB9WITHCUSTOMALLOCATOREXT
|
|
||||||
if(IsEqualGUID(clsid, &CLSID_AudioReverb27))
|
if(IsEqualGUID(clsid, &CLSID_AudioReverb27))
|
||||||
return FAudioCreateReverb9WithCustomAllocatorEXT(
|
return FAudioCreateReverb9WithCustomAllocatorEXT(
|
||||||
fapo,
|
fapo,
|
||||||
|
@ -322,16 +319,6 @@ static inline HRESULT get_fapo_from_clsid(REFCLSID clsid, FAPO **fapo)
|
||||||
XAudio_Internal_Free,
|
XAudio_Internal_Free,
|
||||||
XAudio_Internal_Realloc
|
XAudio_Internal_Realloc
|
||||||
);
|
);
|
||||||
#else
|
|
||||||
if(IsEqualGUID(clsid, &CLSID_AudioReverb27))
|
|
||||||
return FAudioCreateReverbWithCustomAllocatorEXT(
|
|
||||||
fapo,
|
|
||||||
0,
|
|
||||||
XAudio_Internal_Malloc,
|
|
||||||
XAudio_Internal_Free,
|
|
||||||
XAudio_Internal_Realloc
|
|
||||||
);
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
#if XAUDIO2_VER >= 8 || defined XAPOFX1_VER
|
#if XAUDIO2_VER >= 8 || defined XAPOFX1_VER
|
||||||
if(IsEqualGUID(clsid, &CLSID_FXReverb) ||
|
if(IsEqualGUID(clsid, &CLSID_FXReverb) ||
|
||||||
|
|
|
@ -17,8 +17,6 @@
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
#define NONAMELESSUNION
|
#define NONAMELESSUNION
|
||||||
|
|
|
@ -16,8 +16,6 @@
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
#define NONAMELESSUNION
|
#define NONAMELESSUNION
|
||||||
|
|
|
@ -18,13 +18,15 @@
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
#define NONAMELESSUNION
|
#define NONAMELESSUNION
|
||||||
#define COBJMACROS
|
#define COBJMACROS
|
||||||
|
|
||||||
|
#include "windows.h"
|
||||||
|
#include "objbase.h"
|
||||||
|
#include "mmdeviceapi.h"
|
||||||
|
|
||||||
#include "initguid.h"
|
#include "initguid.h"
|
||||||
#include "xaudio_private.h"
|
#include "xaudio_private.h"
|
||||||
#include "xaudio2fx.h"
|
#include "xaudio2fx.h"
|
||||||
|
@ -32,9 +34,6 @@
|
||||||
#include "xapofx.h"
|
#include "xapofx.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "ole2.h"
|
|
||||||
#include "rpcproxy.h"
|
|
||||||
|
|
||||||
#include "wine/asm.h"
|
#include "wine/asm.h"
|
||||||
#include "wine/debug.h"
|
#include "wine/debug.h"
|
||||||
#include "wine/heap.h"
|
#include "wine/heap.h"
|
||||||
|
@ -87,9 +86,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD reason, void *pReserved)
|
||||||
{
|
{
|
||||||
case DLL_PROCESS_ATTACH:
|
case DLL_PROCESS_ATTACH:
|
||||||
DisableThreadLibraryCalls( hinstDLL );
|
DisableThreadLibraryCalls( hinstDLL );
|
||||||
#ifdef HAVE_FAUDIOLINKEDVERSION
|
|
||||||
TRACE("Using FAudio version %d\n", FAudioLinkedVersion() );
|
TRACE("Using FAudio version %d\n", FAudioLinkedVersion() );
|
||||||
#endif
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
@ -1283,13 +1280,6 @@ static void WINAPI XA2M_DestroyVoice(IXAudio2MasteringVoice *iface)
|
||||||
EnterCriticalSection(&This->lock);
|
EnterCriticalSection(&This->lock);
|
||||||
|
|
||||||
destroy_voice(This);
|
destroy_voice(This);
|
||||||
pthread_mutex_lock(&This->engine_lock);
|
|
||||||
This->engine_params.proc = NULL;
|
|
||||||
pthread_cond_broadcast(&This->engine_ready);
|
|
||||||
pthread_mutex_unlock(&This->engine_lock);
|
|
||||||
|
|
||||||
WaitForSingleObject(This->engine_thread, INFINITE);
|
|
||||||
This->engine_thread = NULL;
|
|
||||||
|
|
||||||
LeaveCriticalSection(&This->lock);
|
LeaveCriticalSection(&This->lock);
|
||||||
}
|
}
|
||||||
|
@ -1660,49 +1650,6 @@ static HRESULT WINAPI IXAudio2Impl_CreateSubmixVoice(IXAudio2 *iface,
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* called thread created by SDL, must not access Wine TEB */
|
|
||||||
void engine_cb(FAudioEngineCallEXT proc, FAudio *faudio, float *stream, void *user)
|
|
||||||
{
|
|
||||||
XA2VoiceImpl *This = user;
|
|
||||||
|
|
||||||
pthread_mutex_lock(&This->engine_lock);
|
|
||||||
|
|
||||||
This->engine_params.proc = proc;
|
|
||||||
This->engine_params.stream = stream;
|
|
||||||
This->engine_params.faudio = faudio;
|
|
||||||
|
|
||||||
pthread_cond_broadcast(&This->engine_ready);
|
|
||||||
|
|
||||||
while(This->engine_params.proc)
|
|
||||||
pthread_cond_wait(&This->engine_done, &This->engine_lock);
|
|
||||||
|
|
||||||
pthread_mutex_unlock(&This->engine_lock);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* wine thread, OK to access TEB, invoke client code, etc */
|
|
||||||
DWORD WINAPI engine_thread(void *user)
|
|
||||||
{
|
|
||||||
XA2VoiceImpl *This = user;
|
|
||||||
|
|
||||||
pthread_mutex_lock(&This->engine_lock);
|
|
||||||
|
|
||||||
pthread_cond_broadcast(&This->engine_done);
|
|
||||||
|
|
||||||
do{
|
|
||||||
pthread_cond_wait(&This->engine_ready, &This->engine_lock);
|
|
||||||
|
|
||||||
if(This->engine_params.proc){
|
|
||||||
This->engine_params.proc(This->engine_params.faudio, This->engine_params.stream);
|
|
||||||
This->engine_params.proc = NULL;
|
|
||||||
pthread_cond_broadcast(&This->engine_done);
|
|
||||||
}
|
|
||||||
}while(This->in_use);
|
|
||||||
|
|
||||||
pthread_mutex_unlock(&This->engine_lock);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static HRESULT WINAPI IXAudio2Impl_CreateMasteringVoice(IXAudio2 *iface,
|
static HRESULT WINAPI IXAudio2Impl_CreateMasteringVoice(IXAudio2 *iface,
|
||||||
IXAudio2MasteringVoice **ppMasteringVoice, UINT32 inputChannels,
|
IXAudio2MasteringVoice **ppMasteringVoice, UINT32 inputChannels,
|
||||||
UINT32 inputSampleRate, UINT32 flags, const WCHAR *deviceId,
|
UINT32 inputSampleRate, UINT32 flags, const WCHAR *deviceId,
|
||||||
|
@ -1736,16 +1683,6 @@ static HRESULT WINAPI IXAudio2Impl_CreateMasteringVoice(IXAudio2 *iface,
|
||||||
|
|
||||||
This->mst.effect_chain = wrap_effect_chain(pEffectChain);
|
This->mst.effect_chain = wrap_effect_chain(pEffectChain);
|
||||||
|
|
||||||
pthread_mutex_lock(&This->mst.engine_lock);
|
|
||||||
|
|
||||||
This->mst.engine_thread = CreateThread(NULL, 0, &engine_thread, &This->mst, 0, NULL);
|
|
||||||
|
|
||||||
pthread_cond_wait(&This->mst.engine_done, &This->mst.engine_lock);
|
|
||||||
|
|
||||||
pthread_mutex_unlock(&This->mst.engine_lock);
|
|
||||||
|
|
||||||
FAudio_SetEngineProcedureEXT(This->faudio, &engine_cb, &This->mst);
|
|
||||||
|
|
||||||
FAudio_CreateMasteringVoice8(This->faudio, &This->mst.faudio_voice, inputChannels,
|
FAudio_CreateMasteringVoice8(This->faudio, &This->mst.faudio_voice, inputChannels,
|
||||||
inputSampleRate, flags, NULL /* TODO: (uint16_t*)deviceId */,
|
inputSampleRate, flags, NULL /* TODO: (uint16_t*)deviceId */,
|
||||||
This->mst.effect_chain, (FAudioStreamCategory)streamCategory);
|
This->mst.effect_chain, (FAudioStreamCategory)streamCategory);
|
||||||
|
@ -1782,11 +1719,7 @@ static HRESULT WINAPI IXAudio2Impl_CommitChanges(IXAudio2 *iface,
|
||||||
|
|
||||||
TRACE("(%p)->(0x%x)\n", This, operationSet);
|
TRACE("(%p)->(0x%x)\n", This, operationSet);
|
||||||
|
|
||||||
#ifdef HAVE_FAUDIO_COMMITOPERATIONSET
|
|
||||||
return FAudio_CommitOperationSet(This->faudio, operationSet);
|
return FAudio_CommitOperationSet(This->faudio, operationSet);
|
||||||
#else
|
|
||||||
return FAudio_CommitChanges(This->faudio);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void WINAPI IXAudio2Impl_GetPerformanceData(IXAudio2 *iface,
|
static void WINAPI IXAudio2Impl_GetPerformanceData(IXAudio2 *iface,
|
||||||
|
@ -1923,10 +1856,6 @@ static HRESULT WINAPI XAudio2CF_CreateInstance(IClassFactory *iface, IUnknown *p
|
||||||
InitializeCriticalSection(&object->mst.lock);
|
InitializeCriticalSection(&object->mst.lock);
|
||||||
object->mst.lock.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": XA2MasteringVoice.lock");
|
object->mst.lock.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": XA2MasteringVoice.lock");
|
||||||
|
|
||||||
pthread_mutex_init(&object->mst.engine_lock, NULL);
|
|
||||||
pthread_cond_init(&object->mst.engine_done, NULL);
|
|
||||||
pthread_cond_init(&object->mst.engine_ready, NULL);
|
|
||||||
|
|
||||||
FAudioCOMConstructWithCustomAllocatorEXT(
|
FAudioCOMConstructWithCustomAllocatorEXT(
|
||||||
&object->faudio,
|
&object->faudio,
|
||||||
XAUDIO2_VER,
|
XAUDIO2_VER,
|
||||||
|
|
|
@ -26,8 +26,6 @@
|
||||||
#include <FAudio.h>
|
#include <FAudio.h>
|
||||||
#include <FAPO.h>
|
#include <FAPO.h>
|
||||||
|
|
||||||
#include <pthread.h>
|
|
||||||
|
|
||||||
#if XAUDIO2_VER == 0
|
#if XAUDIO2_VER == 0
|
||||||
#define COMPAT_E_INVALID_CALL E_INVALIDARG
|
#define COMPAT_E_INVALID_CALL E_INVALIDARG
|
||||||
#define COMPAT_E_DEVICE_INVALIDATED XAUDIO20_E_DEVICE_INVALIDATED
|
#define COMPAT_E_DEVICE_INVALIDATED XAUDIO20_E_DEVICE_INVALIDATED
|
||||||
|
@ -97,10 +95,6 @@ typedef struct _XA2VoiceImpl {
|
||||||
float *stream;
|
float *stream;
|
||||||
} engine_params;
|
} engine_params;
|
||||||
|
|
||||||
HANDLE engine_thread;
|
|
||||||
pthread_cond_t engine_done, engine_ready;
|
|
||||||
pthread_mutex_t engine_lock;
|
|
||||||
|
|
||||||
struct list entry;
|
struct list entry;
|
||||||
} XA2VoiceImpl;
|
} XA2VoiceImpl;
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,8 @@
|
||||||
EXTRADEFS = -DXAUDIO2_VER=8
|
EXTRADEFS = -DXAUDIO2_VER=8
|
||||||
MODULE = xaudio2_8.dll
|
MODULE = xaudio2_8.dll
|
||||||
IMPORTS = advapi32 ole32 user32 uuid
|
IMPORTS = $(FAUDIO_PE_LIBS) advapi32 ole32 user32 uuid
|
||||||
|
EXTRAINCL = $(FAUDIO_PE_CFLAGS)
|
||||||
PARENTSRC = ../xaudio2_7
|
PARENTSRC = ../xaudio2_7
|
||||||
EXTRALIBS = $(FAUDIO_LIBS)
|
|
||||||
EXTRAINCL = $(FAUDIO_CFLAGS)
|
|
||||||
|
|
||||||
EXTRADLLFLAGS = -mcygwin
|
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
compat.c \
|
compat.c \
|
||||||
|
|
|
@ -1,11 +1,8 @@
|
||||||
EXTRADEFS = -DXAUDIO2_VER=9
|
EXTRADEFS = -DXAUDIO2_VER=9
|
||||||
MODULE = xaudio2_9.dll
|
MODULE = xaudio2_9.dll
|
||||||
IMPORTS = advapi32 ole32 user32 uuid
|
IMPORTS = $(FAUDIO_PE_LIBS) advapi32 ole32 user32 uuid
|
||||||
|
EXTRAINCL = $(FAUDIO_PE_CFLAGS)
|
||||||
PARENTSRC = ../xaudio2_7
|
PARENTSRC = ../xaudio2_7
|
||||||
EXTRALIBS = $(FAUDIO_LIBS)
|
|
||||||
EXTRAINCL = $(FAUDIO_CFLAGS)
|
|
||||||
|
|
||||||
EXTRADLLFLAGS = -mcygwin
|
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
compat.c \
|
compat.c \
|
||||||
|
|
|
@ -68,22 +68,6 @@
|
||||||
/* Define to 1 if you have the `epoll_create' function. */
|
/* Define to 1 if you have the `epoll_create' function. */
|
||||||
#undef HAVE_EPOLL_CREATE
|
#undef HAVE_EPOLL_CREATE
|
||||||
|
|
||||||
/* Define to 1 if you have the `F3DAudioInitialize8' function. */
|
|
||||||
#undef HAVE_F3DAUDIOINITIALIZE8
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `FAudioCreateReverb9WithCustomAllocatorEXT'
|
|
||||||
function. */
|
|
||||||
#undef HAVE_FAUDIOCREATEREVERB9WITHCUSTOMALLOCATOREXT
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `FAudioLinkedVersion' function. */
|
|
||||||
#undef HAVE_FAUDIOLINKEDVERSION
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `FAudio_CommitOperationSet' function. */
|
|
||||||
#undef HAVE_FAUDIO_COMMITOPERATIONSET
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <FAudio.h> header file. */
|
|
||||||
#undef HAVE_FAUDIO_H
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <float.h> header file. */
|
/* Define to 1 if you have the <float.h> header file. */
|
||||||
#undef HAVE_FLOAT_H
|
#undef HAVE_FLOAT_H
|
||||||
|
|
||||||
|
@ -914,9 +898,6 @@
|
||||||
/* Define to the soname of the libEGL library. */
|
/* Define to the soname of the libEGL library. */
|
||||||
#undef SONAME_LIBEGL
|
#undef SONAME_LIBEGL
|
||||||
|
|
||||||
/* Define to the soname of the libFAudio library. */
|
|
||||||
#undef SONAME_LIBFAUDIO
|
|
||||||
|
|
||||||
/* Define to the soname of the libfontconfig library. */
|
/* Define to the soname of the libfontconfig library. */
|
||||||
#undef SONAME_LIBFONTCONFIG
|
#undef SONAME_LIBFONTCONFIG
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue