[Scummvm-tracker] [ScummVM :: Bugs] #15369: SCUMM: MI (Sega MegaCD) - audio pops at the end of every SBL sound effect

ScummVM :: Bugs trac at scummvm.org
Thu Feb 20 08:25:36 UTC 2025


#15369: SCUMM: MI (Sega MegaCD) - audio pops at the end of every SBL sound effect
------------------------------+------------------------------
Reporter:  dwatteau           |       Owner:  (none)
    Type:  defect             |      Status:  new
Priority:  normal             |   Component:  Engine: SCUMM
 Version:                     |  Resolution:
Keywords:  segacd,sega,audio  |        Game:  Monkey Island 1
------------------------------+------------------------------
Comment (by eriktorbjorn):

 I just got my hand on an affordable loose CD of this.

 I think there's something funny going on here... Take the door opening
 sound as an example, since it happens so early in the game.

 The resource size is 4,534 bytes.

 The first four bytes is the "sound tag". In this case, it's `SBL `.

 The size of the SBL chunk is 4,526 bytes, which makes sense because we've
 read the first eight bytes to find this. But we ignore the first 27 bytes,
 and go directly to the VOC header. The VOC part of the resource is
 therefore assumed to be 4,499 bytes.

 This part of the resource is then unscrambled.

 The size of the VOC header is 6 bytes. The audio data begins after that,
 so there should be at most 4,493 bytes. But according to the VOC header
 there is 4,500 bytes.

 We get something similar for the door closing:

 The resource is 122 bytes. The SBL chunk is 114 bytes (8 bytes less), and
 the VOC part is assumed to be 27 bytes less than that so 87 bytes. But the
 VOC header then says the audio data is 88 bytes.
-- 
Ticket URL: <https://bugs.scummvm.org/ticket/15369#comment:3>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list