From acd8d60faaf00159e6c3cea76eed878df6fa6de7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rg=20H=C3=B6hle?= Date: Thu, 5 Jan 2012 18:17:31 +0100 Subject: [PATCH] mmdevapi: GetDevicePeriod returns constants. --- dlls/winecoreaudio.drv/mmdevdrv.c | 19 ++++--------------- dlls/wineoss.drv/mmdevdrv.c | 4 ---- 2 files changed, 4 insertions(+), 19 deletions(-) diff --git a/dlls/winecoreaudio.drv/mmdevdrv.c b/dlls/winecoreaudio.drv/mmdevdrv.c index a2c72dae13c..e5d2d876191 100644 --- a/dlls/winecoreaudio.drv/mmdevdrv.c +++ b/dlls/winecoreaudio.drv/mmdevdrv.c @@ -1396,21 +1396,10 @@ static HRESULT WINAPI AudioClient_GetDevicePeriod(IAudioClient *iface, if(!defperiod && !minperiod) return E_POINTER; - OSSpinLockLock(&This->lock); - - if(This->period_ms){ - if(defperiod) - *defperiod = This->period_ms * 10000; - if(minperiod) - *minperiod = This->period_ms * 10000; - }else{ - if(defperiod) - *defperiod = DefaultPeriod; - if(minperiod) - *minperiod = MinimumPeriod; - } - - OSSpinLockUnlock(&This->lock); + if(defperiod) + *defperiod = DefaultPeriod; + if(minperiod) + *minperiod = MinimumPeriod; return S_OK; } diff --git a/dlls/wineoss.drv/mmdevdrv.c b/dlls/wineoss.drv/mmdevdrv.c index e80385ce80d..304a5e1b2c8 100644 --- a/dlls/wineoss.drv/mmdevdrv.c +++ b/dlls/wineoss.drv/mmdevdrv.c @@ -1261,15 +1261,11 @@ static HRESULT WINAPI AudioClient_GetDevicePeriod(IAudioClient *iface, if(!defperiod && !minperiod) return E_POINTER; - EnterCriticalSection(&This->lock); - if(defperiod) *defperiod = DefaultPeriod; if(minperiod) *minperiod = MinimumPeriod; - LeaveCriticalSection(&This->lock); - return S_OK; } -- 2.11.4.GIT