From 3970252da9d3148ea0b45990bb2476ee3b99fb0c Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 25 Nov 2020 04:20:16 -0800 Subject: Don't limit the available converted sample count to BUFFERSIZE --- alc/converter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/alc/converter.cpp b/alc/converter.cpp index 5d8c59ea..1eab59bb 100644 --- a/alc/converter.cpp +++ b/alc/converter.cpp @@ -218,7 +218,8 @@ ALuint SampleConverter::availableOut(ALuint srcframes) const DataSize64 -= mFracOffset; /* If we have a full prep, we can generate at least one sample. */ - return static_cast(clampu64((DataSize64 + mIncrement-1)/mIncrement, 1, BUFFERSIZE)); + return static_cast(clampu64((DataSize64 + mIncrement-1)/mIncrement, 1, + std::numeric_limits::max())); } ALuint SampleConverter::convert(const void **src, ALuint *srcframes, void *dst, ALuint dstframes) -- cgit v1.2.3