From a690c17bb242694af59c073d4a48e359a06b8295 Mon Sep 17 00:00:00 2001 From: Paweł Kołodziejski Date: Sat, 14 Feb 2004 10:52:08 +0000 Subject: fix for bug #896525, it align pull data and freq to 25 calls per sec. svn-id: r12873 --- scumm/imuse_digi/dimuse.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scumm') diff --git a/scumm/imuse_digi/dimuse.cpp b/scumm/imuse_digi/dimuse.cpp index a5476af134..ee1e23669a 100644 --- a/scumm/imuse_digi/dimuse.cpp +++ b/scumm/imuse_digi/dimuse.cpp @@ -296,6 +296,9 @@ void IMuseDigital::startSound(int soundId, const char *soundName, int soundType, assert(channels == 1 || channels == 2); assert(0 < freq && freq <= 65535); + freq /= 25; + freq *= 25; + _track[l].iteration = _track[l].pullSize = freq * channels; if (channels == 2) -- cgit v1.2.3