From 2b919eac78cd6ebe07d6ca7cd01450e6f1aea75b Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 5 Dec 2020 02:44:19 -0800 Subject: Use an alias for the DevFmtType type --- core/devformat.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/devformat.h') diff --git a/core/devformat.h b/core/devformat.h index bcd42539..9577c4b7 100644 --- a/core/devformat.h +++ b/core/devformat.h @@ -76,6 +76,9 @@ struct DevFmtTypeTraits { using Type = uint32_t; }; template<> struct DevFmtTypeTraits { using Type = float; }; +template +using DevFmtType_t = typename DevFmtTypeTraits::Type; + uint BytesFromDevFmt(DevFmtType type) noexcept; uint ChannelsFromDevFmt(DevFmtChannels chans, uint ambiorder) noexcept; -- cgit v1.2.3