DSoundHelpers: use a constant in prefetch size comparison

This commit is contained in:
sukibaby
2025-06-10 21:06:48 -07:00
committed by teejusb
parent 8f2076eea1
commit 4d6ffc27da
+2 -1
View File
@@ -349,7 +349,8 @@ void DSoundBuf::CheckWriteahead( int iCursorStart, int iCursorEnd )
int iPrefetch = iCursorEnd - iCursorStart;
wrap( iPrefetch, m_iBufferSize );
if( iPrefetch >= 1024*32 )
constexpr int kMaxAllowedPrefetch = 1024 * 32; // 32 KB
if( iPrefetch >= kMaxAllowedPrefetch )
{
static bool bLogged = false;
if( bLogged )