Commit cb382428 authored by Andrew Eikum's avatar Andrew Eikum Committed by Alexandre Julliard

xaudio2: Implement IXAudio2SourceVoice::SetVolume.

parent 7f72a5f4
......@@ -402,7 +402,14 @@ static HRESULT WINAPI XA2SRC_SetVolume(IXAudio2SourceVoice *iface, float Volume,
UINT32 OperationSet)
{
XA2SourceImpl *This = impl_from_IXAudio2SourceVoice(iface);
ALfloat al_gain;
TRACE("%p, %f, 0x%x\n", This, Volume, OperationSet);
al_gain = Volume;
alSourcef(This->al_src, AL_GAIN, al_gain);
return S_OK;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment