Don't limit the available converted sample count to BUFFERSIZE

master
Chris Robinson 2020-11-25 04:20:16 -08:00
parent 28278a9c15
commit 3970252da9
1 changed files with 2 additions and 1 deletions

View File

@ -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)