mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-29 20:30:54 +00:00
Fixed: #895 BUILD BREAK: Nel Broken again with listener_xaudio2.cpp syntax error
This commit is contained in:
parent
4aaf3863de
commit
c92db19b1d
1 changed files with 2 additions and 1 deletions
|
@ -75,8 +75,9 @@ CListenerXAudio2::~CListenerXAudio2()
|
||||||
if (soundDriver) soundDriver->removeListener(this);
|
if (soundDriver) soundDriver->removeListener(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
#define NLSOUND_XAUDIO2_RELEASE_EX(pointer, command) if (_ListenerOk) nlassert(pointer) \
|
#define NLSOUND_XAUDIO2_RELEASE_EX(pointer, command) if (_ListenerOk) nlassert(pointer); \
|
||||||
if (pointer) { command; pointer = NULL; }
|
if (pointer) { command; pointer = NULL; }
|
||||||
|
|
||||||
void CListenerXAudio2::release()
|
void CListenerXAudio2::release()
|
||||||
{
|
{
|
||||||
NLSOUND_XAUDIO2_RELEASE_EX(_FilterVoice, _FilterVoice->DestroyVoice())
|
NLSOUND_XAUDIO2_RELEASE_EX(_FilterVoice, _FilterVoice->DestroyVoice())
|
||||||
|
|
Loading…
Reference in a new issue