aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alsa.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-09-21 02:14:32 -0700
committerChris Robinson <[email protected]>2009-09-21 02:14:32 -0700
commit2cbdffab86127635a865b063572db6a9a9f09b99 (patch)
tree8273641558516a6eb1cdabd12e27b358dbd5073e /Alc/alsa.c
parent86eefdb2a8ccc6171d15366dcb6c1a081d7592da (diff)
Create the ALSA capture ring buffer with the proper size
Diffstat (limited to 'Alc/alsa.c')
-rw-r--r--Alc/alsa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/alsa.c b/Alc/alsa.c
index 10d50a89..53177c13 100644
--- a/Alc/alsa.c
+++ b/Alc/alsa.c
@@ -672,7 +672,7 @@ open_alsa:
frameSize = aluChannelsFromFormat(pDevice->Format);
frameSize *= aluBytesFromFormat(pDevice->Format);
- data->ring = CreateRingBuffer(frameSize, bufferSizeInFrames);
+ data->ring = CreateRingBuffer(frameSize, pDevice->UpdateSize*pDevice->NumUpdates);
if(!data->ring)
{
AL_PRINT("ring buffer create failed\n");