aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-10-05 00:43:06 -0700
committerChris Robinson <[email protected]>2020-10-05 00:43:06 -0700
commite7a44d3b7063553fa54e743a4fac116d130fbe1d (patch)
tree65ff61b02a9b257af949249bcf53869f100104a4 /alc/backends
parent7361e108a3a4c0c59a3346274e82a2fe401d996e (diff)
Cast the ringbuffer size to the correct type
Diffstat (limited to 'alc/backends')
-rw-r--r--alc/backends/dsound.cpp2
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))