aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Alc/oss.c2
1 files changed, 1 insertions, 1 deletions
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;