mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 07:09:48 -06:00
Fixes a crash in the DirectSound back-end.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5635 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -160,14 +160,16 @@ void DSound::Clear(bool mute)
|
|||||||
{
|
{
|
||||||
m_muted = mute;
|
m_muted = mute;
|
||||||
|
|
||||||
if (m_muted)
|
if (dsBuffer != NULL)
|
||||||
{
|
{
|
||||||
if (dsBuffer != NULL)
|
if (m_muted)
|
||||||
|
{
|
||||||
dsBuffer->Stop();
|
dsBuffer->Stop();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
dsBuffer->Play(0, 0, DSBPLAY_LOOPING);
|
dsBuffer->Play(0, 0, DSBPLAY_LOOPING);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user