Module: wine
Branch: master
Commit: 719d226392b77b474bc000aa7311b7861b8aa854
URL: http://source.winehq.org/git/wine.git/?a=commit;h=719d226392b77b474bc000aa7…
Author: Andrew Eikum <aeikum(a)codeweavers.com>
Date: Tue Jan 12 13:31:23 2016 -0600
xaudio2_1: Use shared source.
Signed-off-by: Andrew Eikum <aeikum(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
configure | 1 +
configure.ac | 1 +
dlls/xaudio2_1/Makefile.in | 7 ++++-
dlls/xaudio2_1/xaudio2_1.spec | 2 +-
dlls/xaudio2_1/xaudio_classes.idl | 42 ------------------------------
dlls/xaudio2_1/xaudio_dll.c | 54 ---------------------------------------
dlls/xaudio2_7/xaudio_classes.idl | 23 +++++++++++++++++
7 files changed, 32 insertions(+), 98 deletions(-)
diff --git a/configure b/configure
index ddfce47..09869ac 100755
--- a/configure
+++ b/configure
@@ -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_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}
diff --git a/configure.ac b/configure.ac
index 60e2f28..cb3de07 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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_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}
diff --git a/dlls/xaudio2_1/Makefile.in b/dlls/xaudio2_1/Makefile.in
index 282513b..7aab503 100644
--- a/dlls/xaudio2_1/Makefile.in
+++ b/dlls/xaudio2_1/Makefile.in
@@ -1,7 +1,12 @@
+EXTRADEFS = -DXAUDIO2_VER=1
MODULE = xaudio2_1.dll
-IMPORTS = ole32
+IMPORTS = advapi32 kernel32 ole32 user32 uuid
+EXTRALIBS = $(OPENAL_LIBS)
+PARENTSRC = ../xaudio2_7
C_SRCS = \
+ compat.c \
+ xapofx.c \
xaudio_dll.c
IDL_SRCS = xaudio_classes.idl
diff --git a/dlls/xaudio2_1/xaudio2_1.spec b/dlls/xaudio2_1/xaudio2_1.spec
index cb263d4..b16365d 100644
--- a/dlls/xaudio2_1/xaudio2_1.spec
+++ b/dlls/xaudio2_1/xaudio2_1.spec
@@ -1,4 +1,4 @@
@ stdcall -private DllCanUnloadNow()
-@ stdcall -private DllGetClassObject(ptr ptr ptr) xaudio2_7.DllGetClassObject
+@ stdcall -private DllGetClassObject(ptr ptr ptr)
@ stdcall -private DllRegisterServer()
@ stdcall -private DllUnregisterServer()
diff --git a/dlls/xaudio2_1/xaudio_classes.idl b/dlls/xaudio2_1/xaudio_classes.idl
deleted file mode 100644
index 80fe781..0000000
--- a/dlls/xaudio2_1/xaudio_classes.idl
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * COM Classes for xaudio
- *
- * Copyright 2015 Andrew Eikum for CodeWeavers
- *
- * 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
- */
-
-#pragma makedep register
-
-[
- helpstring("XAudio2.1 Class"),
- threading(both),
- uuid(e21a7345-eb21-468e-be50-804db97cf708)
-]
-coclass XAudio21 { interface IXAudio22; }
-
-[
- helpstring("XAudio2.1 AudioReverb Class"),
- threading(both),
- uuid(f4769300-b949-4df9-b333-00d33932e9a6)
-]
-coclass AudioReverb21 { interface IXAPO; }
-
-[
- helpstring("XAudio2.1 AudioVolumeMeter Class"),
- threading(both),
- uuid(c1e3f122-a2ea-442c-854f-20d98f8357a1)
-]
-coclass AudioVolumeMeter21 { interface IXAPO; }
diff --git a/dlls/xaudio2_1/xaudio_dll.c b/dlls/xaudio2_1/xaudio_dll.c
deleted file mode 100644
index e55861c..0000000
--- a/dlls/xaudio2_1/xaudio_dll.c
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Copyright (c) 2015 Andrew Eikum for CodeWeavers
- *
- * 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 <stdarg.h>
-#include "windef.h"
-#include "winbase.h"
-#include "objbase.h"
-#include "rpcproxy.h"
-
-static HINSTANCE instance;
-
-BOOL WINAPI DllMain(HINSTANCE hinstance, DWORD reason, LPVOID reserved)
-{
- switch (reason)
- {
- case DLL_WINE_PREATTACH:
- return FALSE; /* prefer native version */
- case DLL_PROCESS_ATTACH:
- instance = hinstance;
- DisableThreadLibraryCalls(hinstance);
- break;
- }
- return TRUE;
-}
-
-HRESULT WINAPI DllCanUnloadNow(void)
-{
- return S_FALSE;
-}
-
-HRESULT WINAPI DllRegisterServer(void)
-{
- return __wine_register_resources(instance);
-}
-
-HRESULT WINAPI DllUnregisterServer(void)
-{
- return __wine_unregister_resources(instance);
-}
diff --git a/dlls/xaudio2_7/xaudio_classes.idl b/dlls/xaudio2_7/xaudio_classes.idl
index 27b74c9..6e460ac 100644
--- a/dlls/xaudio2_7/xaudio_classes.idl
+++ b/dlls/xaudio2_7/xaudio_classes.idl
@@ -234,3 +234,26 @@ coclass AudioReverb22 { interface IXAPO; }
]
coclass AudioVolumeMeter22 { interface IXAPO; }
#endif /* XAUDIO2_VER == 2 */
+
+#if XAUDIO2_VER == 1
+[
+ helpstring("XAudio2.1 Class"),
+ threading(both),
+ uuid(e21a7345-eb21-468e-be50-804db97cf708)
+]
+coclass XAudio21 { interface IXAudio22; }
+
+[
+ helpstring("XAudio2.1 AudioReverb Class"),
+ threading(both),
+ uuid(f4769300-b949-4df9-b333-00d33932e9a6)
+]
+coclass AudioReverb21 { interface IXAPO; }
+
+[
+ helpstring("XAudio2.1 AudioVolumeMeter Class"),
+ threading(both),
+ uuid(c1e3f122-a2ea-442c-854f-20d98f8357a1)
+]
+coclass AudioVolumeMeter21 { interface IXAPO; }
+#endif /* XAUDIO2_VER == 1 */
Module: wine
Branch: master
Commit: 279b35354dc15e6bde02c8106491affc0f76205a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=279b35354dc15e6bde02c8106…
Author: Andrew Eikum <aeikum(a)codeweavers.com>
Date: Tue Jan 12 13:31:20 2016 -0600
xaudio2_2: Use shared source.
Signed-off-by: Andrew Eikum <aeikum(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
configure | 1 +
configure.ac | 1 +
dlls/xaudio2_2/Makefile.in | 7 ++++-
dlls/xaudio2_2/xaudio2_2.spec | 2 +-
dlls/xaudio2_2/xaudio_classes.idl | 42 ------------------------------
dlls/xaudio2_2/xaudio_dll.c | 54 ---------------------------------------
dlls/xaudio2_7/xaudio_classes.idl | 23 +++++++++++++++++
7 files changed, 32 insertions(+), 98 deletions(-)
diff --git a/configure b/configure
index 8bd9e35..ddfce47 100755
--- a/configure
+++ b/configure
@@ -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_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}
diff --git a/configure.ac b/configure.ac
index 9ee7b74..60e2f28 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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_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}
diff --git a/dlls/xaudio2_2/Makefile.in b/dlls/xaudio2_2/Makefile.in
index 9470199..77f21bd 100644
--- a/dlls/xaudio2_2/Makefile.in
+++ b/dlls/xaudio2_2/Makefile.in
@@ -1,7 +1,12 @@
+EXTRADEFS = -DXAUDIO2_VER=2
MODULE = xaudio2_2.dll
-IMPORTS = ole32
+IMPORTS = advapi32 kernel32 ole32 user32 uuid
+EXTRALIBS = $(OPENAL_LIBS)
+PARENTSRC = ../xaudio2_7
C_SRCS = \
+ compat.c \
+ xapofx.c \
xaudio_dll.c
IDL_SRCS = xaudio_classes.idl
diff --git a/dlls/xaudio2_2/xaudio2_2.spec b/dlls/xaudio2_2/xaudio2_2.spec
index cb263d4..b16365d 100644
--- a/dlls/xaudio2_2/xaudio2_2.spec
+++ b/dlls/xaudio2_2/xaudio2_2.spec
@@ -1,4 +1,4 @@
@ stdcall -private DllCanUnloadNow()
-@ stdcall -private DllGetClassObject(ptr ptr ptr) xaudio2_7.DllGetClassObject
+@ stdcall -private DllGetClassObject(ptr ptr ptr)
@ stdcall -private DllRegisterServer()
@ stdcall -private DllUnregisterServer()
diff --git a/dlls/xaudio2_2/xaudio_classes.idl b/dlls/xaudio2_2/xaudio_classes.idl
deleted file mode 100644
index 1d49ffb..0000000
--- a/dlls/xaudio2_2/xaudio_classes.idl
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * COM Classes for xaudio
- *
- * Copyright 2015 Andrew Eikum for CodeWeavers
- *
- * 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
- */
-
-#pragma makedep register
-
-[
- helpstring("XAudio2.2 Class"),
- threading(both),
- uuid(b802058a-464a-42db-bc10-b650d6f2586a)
-]
-coclass XAudio22 { interface IXAudio22; }
-
-[
- helpstring("XAudio2.2 AudioReverb Class"),
- threading(both),
- uuid(629cf0de-3ecc-41e7-9926-f7e43eebec51)
-]
-coclass AudioReverb22 { interface IXAPO; }
-
-[
- helpstring("XAudio2.2 AudioVolumeMeter Class"),
- threading(both),
- uuid(f5ca7b34-8055-42c0-b836-216129eb7e30)
-]
-coclass AudioVolumeMeter22 { interface IXAPO; }
diff --git a/dlls/xaudio2_2/xaudio_dll.c b/dlls/xaudio2_2/xaudio_dll.c
deleted file mode 100644
index e55861c..0000000
--- a/dlls/xaudio2_2/xaudio_dll.c
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Copyright (c) 2015 Andrew Eikum for CodeWeavers
- *
- * 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 <stdarg.h>
-#include "windef.h"
-#include "winbase.h"
-#include "objbase.h"
-#include "rpcproxy.h"
-
-static HINSTANCE instance;
-
-BOOL WINAPI DllMain(HINSTANCE hinstance, DWORD reason, LPVOID reserved)
-{
- switch (reason)
- {
- case DLL_WINE_PREATTACH:
- return FALSE; /* prefer native version */
- case DLL_PROCESS_ATTACH:
- instance = hinstance;
- DisableThreadLibraryCalls(hinstance);
- break;
- }
- return TRUE;
-}
-
-HRESULT WINAPI DllCanUnloadNow(void)
-{
- return S_FALSE;
-}
-
-HRESULT WINAPI DllRegisterServer(void)
-{
- return __wine_register_resources(instance);
-}
-
-HRESULT WINAPI DllUnregisterServer(void)
-{
- return __wine_unregister_resources(instance);
-}
diff --git a/dlls/xaudio2_7/xaudio_classes.idl b/dlls/xaudio2_7/xaudio_classes.idl
index 5ec42fd..27b74c9 100644
--- a/dlls/xaudio2_7/xaudio_classes.idl
+++ b/dlls/xaudio2_7/xaudio_classes.idl
@@ -211,3 +211,26 @@ coclass AudioReverb23 { interface IXAPO; }
]
coclass AudioVolumeMeter23 { interface IXAPO; }
#endif /* XAUDIO2_VER == 3 */
+
+#if XAUDIO2_VER == 2
+[
+ helpstring("XAudio2.2 Class"),
+ threading(both),
+ uuid(b802058a-464a-42db-bc10-b650d6f2586a)
+]
+coclass XAudio22 { interface IXAudio22; }
+
+[
+ helpstring("XAudio2.2 AudioReverb Class"),
+ threading(both),
+ uuid(629cf0de-3ecc-41e7-9926-f7e43eebec51)
+]
+coclass AudioReverb22 { interface IXAPO; }
+
+[
+ helpstring("XAudio2.2 AudioVolumeMeter Class"),
+ threading(both),
+ uuid(f5ca7b34-8055-42c0-b836-216129eb7e30)
+]
+coclass AudioVolumeMeter22 { interface IXAPO; }
+#endif /* XAUDIO2_VER == 2 */
Module: wine
Branch: master
Commit: 1a08e07e2b2da954edec03227a94046f58d78ef6
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1a08e07e2b2da954edec03227…
Author: Andrew Eikum <aeikum(a)codeweavers.com>
Date: Tue Jan 12 13:31:17 2016 -0600
xaudio2_3: Use shared source.
Signed-off-by: Andrew Eikum <aeikum(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
configure | 1 +
configure.ac | 1 +
dlls/xaudio2_3/Makefile.in | 7 ++++-
dlls/xaudio2_3/xaudio2_3.spec | 2 +-
dlls/xaudio2_3/xaudio_classes.idl | 42 ------------------------------
dlls/xaudio2_3/xaudio_dll.c | 54 ---------------------------------------
dlls/xaudio2_7/xaudio_classes.idl | 23 +++++++++++++++++
7 files changed, 32 insertions(+), 98 deletions(-)
diff --git a/configure b/configure
index 09a718d..8bd9e35 100755
--- a/configure
+++ b/configure
@@ -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_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}
diff --git a/configure.ac b/configure.ac
index 6eedfb6..9ee7b74 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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_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}
diff --git a/dlls/xaudio2_3/Makefile.in b/dlls/xaudio2_3/Makefile.in
index 0e9e2f3..ed6f3e1 100644
--- a/dlls/xaudio2_3/Makefile.in
+++ b/dlls/xaudio2_3/Makefile.in
@@ -1,7 +1,12 @@
+EXTRADEFS = -DXAUDIO2_VER=3
MODULE = xaudio2_3.dll
-IMPORTS = ole32
+IMPORTS = advapi32 kernel32 ole32 user32 uuid
+EXTRALIBS = $(OPENAL_LIBS)
+PARENTSRC = ../xaudio2_7
C_SRCS = \
+ compat.c \
+ xapofx.c \
xaudio_dll.c
IDL_SRCS = xaudio_classes.idl
diff --git a/dlls/xaudio2_3/xaudio2_3.spec b/dlls/xaudio2_3/xaudio2_3.spec
index cb263d4..b16365d 100644
--- a/dlls/xaudio2_3/xaudio2_3.spec
+++ b/dlls/xaudio2_3/xaudio2_3.spec
@@ -1,4 +1,4 @@
@ stdcall -private DllCanUnloadNow()
-@ stdcall -private DllGetClassObject(ptr ptr ptr) xaudio2_7.DllGetClassObject
+@ stdcall -private DllGetClassObject(ptr ptr ptr)
@ stdcall -private DllRegisterServer()
@ stdcall -private DllUnregisterServer()
diff --git a/dlls/xaudio2_3/xaudio_classes.idl b/dlls/xaudio2_3/xaudio_classes.idl
deleted file mode 100644
index ebd8548..0000000
--- a/dlls/xaudio2_3/xaudio_classes.idl
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * COM Classes for xaudio
- *
- * Copyright 2015 Andrew Eikum for CodeWeavers
- *
- * 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
- */
-
-#pragma makedep register
-
-[
- helpstring("XAudio2.3 Class"),
- threading(both),
- uuid(4c5e637a-16c7-4de3-9c46-5ed22181962d)
-]
-coclass XAudio23 { interface IXAudio27; }
-
-[
- helpstring("XAudio2.3 AudioReverb Class"),
- threading(both),
- uuid(9cab402c-1d37-44b4-886d-fa4f36170a4c)
-]
-coclass AudioReverb23 { interface IXAPO; }
-
-[
- helpstring("XAudio2.3 AudioVolumeMeter Class"),
- threading(both),
- uuid(e180344b-ac83-4483-959e-18a5c56a5e19)
-]
-coclass AudioVolumeMeter23 { interface IXAPO; }
diff --git a/dlls/xaudio2_3/xaudio_dll.c b/dlls/xaudio2_3/xaudio_dll.c
deleted file mode 100644
index e55861c..0000000
--- a/dlls/xaudio2_3/xaudio_dll.c
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Copyright (c) 2015 Andrew Eikum for CodeWeavers
- *
- * 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 <stdarg.h>
-#include "windef.h"
-#include "winbase.h"
-#include "objbase.h"
-#include "rpcproxy.h"
-
-static HINSTANCE instance;
-
-BOOL WINAPI DllMain(HINSTANCE hinstance, DWORD reason, LPVOID reserved)
-{
- switch (reason)
- {
- case DLL_WINE_PREATTACH:
- return FALSE; /* prefer native version */
- case DLL_PROCESS_ATTACH:
- instance = hinstance;
- DisableThreadLibraryCalls(hinstance);
- break;
- }
- return TRUE;
-}
-
-HRESULT WINAPI DllCanUnloadNow(void)
-{
- return S_FALSE;
-}
-
-HRESULT WINAPI DllRegisterServer(void)
-{
- return __wine_register_resources(instance);
-}
-
-HRESULT WINAPI DllUnregisterServer(void)
-{
- return __wine_unregister_resources(instance);
-}
diff --git a/dlls/xaudio2_7/xaudio_classes.idl b/dlls/xaudio2_7/xaudio_classes.idl
index 699766c..5ec42fd 100644
--- a/dlls/xaudio2_7/xaudio_classes.idl
+++ b/dlls/xaudio2_7/xaudio_classes.idl
@@ -188,3 +188,26 @@ coclass AudioReverb24 { interface IXAPO; }
]
coclass AudioVolumeMeter24 { interface IXAPO; }
#endif /* XAUDIO2_VER == 4 */
+
+#if XAUDIO2_VER == 3
+[
+ helpstring("XAudio2.3 Class"),
+ threading(both),
+ uuid(4c5e637a-16c7-4de3-9c46-5ed22181962d)
+]
+coclass XAudio23 { interface IXAudio27; }
+
+[
+ helpstring("XAudio2.3 AudioReverb Class"),
+ threading(both),
+ uuid(9cab402c-1d37-44b4-886d-fa4f36170a4c)
+]
+coclass AudioReverb23 { interface IXAPO; }
+
+[
+ helpstring("XAudio2.3 AudioVolumeMeter Class"),
+ threading(both),
+ uuid(e180344b-ac83-4483-959e-18a5c56a5e19)
+]
+coclass AudioVolumeMeter23 { interface IXAPO; }
+#endif /* XAUDIO2_VER == 3 */
Module: wine
Branch: master
Commit: 2fa2d7f7380bdcdcb96f6f3241d2070dc3f65c88
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2fa2d7f7380bdcdcb96f6f324…
Author: Andrew Eikum <aeikum(a)codeweavers.com>
Date: Tue Jan 12 13:31:13 2016 -0600
xaudio2_4: Use shared source.
Signed-off-by: Andrew Eikum <aeikum(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
configure | 1 +
configure.ac | 1 +
dlls/xaudio2_4/Makefile.in | 7 ++++-
dlls/xaudio2_4/xaudio2_4.spec | 2 +-
dlls/xaudio2_4/xaudio_classes.idl | 42 ------------------------------
dlls/xaudio2_4/xaudio_dll.c | 54 ---------------------------------------
dlls/xaudio2_7/xaudio_classes.idl | 23 +++++++++++++++++
7 files changed, 32 insertions(+), 98 deletions(-)
diff --git a/configure b/configure
index b0c8919..09a718d 100755
--- a/configure
+++ b/configure
@@ -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_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}
diff --git a/configure.ac b/configure.ac
index 94e7cc8..6eedfb6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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_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}
diff --git a/dlls/xaudio2_4/Makefile.in b/dlls/xaudio2_4/Makefile.in
index 9a9f19b..a909a41 100644
--- a/dlls/xaudio2_4/Makefile.in
+++ b/dlls/xaudio2_4/Makefile.in
@@ -1,7 +1,12 @@
+EXTRADEFS = -DXAUDIO2_VER=4
MODULE = xaudio2_4.dll
-IMPORTS = ole32
+IMPORTS = advapi32 kernel32 ole32 user32 uuid
+EXTRALIBS = $(OPENAL_LIBS)
+PARENTSRC = ../xaudio2_7
C_SRCS = \
+ compat.c \
+ xapofx.c \
xaudio_dll.c
IDL_SRCS = xaudio_classes.idl
diff --git a/dlls/xaudio2_4/xaudio2_4.spec b/dlls/xaudio2_4/xaudio2_4.spec
index cb263d4..b16365d 100644
--- a/dlls/xaudio2_4/xaudio2_4.spec
+++ b/dlls/xaudio2_4/xaudio2_4.spec
@@ -1,4 +1,4 @@
@ stdcall -private DllCanUnloadNow()
-@ stdcall -private DllGetClassObject(ptr ptr ptr) xaudio2_7.DllGetClassObject
+@ stdcall -private DllGetClassObject(ptr ptr ptr)
@ stdcall -private DllRegisterServer()
@ stdcall -private DllUnregisterServer()
diff --git a/dlls/xaudio2_4/xaudio_classes.idl b/dlls/xaudio2_4/xaudio_classes.idl
deleted file mode 100644
index 3486de3..0000000
--- a/dlls/xaudio2_4/xaudio_classes.idl
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * COM Classes for xaudio
- *
- * Copyright 2015 Andrew Eikum for CodeWeavers
- *
- * 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
- */
-
-#pragma makedep register
-
-[
- helpstring("XAudio2.4 Class"),
- threading(both),
- uuid(03219e78-5bc3-44d1-b92e-f63d89cc6526)
-]
-coclass XAudio24 { interface IXAudio27; }
-
-[
- helpstring("XAudio2.4 AudioReverb Class"),
- threading(both),
- uuid(8bb7778b-645b-4475-9a73-1de3170bd3af)
-]
-coclass AudioReverb24 { interface IXAPO; }
-
-[
- helpstring("XAudio2.4 AudioVolumeMeter Class"),
- threading(both),
- uuid(c7338b95-52b8-4542-aa79-42eb016c8c1c)
-]
-coclass AudioVolumeMeter24 { interface IXAPO; }
diff --git a/dlls/xaudio2_4/xaudio_dll.c b/dlls/xaudio2_4/xaudio_dll.c
deleted file mode 100644
index e55861c..0000000
--- a/dlls/xaudio2_4/xaudio_dll.c
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Copyright (c) 2015 Andrew Eikum for CodeWeavers
- *
- * 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 <stdarg.h>
-#include "windef.h"
-#include "winbase.h"
-#include "objbase.h"
-#include "rpcproxy.h"
-
-static HINSTANCE instance;
-
-BOOL WINAPI DllMain(HINSTANCE hinstance, DWORD reason, LPVOID reserved)
-{
- switch (reason)
- {
- case DLL_WINE_PREATTACH:
- return FALSE; /* prefer native version */
- case DLL_PROCESS_ATTACH:
- instance = hinstance;
- DisableThreadLibraryCalls(hinstance);
- break;
- }
- return TRUE;
-}
-
-HRESULT WINAPI DllCanUnloadNow(void)
-{
- return S_FALSE;
-}
-
-HRESULT WINAPI DllRegisterServer(void)
-{
- return __wine_register_resources(instance);
-}
-
-HRESULT WINAPI DllUnregisterServer(void)
-{
- return __wine_unregister_resources(instance);
-}
diff --git a/dlls/xaudio2_7/xaudio_classes.idl b/dlls/xaudio2_7/xaudio_classes.idl
index 783b0ca..699766c 100644
--- a/dlls/xaudio2_7/xaudio_classes.idl
+++ b/dlls/xaudio2_7/xaudio_classes.idl
@@ -165,3 +165,26 @@ coclass AudioReverb25 { interface IXAPO; }
]
coclass AudioVolumeMeter25 { interface IXAPO; }
#endif /* XAUDIO2_VER == 5 */
+
+#if XAUDIO2_VER == 4
+[
+ helpstring("XAudio2.4 Class"),
+ threading(both),
+ uuid(03219e78-5bc3-44d1-b92e-f63d89cc6526)
+]
+coclass XAudio24 { interface IXAudio27; }
+
+[
+ helpstring("XAudio2.4 AudioReverb Class"),
+ threading(both),
+ uuid(8bb7778b-645b-4475-9a73-1de3170bd3af)
+]
+coclass AudioReverb24 { interface IXAPO; }
+
+[
+ helpstring("XAudio2.4 AudioVolumeMeter Class"),
+ threading(both),
+ uuid(c7338b95-52b8-4542-aa79-42eb016c8c1c)
+]
+coclass AudioVolumeMeter24 { interface IXAPO; }
+#endif /* XAUDIO2_VER == 4 */
Module: wine
Branch: master
Commit: 8f06cc63fdc7e4923cf3a334b5758abf7b77c883
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8f06cc63fdc7e4923cf3a334b…
Author: Andrew Eikum <aeikum(a)codeweavers.com>
Date: Tue Jan 12 13:31:09 2016 -0600
xaudio2_5: Use shared source.
Signed-off-by: Andrew Eikum <aeikum(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
configure | 1 +
configure.ac | 1 +
dlls/xaudio2_5/Makefile.in | 7 ++++-
dlls/xaudio2_5/xaudio2_5.spec | 2 +-
dlls/xaudio2_5/xaudio_classes.idl | 42 ------------------------------
dlls/xaudio2_5/xaudio_dll.c | 54 ---------------------------------------
dlls/xaudio2_7/xaudio_classes.idl | 23 +++++++++++++++++
7 files changed, 32 insertions(+), 98 deletions(-)
diff --git a/configure b/configure
index a46e6bb..b0c8919 100755
--- a/configure
+++ b/configure
@@ -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_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}
diff --git a/configure.ac b/configure.ac
index 84a0ac6..94e7cc8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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_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}
diff --git a/dlls/xaudio2_5/Makefile.in b/dlls/xaudio2_5/Makefile.in
index 6cc0565..ad6955c 100644
--- a/dlls/xaudio2_5/Makefile.in
+++ b/dlls/xaudio2_5/Makefile.in
@@ -1,7 +1,12 @@
+EXTRADEFS = -DXAUDIO2_VER=5
MODULE = xaudio2_5.dll
-IMPORTS = ole32
+IMPORTS = advapi32 kernel32 ole32 user32 uuid
+EXTRALIBS = $(OPENAL_LIBS)
+PARENTSRC = ../xaudio2_7
C_SRCS = \
+ compat.c \
+ xapofx.c \
xaudio_dll.c
IDL_SRCS = xaudio_classes.idl
diff --git a/dlls/xaudio2_5/xaudio2_5.spec b/dlls/xaudio2_5/xaudio2_5.spec
index cb263d4..b16365d 100644
--- a/dlls/xaudio2_5/xaudio2_5.spec
+++ b/dlls/xaudio2_5/xaudio2_5.spec
@@ -1,4 +1,4 @@
@ stdcall -private DllCanUnloadNow()
-@ stdcall -private DllGetClassObject(ptr ptr ptr) xaudio2_7.DllGetClassObject
+@ stdcall -private DllGetClassObject(ptr ptr ptr)
@ stdcall -private DllRegisterServer()
@ stdcall -private DllUnregisterServer()
diff --git a/dlls/xaudio2_5/xaudio_classes.idl b/dlls/xaudio2_5/xaudio_classes.idl
deleted file mode 100644
index f3c0b0a..0000000
--- a/dlls/xaudio2_5/xaudio_classes.idl
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * COM Classes for xaudio
- *
- * Copyright 2015 Andrew Eikum for CodeWeavers
- *
- * 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
- */
-
-#pragma makedep register
-
-[
- helpstring("XAudio2.5 Class"),
- threading(both),
- uuid(4c9b6dde-6809-46e6-a278-9b6a97588670)
-]
-coclass XAudio25 { interface IXAudio27; }
-
-[
- helpstring("XAudio2.5 AudioReverb Class"),
- threading(both),
- uuid(d06df0d0-8518-441e-822f-5451d5c595b8)
-]
-coclass AudioReverb25 { interface IXAPO; }
-
-[
- helpstring("XAudio2.5 AudioVolumeMeter Class"),
- threading(both),
- uuid(2139e6da-c341-4774-9ac3-b4e026347f64)
-]
-coclass AudioVolumeMeter25 { interface IXAPO; }
diff --git a/dlls/xaudio2_5/xaudio_dll.c b/dlls/xaudio2_5/xaudio_dll.c
deleted file mode 100644
index e55861c..0000000
--- a/dlls/xaudio2_5/xaudio_dll.c
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Copyright (c) 2015 Andrew Eikum for CodeWeavers
- *
- * 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 <stdarg.h>
-#include "windef.h"
-#include "winbase.h"
-#include "objbase.h"
-#include "rpcproxy.h"
-
-static HINSTANCE instance;
-
-BOOL WINAPI DllMain(HINSTANCE hinstance, DWORD reason, LPVOID reserved)
-{
- switch (reason)
- {
- case DLL_WINE_PREATTACH:
- return FALSE; /* prefer native version */
- case DLL_PROCESS_ATTACH:
- instance = hinstance;
- DisableThreadLibraryCalls(hinstance);
- break;
- }
- return TRUE;
-}
-
-HRESULT WINAPI DllCanUnloadNow(void)
-{
- return S_FALSE;
-}
-
-HRESULT WINAPI DllRegisterServer(void)
-{
- return __wine_register_resources(instance);
-}
-
-HRESULT WINAPI DllUnregisterServer(void)
-{
- return __wine_unregister_resources(instance);
-}
diff --git a/dlls/xaudio2_7/xaudio_classes.idl b/dlls/xaudio2_7/xaudio_classes.idl
index 0dc2104..783b0ca 100644
--- a/dlls/xaudio2_7/xaudio_classes.idl
+++ b/dlls/xaudio2_7/xaudio_classes.idl
@@ -142,3 +142,26 @@ coclass AudioReverb26 { interface IXAPO; }
]
coclass AudioVolumeMeter26 { interface IXAPO; }
#endif /* XAUDIO2_VER == 6 */
+
+#if XAUDIO2_VER == 5
+[
+ helpstring("XAudio2.5 Class"),
+ threading(both),
+ uuid(4c9b6dde-6809-46e6-a278-9b6a97588670)
+]
+coclass XAudio25 { interface IXAudio27; }
+
+[
+ helpstring("XAudio2.5 AudioReverb Class"),
+ threading(both),
+ uuid(d06df0d0-8518-441e-822f-5451d5c595b8)
+]
+coclass AudioReverb25 { interface IXAPO; }
+
+[
+ helpstring("XAudio2.5 AudioVolumeMeter Class"),
+ threading(both),
+ uuid(2139e6da-c341-4774-9ac3-b4e026347f64)
+]
+coclass AudioVolumeMeter25 { interface IXAPO; }
+#endif /* XAUDIO2_VER == 5 */