mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 06:08:35 +00:00
Another fm towns sound fix from Hibernatus
svn-id: r10209
This commit is contained in:
parent
ac8e16cc2e
commit
e8f7f2a4e1
@ -350,6 +350,8 @@ void Sound::playSound(int soundID) {
|
||||
int waveSize = READ_LE_UINT32(ptr + 0x0C);
|
||||
int loopStart = READ_LE_UINT32(ptr + 0x10);
|
||||
int loopEnd = READ_LE_UINT32(ptr + 0x14);
|
||||
if (loopEnd < waveSize && loopEnd > 0)
|
||||
waveSize = loopEnd;
|
||||
// it's not exactly * 10, maybe it's not even linear, but * 10 sounds ok.
|
||||
rate = READ_LE_UINT32(ptr + 0x18) * 10;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user