2023-07-07 17:46:04 -07:00
|
|
|
From c3f44de2b3a1dbcc91b1ed1a864e6995ce1eb87b Mon Sep 17 00:00:00 2001
|
2015-03-27 14:24:40 -07:00
|
|
|
From: Mark Harmstone <mark@harmstone.com>
|
|
|
|
Date: Sun, 22 Mar 2015 13:58:53 +0000
|
2022-02-14 16:52:59 -08:00
|
|
|
Subject: [PATCH] dsound: Add EAX propset stubs.
|
2015-03-27 14:24:40 -07:00
|
|
|
|
|
|
|
---
|
|
|
|
dlls/dsound/Makefile.in | 1 +
|
2022-02-14 16:52:59 -08:00
|
|
|
dlls/dsound/buffer.c | 6 ++++
|
|
|
|
dlls/dsound/dsound_private.h | 8 ++++++
|
|
|
|
dlls/dsound/eax.c | 54 ++++++++++++++++++++++++++++++++++++
|
2015-03-27 14:24:40 -07:00
|
|
|
4 files changed, 69 insertions(+)
|
|
|
|
create mode 100644 dlls/dsound/eax.c
|
|
|
|
|
|
|
|
diff --git a/dlls/dsound/Makefile.in b/dlls/dsound/Makefile.in
|
2022-02-14 16:52:59 -08:00
|
|
|
index 6cb653fdfa0..1c04bf34162 100644
|
2015-03-27 14:24:40 -07:00
|
|
|
--- a/dlls/dsound/Makefile.in
|
|
|
|
+++ b/dlls/dsound/Makefile.in
|
|
|
|
@@ -9,6 +9,7 @@ C_SRCS = \
|
|
|
|
dsound_convert.c \
|
|
|
|
dsound_main.c \
|
|
|
|
duplex.c \
|
|
|
|
+ eax.c \
|
|
|
|
mixer.c \
|
|
|
|
primary.c \
|
|
|
|
propset.c \
|
|
|
|
diff --git a/dlls/dsound/buffer.c b/dlls/dsound/buffer.c
|
2023-07-07 17:46:04 -07:00
|
|
|
index 447b41bffbb..5c8c495bfe4 100644
|
2015-03-27 14:24:40 -07:00
|
|
|
--- a/dlls/dsound/buffer.c
|
|
|
|
+++ b/dlls/dsound/buffer.c
|
2023-07-07 17:46:04 -07:00
|
|
|
@@ -1338,6 +1338,9 @@ static HRESULT WINAPI IKsPropertySetImpl_Get(IKsPropertySet *iface, REFGUID guid
|
2022-02-14 16:52:59 -08:00
|
|
|
TRACE("(iface=%p,guidPropSet=%s,dwPropID=%ld,pInstanceData=%p,cbInstanceData=%ld,pPropData=%p,cbPropData=%ld,pcbReturned=%p)\n",
|
2015-03-27 14:24:40 -07:00
|
|
|
This,debugstr_guid(guidPropSet),dwPropID,pInstanceData,cbInstanceData,pPropData,cbPropData,pcbReturned);
|
|
|
|
|
|
|
|
+ if (IsEqualGUID(&DSPROPSETID_EAX_ReverbProperties, guidPropSet) || IsEqualGUID(&DSPROPSETID_EAXBUFFER_ReverbProperties, guidPropSet))
|
|
|
|
+ return EAX_Get(This, guidPropSet, dwPropID, pInstanceData, cbInstanceData, pPropData, cbPropData, pcbReturned);
|
|
|
|
+
|
|
|
|
return E_PROP_ID_UNSUPPORTED;
|
|
|
|
}
|
|
|
|
|
2023-07-07 17:46:04 -07:00
|
|
|
@@ -1349,6 +1352,9 @@ static HRESULT WINAPI IKsPropertySetImpl_Set(IKsPropertySet *iface, REFGUID guid
|
2015-03-27 14:24:40 -07:00
|
|
|
|
2022-02-14 16:52:59 -08:00
|
|
|
TRACE("(%p,%s,%ld,%p,%ld,%p,%ld)\n",This,debugstr_guid(guidPropSet),dwPropID,pInstanceData,cbInstanceData,pPropData,cbPropData);
|
2015-03-27 14:24:40 -07:00
|
|
|
|
|
|
|
+ if (IsEqualGUID(&DSPROPSETID_EAX_ReverbProperties, guidPropSet) || IsEqualGUID(&DSPROPSETID_EAXBUFFER_ReverbProperties, guidPropSet))
|
|
|
|
+ return EAX_Set(This, guidPropSet, dwPropID, pInstanceData, cbInstanceData, pPropData, cbPropData);
|
|
|
|
+
|
|
|
|
return E_PROP_ID_UNSUPPORTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
diff --git a/dlls/dsound/dsound_private.h b/dlls/dsound/dsound_private.h
|
2023-07-07 17:46:04 -07:00
|
|
|
index b5546c7d9db..185b8efd014 100644
|
2015-03-27 14:24:40 -07:00
|
|
|
--- a/dlls/dsound/dsound_private.h
|
|
|
|
+++ b/dlls/dsound/dsound_private.h
|
2023-07-07 17:46:04 -07:00
|
|
|
@@ -230,6 +230,14 @@ LONG capped_refcount_dec(LONG *ref);
|
2015-03-27 14:24:40 -07:00
|
|
|
|
2023-07-07 17:46:04 -07:00
|
|
|
HRESULT DSOUND_FullDuplexCreate(REFIID riid, void **ppv);
|
2015-03-27 14:24:40 -07:00
|
|
|
|
|
|
|
+/* eax.c */
|
|
|
|
+HRESULT WINAPI EAX_Get(IDirectSoundBufferImpl *buf, REFGUID guidPropSet,
|
|
|
|
+ ULONG dwPropID, void *pInstanceData, ULONG cbInstanceData, void *pPropData,
|
|
|
|
+ ULONG cbPropData, ULONG *pcbReturned) DECLSPEC_HIDDEN;
|
|
|
|
+HRESULT WINAPI EAX_Set(IDirectSoundBufferImpl *buf, REFGUID guidPropSet,
|
|
|
|
+ ULONG dwPropID, void *pInstanceData, ULONG cbInstanceData, void *pPropData,
|
|
|
|
+ ULONG cbPropData) DECLSPEC_HIDDEN;
|
|
|
|
+
|
|
|
|
/* mixer.c */
|
2023-07-07 17:46:04 -07:00
|
|
|
void DSOUND_CheckEvent(const IDirectSoundBufferImpl *dsb, DWORD playpos, int len);
|
|
|
|
void DSOUND_RecalcVolPan(PDSVOLUMEPAN volpan);
|
2015-03-27 14:24:40 -07:00
|
|
|
diff --git a/dlls/dsound/eax.c b/dlls/dsound/eax.c
|
|
|
|
new file mode 100644
|
2022-03-13 15:48:37 -07:00
|
|
|
index 00000000000..c1264f977b6
|
2015-03-27 14:24:40 -07:00
|
|
|
--- /dev/null
|
|
|
|
+++ b/dlls/dsound/eax.c
|
|
|
|
@@ -0,0 +1,54 @@
|
|
|
|
+/*
|
|
|
|
+ * Copyright (c) 2015 Mark Harmstone
|
|
|
|
+ *
|
|
|
|
+ * 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 <math.h>
|
|
|
|
+
|
|
|
|
+#include "windef.h"
|
|
|
|
+#include "winbase.h"
|
|
|
|
+#include "winuser.h"
|
|
|
|
+#include "mmsystem.h"
|
|
|
|
+#include "winternl.h"
|
|
|
|
+#include "vfwmsgs.h"
|
|
|
|
+#include "wine/debug.h"
|
|
|
|
+#include "dsound.h"
|
|
|
|
+#include "dsound_private.h"
|
|
|
|
+
|
|
|
|
+WINE_DEFAULT_DEBUG_CHANNEL(eax);
|
|
|
|
+
|
|
|
|
+HRESULT WINAPI EAX_Get(IDirectSoundBufferImpl *buf, REFGUID guidPropSet,
|
|
|
|
+ ULONG dwPropID, void *pInstanceData, ULONG cbInstanceData, void *pPropData,
|
|
|
|
+ ULONG cbPropData, ULONG *pcbReturned)
|
|
|
|
+{
|
2022-03-13 15:48:37 -07:00
|
|
|
+ TRACE("(buf=%p,guidPropSet=%s,dwPropID=%lu,pInstanceData=%p,cbInstanceData=%lu,pPropData=%p,cbPropData=%lu,pcbReturned=%p)\n",
|
2015-03-27 14:24:40 -07:00
|
|
|
+ buf, debugstr_guid(guidPropSet), dwPropID, pInstanceData, cbInstanceData, pPropData, cbPropData, pcbReturned);
|
|
|
|
+
|
|
|
|
+ *pcbReturned = 0;
|
|
|
|
+
|
|
|
|
+ return E_PROP_ID_UNSUPPORTED;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+HRESULT WINAPI EAX_Set(IDirectSoundBufferImpl *buf, REFGUID guidPropSet,
|
|
|
|
+ ULONG dwPropID, void *pInstanceData, ULONG cbInstanceData, void *pPropData,
|
|
|
|
+ ULONG cbPropData)
|
|
|
|
+{
|
2022-03-13 15:48:37 -07:00
|
|
|
+ TRACE("(%p,%s,%lu,%p,%lu,%p,%lu)\n",
|
2015-03-27 14:24:40 -07:00
|
|
|
+ buf, debugstr_guid(guidPropSet), dwPropID, pInstanceData, cbInstanceData, pPropData, cbPropData);
|
|
|
|
+
|
|
|
|
+ return E_PROP_ID_UNSUPPORTED;
|
|
|
|
+}
|
2015-03-28 13:17:21 -07:00
|
|
|
--
|
2023-07-07 17:46:04 -07:00
|
|
|
2.40.1
|
2015-03-27 14:24:40 -07:00
|
|
|
|