aboutsummaryrefslogtreecommitdiffstats
path: root/core/buffer_storage.h
diff options
context:
space:
mode:
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();
};