From 91fff43ff41c41ecec42ac7cf30ada2dd10f495b Mon Sep 17 00:00:00 2001 From: RadWolfie Date: Thu, 8 Jun 2017 09:21:36 -0500 Subject: [PATCH] Missing define and fixed wrong function --- src/CxbxKrnl/EmuDSound.cpp | 4 ++-- src/CxbxKrnl/EmuDSound.h | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/CxbxKrnl/EmuDSound.cpp b/src/CxbxKrnl/EmuDSound.cpp index 9c4d538f8..149edc0fc 100644 --- a/src/CxbxKrnl/EmuDSound.cpp +++ b/src/CxbxKrnl/EmuDSound.cpp @@ -3203,8 +3203,8 @@ HRESULT WINAPI XTL::EMUPATCH(IDirectSoundBuffer_SetDopplerFactor) pThis, flDopplerFactor, dwApply); HRESULT hRet = DS_OK; - if (pThis != NULL && pThis->EmuDirectSound3DBuffer != NULL) { - pThis->EmuDirectSound3DBuffer->SetConeOutsideVolume(flDopplerFactor, dwApply); + if (pThis != NULL && pThis->EmuDirectSound3DListener != NULL) { + pThis->EmuDirectSound3DListener->SetDopplerFactor(flDopplerFactor, dwApply); } leaveCriticalSection; diff --git a/src/CxbxKrnl/EmuDSound.h b/src/CxbxKrnl/EmuDSound.h index 5b6b2a0fe..f814ec70f 100644 --- a/src/CxbxKrnl/EmuDSound.h +++ b/src/CxbxKrnl/EmuDSound.h @@ -51,6 +51,12 @@ #define X_DSBPAUSE_PAUSE 0x00000001 #define X_DSBPAUSE_SYNCHPLAYBACK 0x00000002 +// EmuIDirectSoundBuffer_Pause flags +#define X_DSSPAUSE_RESUME 0x00000000 +#define X_DSSPAUSE_PAUSE 0x00000001 +#define X_DSSPAUSE_SYNCHPLAYBACK 0x00000002 +#define X_DSSPAUSE_PAUSENOACTIVATE 0x00000003 + // ****************************************************************** // * X_DSBUFFERDESC