From 4543d068418481f2389689f019e94fe427c1dc59 Mon Sep 17 00:00:00 2001 From: morkt Date: Sat, 7 Nov 2015 14:07:04 +0400 Subject: [PATCH] fixed 16-bit PCM decoder. --- ArcFormats/Entis/MioDecoder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArcFormats/Entis/MioDecoder.cs b/ArcFormats/Entis/MioDecoder.cs index 336ba883..cf4acb75 100644 --- a/ArcFormats/Entis/MioDecoder.cs +++ b/ArcFormats/Entis/MioDecoder.cs @@ -252,7 +252,7 @@ namespace GameRes.Formats.Entis } } int ptrSrcBuf = 0; // (SWORD*) m_ptrBuffer4; - int nStep = m_mioih.ChannelCount; + int nStep = m_mioih.ChannelCount*sizeof(short); for (int i = 0; i < m_mioih.ChannelCount; i++) { int ptrDstBuf = wave_pos + i*sizeof(short); // (SWORD*) ptrWaveBuf;