diff options
Diffstat (limited to 'alc/backends')
-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)) |