aboutsummaryrefslogtreecommitdiffstats
path: root/core/buffer_storage.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-02-14 08:38:25 -0800
committerChris Robinson <[email protected]>2023-02-14 08:39:30 -0800
commit5c8855b9a1849af855923aa1b87005febd01704b (patch)
tree0100feb60ef3cd3bca241d330ff219af2b76ec4e /core/buffer_storage.h
parenta84efdc45936bcc4427af272b975c6a197081c22 (diff)
Support MSADPCM samples in the mixer
Diffstat (limited to 'core/buffer_storage.h')
-rw-r--r--core/buffer_storage.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/buffer_storage.h b/core/buffer_storage.h
index a4d1b289..b8d387a5 100644
--- a/core/buffer_storage.h
+++ b/core/buffer_storage.h
@@ -19,6 +19,7 @@ enum FmtType : unsigned char {
FmtMulaw,
FmtAlaw,
FmtIMA4,
+ FmtMSADPCM,
};
enum FmtChannels : unsigned char {
FmtMono,
@@ -98,6 +99,7 @@ struct BufferStorage {
inline uint blockSizeFromFmt() const noexcept
{
if(mType == FmtIMA4) return ((mBlockAlign-1)/2 + 4) * channelsFromFmt();
+ if(mType == FmtMSADPCM) return ((mBlockAlign-2)/2 + 7) * channelsFromFmt();
return frameSizeFromFmt();
};