From 2cbdffab86127635a865b063572db6a9a9f09b99 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 21 Sep 2009 02:14:32 -0700 Subject: Create the ALSA capture ring buffer with the proper size --- Alc/alsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- cgit v1.2.3