XAudio2OutputStream: Fix volume not applying
This commit is contained in:
parent
c3cbe3b969
commit
efd4c70664
|
@ -173,7 +173,8 @@ void XAudio2AudioStream::EnqueueBuffer()
|
||||||
|
|
||||||
void XAudio2AudioStream::SetOutputVolume(u32 volume)
|
void XAudio2AudioStream::SetOutputVolume(u32 volume)
|
||||||
{
|
{
|
||||||
HRESULT hr = m_source_voice->SetVolume(static_cast<float>(m_output_volume) / 100.0f);
|
AudioStream::SetOutputVolume(volume);
|
||||||
|
HRESULT hr = m_mastering_voice->SetVolume(static_cast<float>(m_output_volume) / 100.0f);
|
||||||
if (FAILED(hr))
|
if (FAILED(hr))
|
||||||
Log_ErrorPrintf("SetVolume() failed: %08X", hr);
|
Log_ErrorPrintf("SetVolume() failed: %08X", hr);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue