summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);