From a250b6a98639571eedcaaf858d014d22eb008999 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 13 Sep 2019 14:29:25 -0700 Subject: Return unsigned values from the FromDevFmt functions --- alc/devformat.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'alc/devformat.h') diff --git a/alc/devformat.h b/alc/devformat.h index 95fe5fbd..674dd848 100644 --- a/alc/devformat.h +++ b/alc/devformat.h @@ -97,9 +97,9 @@ template<> struct DevFmtTypeTraits { using Type = ALfloat; }; -ALsizei BytesFromDevFmt(DevFmtType type) noexcept; -ALsizei ChannelsFromDevFmt(DevFmtChannels chans, ALsizei ambiorder) noexcept; -inline ALsizei FrameSizeFromDevFmt(DevFmtChannels chans, DevFmtType type, ALsizei ambiorder) noexcept +ALuint BytesFromDevFmt(DevFmtType type) noexcept; +ALuint ChannelsFromDevFmt(DevFmtChannels chans, ALsizei ambiorder) noexcept; +inline ALuint FrameSizeFromDevFmt(DevFmtChannels chans, DevFmtType type, ALsizei ambiorder) noexcept { return ChannelsFromDevFmt(chans, ambiorder) * BytesFromDevFmt(type); } enum class AmbiLayout { -- cgit v1.2.3