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/devformat.h | |
parent | fcd3bed0c0923ca2eff463e0e6cffc60e00f4a7d (diff) |
Return unsigned values from the FromDevFmt functions
Diffstat (limited to 'alc/devformat.h')
-rw-r--r-- | alc/devformat.h | 6 |
1 files changed, 3 insertions, 3 deletions
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<DevFmtFloat> { 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 { |