mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2024-11-21 16:46:54 -08:00
136 lines
4.4 KiB
Diff
136 lines
4.4 KiB
Diff
|
From 0a577ac59e4c1a8dad7ac90374ecf32aabf51057 Mon Sep 17 00:00:00 2001
|
||
|
From: Austin English <austinenglish@gmail.com>
|
||
|
Date: Tue, 13 Oct 2020 04:42:03 -0500
|
||
|
Subject: [PATCH] dsound3d: add stub dll
|
||
|
|
||
|
Signed-off-by: Austin English <austinenglish@gmail.com>
|
||
|
---
|
||
|
configure.ac | 1 +
|
||
|
dlls/dsound3d/Makefile.in | 8 +++++++
|
||
|
dlls/dsound3d/dsound3d.spec | 1 +
|
||
|
dlls/dsound3d/dsound3d_main.c | 42 +++++++++++++++++++++++++++++++++++
|
||
|
dlls/dsound3d/version.rc | 26 ++++++++++++++++++++++
|
||
|
5 files changed, 78 insertions(+)
|
||
|
create mode 100644 dlls/dsound3d/Makefile.in
|
||
|
create mode 100644 dlls/dsound3d/dsound3d.spec
|
||
|
create mode 100644 dlls/dsound3d/dsound3d_main.c
|
||
|
create mode 100644 dlls/dsound3d/version.rc
|
||
|
|
||
|
diff --git a/configure.ac b/configure.ac
|
||
|
index 5305312d2aa..00bb6bdf015 100644
|
||
|
--- a/configure.ac
|
||
|
+++ b/configure.ac
|
||
|
@@ -3215,6 +3215,7 @@ WINE_CONFIG_MAKEFILE(dlls/dsdmo/tests)
|
||
|
WINE_CONFIG_MAKEFILE(dlls/dsdmoprp)
|
||
|
WINE_CONFIG_MAKEFILE(dlls/dsound)
|
||
|
WINE_CONFIG_MAKEFILE(dlls/dsound/tests)
|
||
|
+WINE_CONFIG_MAKEFILE(dlls/dsound3d)
|
||
|
WINE_CONFIG_MAKEFILE(dlls/dsquery)
|
||
|
WINE_CONFIG_MAKEFILE(dlls/dssenh)
|
||
|
WINE_CONFIG_MAKEFILE(dlls/dssenh/tests)
|
||
|
diff --git a/dlls/dsound3d/Makefile.in b/dlls/dsound3d/Makefile.in
|
||
|
new file mode 100644
|
||
|
index 00000000000..780faeb9f68
|
||
|
--- /dev/null
|
||
|
+++ b/dlls/dsound3d/Makefile.in
|
||
|
@@ -0,0 +1,8 @@
|
||
|
+MODULE = dsound3d.dll
|
||
|
+
|
||
|
+EXTRADLLFLAGS = -mno-cygwin
|
||
|
+
|
||
|
+C_SRCS = \
|
||
|
+ dsound3d_main.c
|
||
|
+
|
||
|
+RC_SRCS = version.rc
|
||
|
diff --git a/dlls/dsound3d/dsound3d.spec b/dlls/dsound3d/dsound3d.spec
|
||
|
new file mode 100644
|
||
|
index 00000000000..9859c231f25
|
||
|
--- /dev/null
|
||
|
+++ b/dlls/dsound3d/dsound3d.spec
|
||
|
@@ -0,0 +1 @@
|
||
|
+@ stub CafBiquadCoeffs
|
||
|
\ No newline at end of file
|
||
|
diff --git a/dlls/dsound3d/dsound3d_main.c b/dlls/dsound3d/dsound3d_main.c
|
||
|
new file mode 100644
|
||
|
index 00000000000..0bd7ecdfdf2
|
||
|
--- /dev/null
|
||
|
+++ b/dlls/dsound3d/dsound3d_main.c
|
||
|
@@ -0,0 +1,42 @@
|
||
|
+/*
|
||
|
+ *
|
||
|
+ * Copyright 2020 Austin English
|
||
|
+ *
|
||
|
+ * 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 "wine/debug.h"
|
||
|
+
|
||
|
+WINE_DEFAULT_DEBUG_CHANNEL(dsound3d);
|
||
|
+
|
||
|
+BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, void *reserved)
|
||
|
+{
|
||
|
+ TRACE("(%p, %u, %p)\n", instance, reason, reserved);
|
||
|
+
|
||
|
+ switch (reason)
|
||
|
+ {
|
||
|
+ case DLL_WINE_PREATTACH:
|
||
|
+ return FALSE; /* prefer native version */
|
||
|
+ case DLL_PROCESS_ATTACH:
|
||
|
+ DisableThreadLibraryCalls(instance);
|
||
|
+ break;
|
||
|
+ }
|
||
|
+
|
||
|
+ return TRUE;
|
||
|
+}
|
||
|
diff --git a/dlls/dsound3d/version.rc b/dlls/dsound3d/version.rc
|
||
|
new file mode 100644
|
||
|
index 00000000000..77dea7a2f70
|
||
|
--- /dev/null
|
||
|
+++ b/dlls/dsound3d/version.rc
|
||
|
@@ -0,0 +1,26 @@
|
||
|
+/*
|
||
|
+ * Copyright 2020 Austin English
|
||
|
+ *
|
||
|
+ * 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
|
||
|
+ */
|
||
|
+
|
||
|
+#define WINE_FILEDESCRIPTION_STR "Wine dsound3d"
|
||
|
+#define WINE_FILENAME_STR "dsound3d.dll"
|
||
|
+#define WINE_FILEVERSION 5,3,2600,5512
|
||
|
+#define WINE_FILEVERSION_STR "5.3.2600.5512"
|
||
|
+#define WINE_PRODUCTVERSION 5,3,2600,5512
|
||
|
+#define WINE_PRODUCTVERSION_STR "5.3.2600.5512"
|
||
|
+
|
||
|
+#include "wine/wine_common_ver.rc"
|
||
|
--
|
||
|
2.29.2
|
||
|
|