From 9c70b2e62491b2d03eaaaacf4d3c06aca4038d82 Mon Sep 17 00:00:00 2001 From: GoaLitiuM Date: Sat, 21 Oct 2017 16:11:28 +0300 Subject: [PATCH] Fix WASAPI related compile errors --- src/wasapi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wasapi.c b/src/wasapi.c index cc7c698..9f8f3fa 100644 --- a/src/wasapi.c +++ b/src/wasapi.c @@ -1386,7 +1386,7 @@ static int outstream_do_open(struct SoundIoPrivate *si, struct SoundIoOutStreamP return SoundIoErrorOpeningDevice; } - if (FAILED(hr = osw->audio_volume_control->GetMasterVolume(&volume))) + if (FAILED(hr = osw->audio_volume_control->lpVtbl->GetMasterVolume(osw->audio_volume_control, &outstream->volume))) { return SoundIoErrorOpeningDevice; } @@ -1725,7 +1725,7 @@ static int outstream_set_volume_wasapi(struct SoundIoPrivate *si, struct SoundIo struct SoundIoOutStreamWasapi *osw = &os->backend_data.wasapi; HRESULT hr; - if (FAILED(hr = osw->audio_volume_control->SetMasterVolume(&volume))) + if (FAILED(hr = osw->audio_volume_control->lpVtbl->SetMasterVolume(osw->audio_volume_control, volume, NULL))) { return SoundIoErrorIncompatibleDevice; }