Module: wine Branch: master Commit: cb38242821bfb24792b3d15c866a6d3284fea653 URL: http://source.winehq.org/git/wine.git/?a=commit;h=cb38242821bfb24792b3d15c86...
Author: Andrew Eikum aeikum@codeweavers.com Date: Fri Aug 28 08:22:22 2015 -0500
xaudio2: Implement IXAudio2SourceVoice::SetVolume.
---
dlls/xaudio2_7/xaudio_dll.c | 7 +++++++ 1 file changed, 7 insertions(+)
diff --git a/dlls/xaudio2_7/xaudio_dll.c b/dlls/xaudio2_7/xaudio_dll.c index 530318c..b8fbbc6 100644 --- a/dlls/xaudio2_7/xaudio_dll.c +++ b/dlls/xaudio2_7/xaudio_dll.c @@ -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; }