xapofx1_3: Use shared source.
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
12d7ce689a
commit
1559b715a8
|
@ -13719,6 +13719,7 @@ fi
|
|||
if test "x$ac_cv_have_openalsoft" != xyes
|
||||
then
|
||||
as_fn_append wine_notices "|openal-soft ${notice_platform}development files not found (or too old), XAudio2 won't be supported"
|
||||
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}
|
||||
|
|
|
@ -1662,6 +1662,7 @@ fi
|
|||
if test "x$ac_cv_have_openalsoft" != xyes
|
||||
then
|
||||
WINE_NOTICE([openal-soft ${notice_platform}development files not found (or too old), XAudio2 won't be supported])
|
||||
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}
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
EXTRADEFS = -DXAPOFX1_VER=3 -DXAUDIO2_VER=4
|
||||
MODULE = xapofx1_3.dll
|
||||
IMPORTS = ole32
|
||||
PARENTSRC = ../xaudio2_7
|
||||
|
||||
C_SRCS = \
|
||||
main.c
|
||||
xapofx.c
|
||||
|
||||
RC_SRCS = version.rc
|
||||
|
|
|
@ -1,59 +0,0 @@
|
|||
/*
|
||||
* Copyright 2015 Andrey Gusev
|
||||
*
|
||||
* 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 <stdarg.h>
|
||||
|
||||
#include "initguid.h"
|
||||
#include "windef.h"
|
||||
#include "winbase.h"
|
||||
#include "compobj.h"
|
||||
#include "xapofx.h"
|
||||
#include "wine/debug.h"
|
||||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(xaudio2);
|
||||
|
||||
BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved)
|
||||
{
|
||||
switch (reason)
|
||||
{
|
||||
case DLL_WINE_PREATTACH:
|
||||
return FALSE; /* prefer native version */
|
||||
case DLL_PROCESS_ATTACH:
|
||||
DisableThreadLibraryCalls(instance);
|
||||
break;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
HRESULT CDECL CreateFX(REFCLSID clsid, IUnknown **out)
|
||||
{
|
||||
const GUID *class = clsid;
|
||||
|
||||
TRACE("%s %p\n", debugstr_guid(clsid), out);
|
||||
|
||||
if(IsEqualGUID(clsid, &CLSID_FXReverb27) ||
|
||||
IsEqualGUID(clsid, &CLSID_FXReverb))
|
||||
class = &CLSID_WINE_FXReverb13;
|
||||
else if(IsEqualGUID(clsid, &CLSID_FXEQ27) ||
|
||||
IsEqualGUID(clsid, &CLSID_FXEQ))
|
||||
class = &CLSID_WINE_FXEQ13;
|
||||
|
||||
return CoCreateInstance(class, NULL, CLSCTX_INPROC_SERVER, &IID_IUnknown, (void**)out);
|
||||
}
|
|
@ -63,13 +63,6 @@ coclass FXReverb11 { interface IXAPO; }
|
|||
]
|
||||
coclass FXReverb12 { interface IXAPO; }
|
||||
|
||||
[
|
||||
helpstring("XAPOFX1.3 FXReverb Class (Wine)"),
|
||||
threading(both),
|
||||
uuid(a90bc001-e897-e897-7439-43FF02000103)
|
||||
]
|
||||
coclass FXReverb13 { interface IXAPO; }
|
||||
|
||||
[
|
||||
helpstring("XAPOFX1.1 FXEQ Class (Wine)"),
|
||||
threading(both),
|
||||
|
@ -83,13 +76,6 @@ coclass FXEQ11 { interface IXAPO; }
|
|||
uuid(a90bc001-e897-e897-7439-43FF00000102)
|
||||
]
|
||||
coclass FXEQ12 { interface IXAPO; }
|
||||
|
||||
[
|
||||
helpstring("XAPOFX1.3 FXEQ Class (Wine)"),
|
||||
threading(both),
|
||||
uuid(a90bc001-e897-e897-7439-43FF00000103)
|
||||
]
|
||||
coclass FXEQ13 { interface IXAPO; }
|
||||
#endif /* XAUDIO2_VER == 7 */
|
||||
|
||||
#if XAUDIO2_VER == 6
|
||||
|
|
|
@ -2057,8 +2057,7 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **ppv)
|
|||
IsEqualGUID(rclsid, &CLSID_WINE_FXReverb12)){
|
||||
factory = make_xapo_factory(&CLSID_AudioReverb27, 23);
|
||||
|
||||
}else if(IsEqualGUID(rclsid, &CLSID_AudioReverb24) ||
|
||||
IsEqualGUID(rclsid, &CLSID_WINE_FXReverb13)){
|
||||
}else if(IsEqualGUID(rclsid, &CLSID_AudioReverb24)){
|
||||
factory = make_xapo_factory(&CLSID_AudioReverb27, 24);
|
||||
|
||||
}else if(IsEqualGUID(rclsid, &CLSID_AudioReverb25)){
|
||||
|
@ -2076,8 +2075,6 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **ppv)
|
|||
factory = make_xapo_factory(&CLSID_FXEQ, 22);
|
||||
}else if(IsEqualGUID(rclsid, &CLSID_WINE_FXEQ12)){
|
||||
factory = make_xapo_factory(&CLSID_FXEQ, 23);
|
||||
}else if(IsEqualGUID(rclsid, &CLSID_WINE_FXEQ13)){
|
||||
factory = make_xapo_factory(&CLSID_FXEQ, 24);
|
||||
}
|
||||
|
||||
if(!factory) return CLASS_E_CLASSNOTAVAILABLE;
|
||||
|
|
|
@ -29,7 +29,6 @@ DEFINE_GUID(CLSID_FXEQ, 0xf5e01117, 0xd6c4, 0x485a, 0xa3, 0xf5, 0x69, 0x51, 0x96
|
|||
DEFINE_GUID(CLSID_WINE_FXEQ10, 0xa90bc001, 0xe897, 0xe897, 0x74, 0x39, 0x43, 0xFF, 0x00, 0x00, 0x01, 0x00);
|
||||
DEFINE_GUID(CLSID_WINE_FXEQ11, 0xa90bc001, 0xe897, 0xe897, 0x74, 0x39, 0x43, 0xFF, 0x00, 0x00, 0x01, 0x01);
|
||||
DEFINE_GUID(CLSID_WINE_FXEQ12, 0xa90bc001, 0xe897, 0xe897, 0x74, 0x39, 0x43, 0xFF, 0x00, 0x00, 0x01, 0x02);
|
||||
DEFINE_GUID(CLSID_WINE_FXEQ13, 0xa90bc001, 0xe897, 0xe897, 0x74, 0x39, 0x43, 0xFF, 0x00, 0x00, 0x01, 0x03);
|
||||
|
||||
/* xapofx 1.0 through 1.5 */
|
||||
DEFINE_GUID(CLSID_FXMasteringLimiter27, 0xa90bc001, 0xe897, 0xe897, 0x74, 0x39, 0x43, 0x55, 0x00, 0x00, 0x00, 0x01);
|
||||
|
@ -39,7 +38,6 @@ DEFINE_GUID(CLSID_FXMasteringLimiter, 0xc4137916, 0x2be1, 0x46fd, 0x85, 0x99, 0x
|
|||
DEFINE_GUID(CLSID_WINE_FXMasteringLimiter10, 0xa90bc001, 0xe897, 0xe897, 0x74, 0x39, 0x43, 0xFF, 0x01, 0x00, 0x01, 0x00);
|
||||
DEFINE_GUID(CLSID_WINE_FXMasteringLimiter11, 0xa90bc001, 0xe897, 0xe897, 0x74, 0x39, 0x43, 0xFF, 0x01, 0x00, 0x01, 0x01);
|
||||
DEFINE_GUID(CLSID_WINE_FXMasteringLimiter12, 0xa90bc001, 0xe897, 0xe897, 0x74, 0x39, 0x43, 0xFF, 0x01, 0x00, 0x01, 0x02);
|
||||
DEFINE_GUID(CLSID_WINE_FXMasteringLimiter13, 0xa90bc001, 0xe897, 0xe897, 0x74, 0x39, 0x43, 0xFF, 0x01, 0x00, 0x01, 0x03);
|
||||
|
||||
/* xapofx 1.0 through 1.5 */
|
||||
DEFINE_GUID(CLSID_FXReverb27, 0xa90bc001, 0xe897, 0xe897, 0x74, 0x39, 0x43, 0x55, 0x00, 0x00, 0x00, 0x02);
|
||||
|
@ -49,7 +47,6 @@ DEFINE_GUID(CLSID_FXReverb, 0x7d9aca56, 0xcb68, 0x4807, 0xb6, 0x32, 0xb1, 0x37,
|
|||
DEFINE_GUID(CLSID_WINE_FXReverb10, 0xa90bc001, 0xe897, 0xe897, 0x74, 0x39, 0x43, 0xFF, 0x02, 0x00, 0x01, 0x00);
|
||||
DEFINE_GUID(CLSID_WINE_FXReverb11, 0xa90bc001, 0xe897, 0xe897, 0x74, 0x39, 0x43, 0xFF, 0x02, 0x00, 0x01, 0x01);
|
||||
DEFINE_GUID(CLSID_WINE_FXReverb12, 0xa90bc001, 0xe897, 0xe897, 0x74, 0x39, 0x43, 0xFF, 0x02, 0x00, 0x01, 0x02);
|
||||
DEFINE_GUID(CLSID_WINE_FXReverb13, 0xa90bc001, 0xe897, 0xe897, 0x74, 0x39, 0x43, 0xFF, 0x02, 0x00, 0x01, 0x03);
|
||||
|
||||
/* xapofx 1.0 through 1.5 */
|
||||
DEFINE_GUID(CLSID_FXEcho27, 0xa90bc001, 0xe897, 0xe897, 0x74, 0x39, 0x43, 0x55, 0x00, 0x00, 0x00, 0x03);
|
||||
|
@ -59,6 +56,5 @@ DEFINE_GUID(CLSID_FXEcho, 0x5039d740, 0xf736, 0x449a, 0x84, 0xd3, 0xa5, 0x62, 0x
|
|||
DEFINE_GUID(CLSID_WINE_FXEcho10, 0xa90bc001, 0xe897, 0xe897, 0x74, 0x39, 0x43, 0xFF, 0x03, 0x00, 0x01, 0x00);
|
||||
DEFINE_GUID(CLSID_WINE_FXEcho11, 0xa90bc001, 0xe897, 0xe897, 0x74, 0x39, 0x43, 0xFF, 0x03, 0x00, 0x01, 0x01);
|
||||
DEFINE_GUID(CLSID_WINE_FXEcho12, 0xa90bc001, 0xe897, 0xe897, 0x74, 0x39, 0x43, 0xFF, 0x03, 0x00, 0x01, 0x02);
|
||||
DEFINE_GUID(CLSID_WINE_FXEcho13, 0xa90bc001, 0xe897, 0xe897, 0x74, 0x39, 0x43, 0xFF, 0x03, 0x00, 0x01, 0x03);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue