Commit 1c643f39 authored by Andrew Eikum's avatar Andrew Eikum Committed by Alexandre Julliard

xaudio2: Implement device activation.

This adds a build-time dependency on openal, and a run-time dependency on openal-soft's ALC_SOFT_loopback extension.
parent 126f0601
...@@ -13604,13 +13604,14 @@ fi ...@@ -13604,13 +13604,14 @@ fi
fi fi
if test "x$ac_cv_lib_openal" != xyes; then : if test "x$ac_cv_lib_openal" != xyes; then :
case "x$with_openal" in case "x$with_openal" in
x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;; x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL and XAudio2 won't be supported" ;;
xno) ;; xno) ;;
*) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported. *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL and XAudio2 won't be supported
This is an error since --with-openal was requested." "$LINENO" 5 ;; This is an error since --with-openal was requested." "$LINENO" 5 ;;
esac esac
fi fi
test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no} test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
test "x$ac_cv_lib_openal" = xyes || enable_xaudio2_7=${enable_xaudio2_7:-no}
if test "$ac_cv_header_kstat_h" = "yes" if test "$ac_cv_header_kstat_h" = "yes"
then then
......
...@@ -1738,8 +1738,9 @@ then ...@@ -1738,8 +1738,9 @@ then
AC_DEFINE_UNQUOTED(HAVE_OPENAL,1,[Define to 1 if OpenAL is available])],,) AC_DEFINE_UNQUOTED(HAVE_OPENAL,1,[Define to 1 if OpenAL is available])],,)
fi fi
WINE_NOTICE_WITH(openal,[test "x$ac_cv_lib_openal" != xyes], 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 and XAudio2 won't be supported])
test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no} test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
test "x$ac_cv_lib_openal" = xyes || enable_xaudio2_7=${enable_xaudio2_7:-no}
dnl **** Check for libkstat **** dnl **** Check for libkstat ****
if test "$ac_cv_header_kstat_h" = "yes" if test "$ac_cv_header_kstat_h" = "yes"
......
MODULE = xaudio2_7.dll MODULE = xaudio2_7.dll
IMPORTS = advapi32 kernel32 ole32 user32 uuid IMPORTS = advapi32 kernel32 ole32 user32 uuid
EXTRALIBS = $(OPENAL_LIBS)
C_SRCS = \ C_SRCS = \
xaudio_dll.c xaudio_dll.c
......
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