From f2875d5d13c1d37c0602d49e49699b4b0a48ddd5 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 12 Feb 2008 21:19:09 -0800 Subject: Read in chunks of the fragment size, not expected buffer size --- Alc/oss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Alc') diff --git a/Alc/oss.c b/Alc/oss.c index 91b7a517..a1efc18a 100644 --- a/Alc/oss.c +++ b/Alc/oss.c @@ -368,7 +368,7 @@ static ALCboolean oss_open_capture(ALCdevice *device, const ALCchar *deviceName, return ALC_FALSE; } - data->data_size = SampleSize * device->FrameSize * info.fragments; + data->data_size = info.fragsize; data->mix_data = calloc(1, data->data_size); device->ExtraData = data; -- cgit v1.2.3