diff options
author | Paweł Kołodziejski | 2004-02-14 10:52:08 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2004-02-14 10:52:08 +0000 |
commit | a690c17bb242694af59c073d4a48e359a06b8295 (patch) | |
tree | 8d7a6b0d0cb6fed9ca053985b962654093515dfc /scumm/imuse_digi | |
parent | d660faa2311b8fc82109da6434d8a9ca21953b7a (diff) | |
download | scummvm-rg350-a690c17bb242694af59c073d4a48e359a06b8295.tar.gz scummvm-rg350-a690c17bb242694af59c073d4a48e359a06b8295.tar.bz2 scummvm-rg350-a690c17bb242694af59c073d4a48e359a06b8295.zip |
fix for bug #896525, it align pull data and freq to 25 calls per sec.
svn-id: r12873
Diffstat (limited to 'scumm/imuse_digi')
-rw-r--r-- | scumm/imuse_digi/dimuse.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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) |