Signed-off-by: Alistair Leslie-Hughes leslie_alistair@hotmail.com --- dlls/dsound/buffer.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)
diff --git a/dlls/dsound/buffer.c b/dlls/dsound/buffer.c index e76d113e63..003a518c5f 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)) {
Signed-off-by: Andrew Eikum aeikum@codeweavers.com
On Thu, Sep 05, 2019 at 03:33:49AM +0000, Alistair Leslie-Hughes wrote:
Signed-off-by: Alistair Leslie-Hughes leslie_alistair@hotmail.com
dlls/dsound/buffer.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)
diff --git a/dlls/dsound/buffer.c b/dlls/dsound/buffer.c index e76d113e63..003a518c5f 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)) {
-- 2.17.1