aboutsummaryrefslogtreecommitdiffstats
path: root/alc/converter.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-11-25 04:20:16 -0800
committerChris Robinson <[email protected]>2020-11-25 04:20:16 -0800
commit3970252da9d3148ea0b45990bb2476ee3b99fb0c (patch)
tree269a88e1f5bcff1a0f85ce80acb2897fabdf356e /alc/converter.cpp
parent28278a9c1545af18965a75ed6a1f6ec3e2a64d03 (diff)
Don't limit the available converted sample count to BUFFERSIZE
Diffstat (limited to 'alc/converter.cpp')
-rw-r--r--alc/converter.cpp3
1 files changed, 2 insertions, 1 deletions
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<ALuint>(clampu64((DataSize64 + mIncrement-1)/mIncrement, 1, BUFFERSIZE));
+ return static_cast<ALuint>(clampu64((DataSize64 + mIncrement-1)/mIncrement, 1,
+ std::numeric_limits<int>::max()));
}
ALuint SampleConverter::convert(const void **src, ALuint *srcframes, void *dst, ALuint dstframes)