From ad009330f5e88a6b439a38537899921a1b79172f Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Wed, 12 Oct 2011 15:10:12 -0500 Subject: [PATCH] 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. --- dlls/winecoreaudio.drv/mmdevdrv.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dlls/winecoreaudio.drv/mmdevdrv.c b/dlls/winecoreaudio.drv/mmdevdrv.c index 26c154fb932..44219672b81 100644 --- a/dlls/winecoreaudio.drv/mmdevdrv.c +++ b/dlls/winecoreaudio.drv/mmdevdrv.c @@ -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; }