Set the correct data size

This commit is contained in:
Chris Robinson
2009-05-26 14:51:57 -07:00
parent a946af4463
commit f1e442408b
+1 -1
View File
@@ -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);