diff options
author | Paweł Kołodziejski | 2008-01-19 10:58:43 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2008-01-19 10:58:43 +0000 |
commit | f0e131c9c3f15add381047e6f85f486d88c6d0d1 (patch) | |
tree | 6fa64fb49a1dd3b5f16f68fd5ea5d32779e03336 /engines/scumm/imuse_digi | |
parent | a53a6cb9adbf24b0b9601b0cb60482c6d12e2ea7 (diff) | |
download | scummvm-rg350-f0e131c9c3f15add381047e6f85f486d88c6d0d1.tar.gz scummvm-rg350-f0e131c9c3f15add381047e6f85f486d88c6d0d1.tar.bz2 scummvm-rg350-f0e131c9c3f15add381047e6f85f486d88c6d0d1.zip |
fixed, it might overflow int32
svn-id: r30560
Diffstat (limited to 'engines/scumm/imuse_digi')
-rw-r--r-- | engines/scumm/imuse_digi/dimuse_sndmgr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/scumm/imuse_digi/dimuse_sndmgr.cpp b/engines/scumm/imuse_digi/dimuse_sndmgr.cpp index d34d27e456..4f91f8e01d 100644 --- a/engines/scumm/imuse_digi/dimuse_sndmgr.cpp +++ b/engines/scumm/imuse_digi/dimuse_sndmgr.cpp @@ -654,7 +654,7 @@ int32 ImuseDigiSndMgr::getDataFromRegion(SoundDesc *soundDesc, int region, byte *buf = new byte[size]; assert(*buf); char fileName[24]; - int offsetMs = ((offset * 8 * 1000) / soundDesc->bits) / (soundDesc->channels * soundDesc->freq); + int offsetMs = (((offset * 8 * 10) / soundDesc->bits) / (soundDesc->channels * soundDesc->freq)) * 100; sprintf(fileName, "%s_reg%03d", soundDesc->name, region); if (scumm_stricmp(fileName, soundDesc->lastFileName) != 0) { int32 offs = 0, len = 0; |