From fe5b3f4fed727b6cf0e98a3454070a53ffcb2ee6 Mon Sep 17 00:00:00 2001
From: Chris Robinson <chris.kcat@gmail.com>
Date: Wed, 15 Nov 2023 00:52:57 -0800
Subject: Support 32-bit int sample storage

---
 core/buffer_storage.cpp | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'core/buffer_storage.cpp')

diff --git a/core/buffer_storage.cpp b/core/buffer_storage.cpp
index 98ca2c1b..6ffab124 100644
--- a/core/buffer_storage.cpp
+++ b/core/buffer_storage.cpp
@@ -12,6 +12,7 @@ const char *NameFromFormat(FmtType type) noexcept
     {
     case FmtUByte: return "UInt8";
     case FmtShort: return "Int16";
+    case FmtInt: return "Int32";
     case FmtFloat: return "Float";
     case FmtDouble: return "Double";
     case FmtMulaw: return "muLaw";
@@ -49,6 +50,7 @@ uint BytesFromFmt(FmtType type) noexcept
     {
     case FmtUByte: return sizeof(uint8_t);
     case FmtShort: return sizeof(int16_t);
+    case FmtInt: return sizeof(int32_t);
     case FmtFloat: return sizeof(float);
     case FmtDouble: return sizeof(double);
     case FmtMulaw: return sizeof(uint8_t);
-- 
cgit v1.2.3