aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/portaudio.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-05-24 21:51:30 -0700
committerChris Robinson <[email protected]>2010-05-24 21:51:30 -0700
commit37190b2cafdec52a23034194a3e63d8d33bdc544 (patch)
tree99dada718dcb76d94223b62392f0181b5a3314ba /Alc/portaudio.c
parentc6b948323ebc8632e0b763f090cdcd19255d0ac2 (diff)
Add a function to get the frame size from a format
Diffstat (limited to 'Alc/portaudio.c')
-rw-r--r--Alc/portaudio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Alc/portaudio.c b/Alc/portaudio.c
index a06aa4dc..e54abec7 100644
--- a/Alc/portaudio.c
+++ b/Alc/portaudio.c
@@ -316,8 +316,7 @@ static ALCboolean pa_open_capture(ALCdevice *device, const ALCchar *deviceName)
return ALC_FALSE;
}
- frame_size = aluChannelsFromFormat(device->Format) *
- aluBytesFromFormat(device->Format);
+ frame_size = aluFrameSizeFromFormat(device->Format);
data->ring = CreateRingBuffer(frame_size, device->UpdateSize*device->NumUpdates);
if(data->ring == NULL)
{