[PATCH 2/5] xaudio2: Implement IXAudio2SourceVoice::SetVolume

Andrew Eikum aeikum at codeweavers.com
Fri Aug 28 08:22:22 CDT 2015


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





More information about the wine-patches mailing list