Opened 9 days ago

Last modified 9 days ago

#16584 pending defect (pending)

NANCY: nancy6+: Some sounds are too short

Reported by: flipkick Owned by: flipkick
Priority: normal Component: Engine: Nancy
Version: Keywords:
Cc: Game:

Description

This ticket is created from https://bugs.scummvm.org/ticket/15946 as it describes the separate sound issue.

In Nancy 6+ some sounds start partway through, so the first part is never heard. Example: https://bugs.scummvm.org/attachment/ticket/15946/dog-baldo-slow-differentsound.mp4

Change History (1)

comment:1 by flipkick, 9 days ago

Owner: set to flipkick
Resolution: pending
Status: newpending

I figured out that the ScummVM vorbis path cuts off part of the sound at the beginning. The decoder uses libvorbis which decodes from the stream's PCM start position. For some reason the nancy vorbis format sometimes has a PCM start position not at the beginning of the file. vorbis spec allows this. So, the decoder plays the sound starting from there and not from the actual beginning of the raw audio data. I analyzed the original nancy Game.exe code on how it handles the HIS files which contain the vorbis audio. It actually completely ignores the PCM data and always reads the audio data from raw position 0. That's why the ScummVM decoder cuts off a part of the beginning of many samples.

Note: See TracTickets for help on using tickets.