aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends/dsound.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-09-13 14:29:25 -0700
committerChris Robinson <[email protected]>2019-09-13 14:29:25 -0700
commita250b6a98639571eedcaaf858d014d22eb008999 (patch)
tree66b20aa2015bab606dcb19381efc39edd7adbdc2 /alc/backends/dsound.cpp
parentfcd3bed0c0923ca2eff463e0e6cffc60e00f4a7d (diff)
Return unsigned values from the FromDevFmt functions
Diffstat (limited to 'alc/backends/dsound.cpp')
-rw-r--r--alc/backends/dsound.cpp4
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};