diff options
author | Chris Robinson <[email protected]> | 2009-05-26 14:51:57 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-05-26 14:51:57 -0700 |
commit | f1e442408bb607e3ca337fc18cf1e52bf38680f0 (patch) | |
tree | 18dfbef3728d6111ab873e0bfd90b4c6b2b37cad /Alc/alsa.c | |
parent | a946af4463f439d9082380ef73a184e02c5d9053 (diff) |
Set the correct data size
Diffstat (limited to 'Alc/alsa.c')
-rw-r--r-- | Alc/alsa.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |