diff options
author | Chris Robinson <[email protected]> | 2019-09-13 14:29:25 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-09-13 14:29:25 -0700 |
commit | a250b6a98639571eedcaaf858d014d22eb008999 (patch) | |
tree | 66b20aa2015bab606dcb19381efc39edd7adbdc2 /alc/backends/dsound.cpp | |
parent | fcd3bed0c0923ca2eff463e0e6cffc60e00f4a7d (diff) |
Return unsigned values from the FromDevFmt functions
Diffstat (limited to 'alc/backends/dsound.cpp')
-rw-r--r-- | alc/backends/dsound.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/backends/dsound.cpp b/alc/backends/dsound.cpp index ad182cf7..1c44c2ec 100644 --- a/alc/backends/dsound.cpp +++ b/alc/backends/dsound.cpp @@ -219,7 +219,7 @@ FORCE_ALIGN int DSoundPlayback::mixerProc() return 1; } - ALsizei FrameSize{mDevice->frameSizeFromFmt()}; + ALuint FrameSize{mDevice->frameSizeFromFmt()}; DWORD FragSize{mDevice->UpdateSize * FrameSize}; bool Playing{false}; @@ -820,7 +820,7 @@ ALCuint DSoundCapture::availableSamples() if(!mDevice->Connected.load(std::memory_order_acquire)) return static_cast<ALCuint>(mRing->readSpace()); - ALsizei FrameSize{mDevice->frameSizeFromFmt()}; + ALuint FrameSize{mDevice->frameSizeFromFmt()}; DWORD BufferBytes{mBufferBytes}; DWORD LastCursor{mCursor}; |