mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-09 09:39:13 +00: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:
parent
e6810baa6f
commit
79b20494be
1 changed files with 8 additions and 6 deletions
|
@ -160,9 +160,10 @@ void DSound::Clear(bool mute)
|
||||||
{
|
{
|
||||||
m_muted = mute;
|
m_muted = mute;
|
||||||
|
|
||||||
|
if (dsBuffer != NULL)
|
||||||
|
{
|
||||||
if (m_muted)
|
if (m_muted)
|
||||||
{
|
{
|
||||||
if (dsBuffer != NULL)
|
|
||||||
dsBuffer->Stop();
|
dsBuffer->Stop();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -170,6 +171,7 @@ void DSound::Clear(bool mute)
|
||||||
dsBuffer->Play(0, 0, DSBPLAY_LOOPING);
|
dsBuffer->Play(0, 0, DSBPLAY_LOOPING);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void DSound::Stop()
|
void DSound::Stop()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue