From f1e442408bb607e3ca337fc18cf1e52bf38680f0 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 26 May 2009 14:51:57 -0700 Subject: Set the correct data size --- Alc/alsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Alc/alsa.c') 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); -- cgit v1.2.3