Module: wine Branch: master Commit: ad009330f5e88a6b439a38537899921a1b79172f URL: http://source.winehq.org/git/wine.git/?a=commit;h=ad009330f5e88a6b439a385378...
Author: Andrew Eikum aeikum@codeweavers.com Date: Wed Oct 12 15:10:12 2011 -0500
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 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/dlls/winecoreaudio.drv/mmdevdrv.c b/dlls/winecoreaudio.drv/mmdevdrv.c index 26c154f..4421967 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; }