diff options
author | Chris Robinson <[email protected]> | 2023-02-14 08:38:25 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-02-14 08:39:30 -0800 |
commit | 5c8855b9a1849af855923aa1b87005febd01704b (patch) | |
tree | 0100feb60ef3cd3bca241d330ff219af2b76ec4e /core/buffer_storage.h | |
parent | a84efdc45936bcc4427af272b975c6a197081c22 (diff) |
Support MSADPCM samples in the mixer
Diffstat (limited to 'core/buffer_storage.h')
-rw-r--r-- | core/buffer_storage.h | 2 |
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(); }; |