XAudio2OutputStream: Fix volume not applying

This commit is contained in:
Connor McLaughlin 2021-07-11 17:19:29 +10:00
parent c3cbe3b969
commit efd4c70664
1 changed files with 2 additions and 1 deletions

View File

@ -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);
} }