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:
Andrew Eikum 2011-10-12 15:10:12 -05:00 committed by Alexandre Julliard
parent 9d29d9f766
commit ad009330f5
1 changed files with 1 additions and 3 deletions

View File

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