aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alsa.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/alsa.c')
-rw-r--r--Alc/alsa.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Alc/alsa.c b/Alc/alsa.c
index eadafee8..4cf0a9c9 100644
--- a/Alc/alsa.c
+++ b/Alc/alsa.c
@@ -947,8 +947,7 @@ static ALCboolean alsa_open_capture(ALCdevice *pDevice, const ALCchar *deviceNam
psnd_pcm_hw_params_free(p);
- frameSize = aluChannelsFromFormat(pDevice->Format);
- frameSize *= aluBytesFromFormat(pDevice->Format);
+ frameSize = aluFrameSizeFromFormat(pDevice->Format);
data->ring = CreateRingBuffer(frameSize, pDevice->UpdateSize*pDevice->NumUpdates);
if(!data->ring)