Opened 18 months ago
Closed 17 months ago
#14470 closed defect (fixed)
SCUMM: MANIAC (Amiga): Continuous looping sound when choosing first character
Reported by: | gabberhead | Owned by: | AndywinXp |
---|---|---|---|
Priority: | normal | Component: | Engine: SCUMM |
Version: | Keywords: | ||
Cc: | Game: | Maniac Mansion |
Description
right at the beginning, when choosing a first character, the sound continous loops and dont stop. testet with the amiga version and the daily builts from yesterday and today. perhaps other versions are affected as well.
with the stable 2.7.0 version, it works like it should.
Change History (9)
comment:1 by , 18 months ago
comment:2 by , 18 months ago
i tested the german dos v2 version. the dos version dont have this problem.
comment:3 by , 18 months ago
It seems to be a problem in the mod player (player_mod.cpp, line 180). That player is used in the Amiga version only.
comment:4 by , 18 months ago
Changing it like suggested (_mixpos += len;
) fixes the issue, but I wonder why it worked fine before and if there's a bit more to it
comment:5 by , 18 months ago
If you look at the code, you can see that the existing version will make the call to the callback function only for certain buffer lenghts (which are passed as an argument to the function from the common mixer coder). Only the incrementation of _mixpos will ensure that the callback is invoked ad proper intervals. My guess is that the mixer PR changed the buffer sizes, so that the bug is no longer disguised. But I am not the author of that mod player, so what do I know... :-)
comment:7 by , 17 months ago
Owner: | set to |
---|---|
Resolution: | → fixed |
Status: | new → pending |
Summary: | Maniac Mansion - amiga version - continous looping sound when choosing first character → SCUMM: MANIAC (Amiga): Continuous looping sound when choosing first character |
Could you please confirm that the issue is now fixed with the current daily?
Apparently, like Rootfather found out, this might be caused by a regression from one of these two commits:
https://github.com/scummvm/scummvm/commit/0f045a4ce4dbfe4e6a22c28a75127ae8af8e1b4c
https://github.com/scummvm/scummvm/commit/5ca776639f0ed18cc250b14edd5bf5ee95840bb0