diff options
author | Chris Robinson <[email protected]> | 2010-05-24 21:51:30 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-05-24 21:51:30 -0700 |
commit | 37190b2cafdec52a23034194a3e63d8d33bdc544 (patch) | |
tree | 99dada718dcb76d94223b62392f0181b5a3314ba /Alc/alsa.c | |
parent | c6b948323ebc8632e0b763f090cdcd19255d0ac2 (diff) |
Add a function to get the frame size from a format
Diffstat (limited to 'Alc/alsa.c')
-rw-r--r-- | Alc/alsa.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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) |