diff options
author | Chris Robinson <[email protected]> | 2020-10-05 00:43:06 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-10-05 00:43:06 -0700 |
commit | e7a44d3b7063553fa54e743a4fac116d130fbe1d (patch) | |
tree | 65ff61b02a9b257af949249bcf53869f100104a4 | |
parent | 7361e108a3a4c0c59a3346274e82a2fe401d996e (diff) |
Cast the ringbuffer size to the correct type
-rw-r--r-- | alc/backends/dsound.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/backends/dsound.cpp b/alc/backends/dsound.cpp index 683b3b7b..9ff5505b 100644 --- a/alc/backends/dsound.cpp +++ b/alc/backends/dsound.cpp @@ -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)) |