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.
This commit is contained in:
parent
9d29d9f766
commit
ad009330f5
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue