Missing define and fixed wrong function

This commit is contained in:
RadWolfie 2017-06-08 09:21:36 -05:00
parent 5aab408594
commit 91fff43ff4
2 changed files with 8 additions and 2 deletions

View File

@ -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;

View File

@ -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