aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alsa.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-05-26 14:51:57 -0700
committerChris Robinson <[email protected]>2009-05-26 14:51:57 -0700
commitf1e442408bb607e3ca337fc18cf1e52bf38680f0 (patch)
tree18dfbef3728d6111ab873e0bfd90b4c6b2b37cad /Alc/alsa.c
parenta946af4463f439d9082380ef73a184e02c5d9053 (diff)
Set the correct data size
Diffstat (limited to 'Alc/alsa.c')
-rw-r--r--Alc/alsa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/alsa.c b/Alc/alsa.c
index 5ca35fa3..9eaf3377 100644
--- a/Alc/alsa.c
+++ b/Alc/alsa.c
@@ -474,7 +474,7 @@ open_alsa:
psnd_pcm_sw_params_free(sp);
- data->size = psnd_pcm_frames_to_bytes(data->pcmHandle, device->UpdateSize);
+ data->size = psnd_pcm_frames_to_bytes(data->pcmHandle, bufferSizeInFrames);
if(access == SND_PCM_ACCESS_RW_INTERLEAVED)
{
data->buffer = malloc(data->size);