From: Guillaume Charifi Subject: [2/2] xaudio2_8: New stub dll. Message-Id: <7963099.2854.1405435929960.JavaMail.www@wsfrf1131> Date: Tue, 15 Jul 2014 16:52:09 +0200 (CEST) --- configure                       |  2 ++ configure.ac                    |  1 + dlls/xaudio2_8/Makefile.in      |  3 +++ dlls/xaudio2_8/xaudio2_8.spec   |  6 ++++++ dlls/xaudio2_8/xaudio2_8_main.c | 37 +++++++++++++++++++++++++++++++++++++ 5 files changed, 49 insertions(+) diff --git a/configure b/configure index d7efbfd..5fffe3e 100755 --- a/configure +++ b/configure @@ -1290,6 +1290,7 @@ enable_wtsapi32 enable_wuapi enable_wuaueng enable_xapofx1_1 +enable_xaudio2_8 enable_xinput1_1 enable_xinput1_2 enable_xinput1_3 @@ -17310,6 +17311,7 @@ wine_fn_config_test dlls/wtsapi32/tests wtsapi32_test wine_fn_config_dll wuapi enable_wuapi clean wine_fn_config_dll wuaueng enable_wuaueng wine_fn_config_dll xapofx1_1 enable_xapofx1_1 +wine_fn_config_dll xaudio2_8 enable_xaudio2_8 wine_fn_config_dll xinput1_1 enable_xinput1_1 wine_fn_config_dll xinput1_2 enable_xinput1_2 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput diff --git a/configure.ac b/configure.ac index c913f9f..3f20f10 100644 --- a/configure.ac +++ b/configure.ac @@ -3284,6 +3284,7 @@ WINE_CONFIG_TEST(dlls/wtsapi32/tests) WINE_CONFIG_DLL(wuapi,,[clean]) WINE_CONFIG_DLL(wuaueng) WINE_CONFIG_DLL(xapofx1_1) +WINE_CONFIG_DLL(xaudio2_8) WINE_CONFIG_DLL(xinput1_1) WINE_CONFIG_DLL(xinput1_2) WINE_CONFIG_DLL(xinput1_3,,[implib],[xinput]) diff --git a/dlls/xaudio2_8/Makefile.in b/dlls/xaudio2_8/Makefile.in index e69de29..cdf907f 100644 --- a/dlls/xaudio2_8/Makefile.in +++ b/dlls/xaudio2_8/Makefile.in @@ -0,0 +1,3 @@ +MODULE = xaudio2_8.dll + +C_SRCS = xaudio2_8_main.c diff --git a/dlls/xaudio2_8/xaudio2_8.spec b/dlls/xaudio2_8/xaudio2_8.spec index e69de29..f586f3a 100644 --- a/dlls/xaudio2_8/xaudio2_8.spec +++ b/dlls/xaudio2_8/xaudio2_8.spec @@ -0,0 +1,6 @@ +1 stub XAudio2Create +2 stub CreateAudioReverb +3 stub CreateAudioVolumeMeter +4 cdecl CreateFX(ptr ptr ptr int) xapofx1_1.CreateFX +5 stub X3DAudioCalculate +6 stub X3DAudioInitialize diff --git a/dlls/xaudio2_8/xaudio2_8_main.c b/dlls/xaudio2_8/xaudio2_8_main.c index e69de29..d8ba302 100644 --- a/dlls/xaudio2_8/xaudio2_8_main.c +++ b/dlls/xaudio2_8/xaudio2_8_main.c @@ -0,0 +1,37 @@ +/* + * The Wine project - XAudio2 Game Audio API + * Copyright 2014 Guillaume Charifi + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#include "config.h" +#include + +#include "windef.h" +#include "winbase.h" + +BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved) +{ + switch(reason) + { + case DLL_WINE_PREATTACH: + return FALSE; /* prefer native version */ + case DLL_PROCESS_ATTACH: + DisableThreadLibraryCalls(inst); + break; + } + return TRUE; +}