diff options
author | Chris Robinson <[email protected]> | 2020-04-28 07:56:36 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-04-28 07:56:36 -0700 |
commit | b828cf81a912270bac99089d86a9d887832820c8 (patch) | |
tree | 886494cd7bdff3c3377110dd3a15ec9f9a00ee2a | |
parent | 5441fba419acc0cdd21bff96b37c03fbbf3e1eb9 (diff) |
Shorten the name of format types
-rw-r--r-- | al/buffer.cpp | 4 | ||||
-rw-r--r-- | alc/alc.cpp | 14 |
2 files changed, 9 insertions, 9 deletions
diff --git a/al/buffer.cpp b/al/buffer.cpp index 0292a066..19d3c841 100644 --- a/al/buffer.cpp +++ b/al/buffer.cpp @@ -391,8 +391,8 @@ const ALchar *NameFromUserFmtType(UserFmtType type) { switch(type) { - case UserFmtUByte: return "Unsigned Byte"; - case UserFmtShort: return "Signed Short"; + case UserFmtUByte: return "UInt8"; + case UserFmtShort: return "Int16"; case UserFmtFloat: return "Float32"; case UserFmtDouble: return "Float64"; case UserFmtMulaw: return "muLaw"; diff --git a/alc/alc.cpp b/alc/alc.cpp index dcca795f..ea977de7 100644 --- a/alc/alc.cpp +++ b/alc/alc.cpp @@ -1286,13 +1286,13 @@ const ALCchar *DevFmtTypeString(DevFmtType type) noexcept { switch(type) { - case DevFmtByte: return "Signed Byte"; - case DevFmtUByte: return "Unsigned Byte"; - case DevFmtShort: return "Signed Short"; - case DevFmtUShort: return "Unsigned Short"; - case DevFmtInt: return "Signed Int"; - case DevFmtUInt: return "Unsigned Int"; - case DevFmtFloat: return "Float"; + case DevFmtByte: return "Int8"; + case DevFmtUByte: return "UInt8"; + case DevFmtShort: return "Int16"; + case DevFmtUShort: return "UInt16"; + case DevFmtInt: return "Int32"; + case DevFmtUInt: return "UInt32"; + case DevFmtFloat: return "Float32"; } return "(unknown type)"; } |