fixed 16-bit PCM decoder.

This commit is contained in:
morkt 2015-11-07 14:07:04 +04:00
parent 6b8a402ce2
commit 4543d06841

View File

@ -252,7 +252,7 @@ namespace GameRes.Formats.Entis
} }
} }
int ptrSrcBuf = 0; // (SWORD*) m_ptrBuffer4; 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++) for (int i = 0; i < m_mioih.ChannelCount; i++)
{ {
int ptrDstBuf = wave_pos + i*sizeof(short); // (SWORD*) ptrWaveBuf; int ptrDstBuf = wave_pos + i*sizeof(short); // (SWORD*) ptrWaveBuf;