Removing Duplicate Patch Function

This commit is contained in:
RadWolfie 2017-08-25 08:58:23 -05:00 committed by Luke Usher
parent 022b61b97d
commit 3a18fe1cb1
2 changed files with 2 additions and 34 deletions

27
src/CxbxKrnl/EmuDSound.cpp Normal file → Executable file
View File

@ -338,30 +338,6 @@ HRESULT WINAPI XTL::EMUPATCH(CDirectSound_GetSpeakerConfig)
return S_OK;
}
// ******************************************************************
// * patch: IDirectSound8_EnableHeadphones
// ******************************************************************
HRESULT WINAPI XTL::EMUPATCH(IDirectSound8_EnableHeadphones)
(
LPDIRECTSOUND8 pThis,
BOOL fEnabled)
{
FUNC_EXPORTS;
enterCriticalSection;
LOG_FUNC_BEGIN
LOG_FUNC_ARG(pThis)
LOG_FUNC_ARG(fEnabled)
LOG_FUNC_END;
EmuWarning("EmuIDirectSound8_EnableHeadphones ignored");
leaveCriticalSection;
return S_OK;
}
// ******************************************************************
// * patch: IDirectSound_SynchPlayback
// ******************************************************************
@ -2671,7 +2647,8 @@ HRESULT WINAPI XTL::EMUPATCH(IDirectSound_EnableHeadphones)
LOG_FUNC_ARG(fEnabled)
LOG_FUNC_END;
LOG_UNIMPLEMENTED_DSOUND();
//Windows Vista and later does not set speaker configuration from SetSpeakerConfig function.
EmuWarning("EmuIDirectSound_EnableHeadphones ignored");
leaveCriticalSection;

9
src/CxbxKrnl/EmuDSound.h Normal file → Executable file
View File

@ -489,15 +489,6 @@ HRESULT WINAPI EMUPATCH(CDirectSound_GetSpeakerConfig)
PDWORD pdwSpeakerConfig
);
// ******************************************************************
// * patch: IDirectSound8_EnableHeadphones
// ******************************************************************
HRESULT WINAPI EMUPATCH(IDirectSound8_EnableHeadphones)
(
LPDIRECTSOUND8 pThis,
BOOL fEnabled
);
// ******************************************************************
// * patch: IDirectSound_SynchPlayback
// ******************************************************************