mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
DX9/DX11: Fixing some maybe possible crashes if a game was started, the config dialog opened and the game closed again. Due to other issues this still happens quite often though...
Various warning fixes. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6684 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -158,7 +158,7 @@ void CMixer::PushSamples(short *samples, unsigned int num_samples)
|
||||
if (m_sampleRate == 32000)
|
||||
Common::AtomicAdd(m_numSamples, num_samples);
|
||||
else if (m_sampleRate == 48000)
|
||||
Common::AtomicAdd(m_numSamples, num_samples * 1.5);
|
||||
Common::AtomicAdd(m_numSamples, num_samples * 3 / 2);
|
||||
else
|
||||
PanicAlert("Mixer: Unsupported sample rate.");
|
||||
|
||||
|
@ -158,7 +158,7 @@ bool XAudio2::Start()
|
||||
void XAudio2::SetVolume(int volume)
|
||||
{
|
||||
//linear 1- .01
|
||||
m_volume = (float)volume / 100.0;
|
||||
m_volume = (float)volume / 100.f;
|
||||
|
||||
if (pMasteringVoice)
|
||||
pMasteringVoice->SetVolume(m_volume);
|
||||
|
Reference in New Issue
Block a user