diff options
author | Chris Robinson <[email protected]> | 2009-09-21 02:14:32 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-09-21 02:14:32 -0700 |
commit | 2cbdffab86127635a865b063572db6a9a9f09b99 (patch) | |
tree | 8273641558516a6eb1cdabd12e27b358dbd5073e /Alc/alsa.c | |
parent | 86eefdb2a8ccc6171d15366dcb6c1a081d7592da (diff) |
Create the ALSA capture ring buffer with the proper size
Diffstat (limited to 'Alc/alsa.c')
-rw-r--r-- | Alc/alsa.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); |