Commit ad009330 authored by Andrew Eikum's avatar Andrew Eikum Committed by Alexandre Julliard

winecoreaudio.drv: Don't fail if setting volume fails.

Some audio input devices don't support setting the device volume, while others do. So attempt to set the volume, but don't return an error code if it fails.
parent 9d29d9f7
......@@ -2360,10 +2360,8 @@ static HRESULT ca_setvol(ACImpl *This, UINT32 index)
This->session->channel_vols[index] * This->vols[index];
sc = AudioQueueSetParameter(This->aqueue, kAudioQueueParam_Volume, level);
if(sc != noErr){
if(sc != noErr)
WARN("Setting _Volume property failed: %lx\n", sc);
return E_FAIL;
}
return S_OK;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment