aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/winmm.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/winmm.c')
-rw-r--r--Alc/winmm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Alc/winmm.c b/Alc/winmm.c
index e2a4a7b9..5ecf471f 100644
--- a/Alc/winmm.c
+++ b/Alc/winmm.c
@@ -229,7 +229,8 @@ static ALCboolean WinMMOpenCapture(ALCdevice *pDevice, const ALCchar *deviceName
goto failure;
// Allocate circular memory buffer for the captured audio
- pData->ulCapturedDataSize = pDevice->BufferSize * wfexCaptureFormat.nBlockAlign;
+ pData->ulCapturedDataSize = pDevice->UpdateSize*pDevice->NumUpdates *
+ wfexCaptureFormat.nBlockAlign;
// Make sure circular buffer is at least 100ms in size (and an exact multiple of
// the block alignment