xaudio2: Implement IXAudio2SourceVoice::SetVolume.

This commit is contained in:
Andrew Eikum 2015-08-28 08:22:22 -05:00 committed by Alexandre Julliard
parent 7f72a5f4ed
commit cb38242821
1 changed files with 7 additions and 0 deletions

View File

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