Mercurial > mm7
diff AudioPlayer.cpp @ 2416:8b04ba723324
misstake in LoadSound
author | Ritor1 |
---|---|
date | Mon, 21 Jul 2014 17:37:03 +0600 |
parents | f4af3b203f65 |
children | 7948957d9178 90349b8048a5 |
line wrap: on
line diff
--- a/AudioPlayer.cpp Sun Jul 20 22:38:31 2014 +0600 +++ b/AudioPlayer.cpp Mon Jul 21 17:37:03 2014 +0600 @@ -2731,7 +2731,7 @@ pAudioPlayer->pSoundHeaders[uFindSound_BinSearch_ResultID].uCompressedSize = pAudioPlayer->pSoundHeaders[uFindSound_BinSearch_ResultID].uDecompressedSize; if ( pAudioPlayer->pSoundHeaders[uFindSound_BinSearch_ResultID].uDecompressedSize ) { - ReadFile(pAudioPlayer->hAudioSnd, pOutBuff->pData, pAudioPlayer->pSoundHeaders[uFindSound_BinSearch_ResultID].uDecompressedSize + 7, &NumberOfBytesRead, 0);// Ritor1: include +7 for pSounds[20] + ReadFile(pAudioPlayer->hAudioSnd, pOutBuff->pData, pAudioPlayer->pSoundHeaders[uFindSound_BinSearch_ResultID].uDecompressedSize, &NumberOfBytesRead, 0);// Ritor1: pSounds[20] } else {