mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Tiny crash fix for the wiimote plugin as well as a safer check for the volume in DSP HLE
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3314 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -160,7 +160,7 @@ void DSound::SetVolume(int volume)
|
||||
m_volume = (int)floor(log10((float)volume) * 5000.0f) - 10000;
|
||||
|
||||
soundCriticalSection.Enter();
|
||||
if (ds != NULL)
|
||||
if (dsBuffer != NULL)
|
||||
dsBuffer->SetVolume(m_volume);
|
||||
soundCriticalSection.Leave();
|
||||
}
|
||||
|
Reference in New Issue
Block a user