Alistair Leslie-Hughes : dsound: Trace each special effect as it' s processed.
Alexandre Julliard
julliard at winehq.org
Thu Sep 5 16:54:00 CDT 2019
Module: wine
Branch: master
Commit: ff4ef417b707da4aacdd456fc4f405dcd9cc33db
URL: https://source.winehq.org/git/wine.git/?a=commit;h=ff4ef417b707da4aacdd456fc4f405dcd9cc33db
Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date: Thu Sep 5 03:33:49 2019 +0000
dsound: Trace each special effect as it's processed.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/dsound/buffer.c | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/dlls/dsound/buffer.c b/dlls/dsound/buffer.c
index dacd639..f600652 100644
--- a/dlls/dsound/buffer.c
+++ b/dlls/dsound/buffer.c
@@ -695,6 +695,23 @@ static HRESULT WINAPI IDirectSoundBufferImpl_GetFrequency(IDirectSoundBuffer8 *i
return DS_OK;
}
+static const char* dump_DSFX_guid(const DSEFFECTDESC *desc)
+{
+#define FE(guid) if (IsEqualGUID(&guid, &desc->guidDSFXClass)) return #guid
+ FE(GUID_DSFX_STANDARD_GARGLE);
+ FE(GUID_DSFX_STANDARD_CHORUS);
+ FE(GUID_DSFX_STANDARD_FLANGER);
+ FE(GUID_DSFX_STANDARD_ECHO);
+ FE(GUID_DSFX_STANDARD_DISTORTION);
+ FE(GUID_DSFX_STANDARD_COMPRESSOR);
+ FE(GUID_DSFX_STANDARD_PARAMEQ);
+ FE(GUID_DSFX_STANDARD_I3DL2REVERB);
+ FE(GUID_DSFX_WAVES_REVERB);
+#undef FE
+
+ return debugstr_guid(&desc->guidDSFXClass);
+}
+
static HRESULT WINAPI IDirectSoundBufferImpl_SetFX(IDirectSoundBuffer8 *iface, DWORD dwEffectsCount,
LPDSEFFECTDESC pDSFXDesc, DWORD *pdwResultCodes)
{
@@ -767,6 +784,8 @@ static HRESULT WINAPI IDirectSoundBufferImpl_SetFX(IDirectSoundBuffer8 *iface, D
dmt.pbFormat = (BYTE*)&wfx;
for (u = 0; u < dwEffectsCount; u++) {
+ TRACE("%d: 0x%08x, %s\n", u, pDSFXDesc[u].dwFlags, dump_DSFX_guid(&pDSFXDesc[u]));
+
hr2 = CoCreateInstance(&pDSFXDesc[u].guidDSFXClass, NULL, CLSCTX_INPROC_SERVER, &IID_IMediaObject, (LPVOID*)&filters[u].obj);
if (SUCCEEDED(hr2)) {
More information about the wine-cvs
mailing list