Cast the ringbuffer size to the correct type

This commit is contained in:
Chris Robinson
2020-10-05 00:43:06 -07:00
parent 7361e108a3
commit e7a44d3b70
+1 -1
View File
@@ -757,7 +757,7 @@ ALCuint DSoundCapture::availableSamples()
if(SUCCEEDED(hr))
{
const DWORD NumBytes{(BufferBytes+ReadCursor-LastCursor) % BufferBytes};
if(!NumBytes) return static_cast<ALCubyte>(mRing->readSpace());
if(!NumBytes) return static_cast<ALCuint>(mRing->readSpace());
hr = mDSCbuffer->Lock(LastCursor, NumBytes, &ReadPtr1, &ReadCnt1, &ReadPtr2, &ReadCnt2, 0);
}
if(SUCCEEDED(hr))