mirror of
https://github.com/Ryujinx/libsoundio.git
synced 2024-12-22 17:55:37 +00:00
Merge pull request #169 from GoaLitiuM/master
Fix WASAPI related compile errors
This commit is contained in:
commit
121e86a163
|
@ -1386,7 +1386,7 @@ static int outstream_do_open(struct SoundIoPrivate *si, struct SoundIoOutStreamP
|
||||||
return SoundIoErrorOpeningDevice;
|
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;
|
return SoundIoErrorOpeningDevice;
|
||||||
}
|
}
|
||||||
|
@ -1725,7 +1725,7 @@ static int outstream_set_volume_wasapi(struct SoundIoPrivate *si, struct SoundIo
|
||||||
struct SoundIoOutStreamWasapi *osw = &os->backend_data.wasapi;
|
struct SoundIoOutStreamWasapi *osw = &os->backend_data.wasapi;
|
||||||
|
|
||||||
HRESULT hr;
|
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;
|
return SoundIoErrorIncompatibleDevice;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue