xaudio2_7: Trace FAudio version being used.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alistair Leslie-Hughes 2020-03-20 07:38:03 +00:00 committed by Alexandre Julliard
parent 3ea35e7ea1
commit e7752e6191
4 changed files with 10 additions and 2 deletions

3
configure vendored
View File

@ -15359,7 +15359,8 @@ done
ac_wine_check_funcs_save_LIBS="$LIBS" ac_wine_check_funcs_save_LIBS="$LIBS"
LIBS="$LIBS $FAUDIO_LIBS" LIBS="$LIBS $FAUDIO_LIBS"
for ac_func in FAudio_CommitOperationSet \ for ac_func in FAudio_CommitOperationSet \
F3DAudioInitialize8 F3DAudioInitialize8 \
FAudioLinkedVersion
do : do :
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"

View File

@ -1756,7 +1756,8 @@ then
[AC_CHECK_HEADERS([FAudio.h], [AC_CHECK_HEADERS([FAudio.h],
[WINE_CHECK_SONAME(FAudio,FAudioCreate,,,[$FAUDIO_LIBS],[[libFAudio*]])]) [WINE_CHECK_SONAME(FAudio,FAudioCreate,,,[$FAUDIO_LIBS],[[libFAudio*]])])
WINE_CHECK_LIB_FUNCS([FAudio_CommitOperationSet \ WINE_CHECK_LIB_FUNCS([FAudio_CommitOperationSet \
F3DAudioInitialize8], [$FAUDIO_LIBS]) F3DAudioInitialize8 \
FAudioLinkedVersion], [$FAUDIO_LIBS])
]) ])
fi fi
WINE_NOTICE_WITH(faudio,[test "x$ac_cv_lib_soname_FAudio" = "x"], WINE_NOTICE_WITH(faudio,[test "x$ac_cv_lib_soname_FAudio" = "x"],

View File

@ -90,6 +90,9 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD reason, void *pReserved)
case DLL_PROCESS_ATTACH: case DLL_PROCESS_ATTACH:
instance = hinstDLL; instance = hinstDLL;
DisableThreadLibraryCalls( hinstDLL ); DisableThreadLibraryCalls( hinstDLL );
#ifdef HAVE_FAUDIOLINKEDVERSION
TRACE("Using FAudio version %d\n", FAudioLinkedVersion() );
#endif
break; break;
} }
return TRUE; return TRUE;

View File

@ -152,6 +152,9 @@
/* Define to 1 if you have the `fallocate' function. */ /* Define to 1 if you have the `fallocate' function. */
#undef HAVE_FALLOCATE #undef HAVE_FALLOCATE
/* Define to 1 if you have the `FAudioLinkedVersion' function. */
#undef HAVE_FAUDIOLINKEDVERSION
/* Define to 1 if you have the `FAudio_CommitOperationSet' function. */ /* Define to 1 if you have the `FAudio_CommitOperationSet' function. */
#undef HAVE_FAUDIO_COMMITOPERATIONSET #undef HAVE_FAUDIO_COMMITOPERATIONSET