[ scummvm-Patches-1891606 ] Improved sound playback for Amiga SCUMM V2/V3 games

SourceForge.net noreply at sourceforge.net
Tue Feb 12 01:37:50 CET 2008


Patches item #1891606, was opened at 2008-02-11 18:37
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418822&aid=1891606&group_id=37116

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Quietust (quietust)
Assigned to: Nobody/Anonymous (nobody)
Summary: Improved sound playback for Amiga SCUMM V2/V3 games

Initial Comment:
The current sound code for Amiga SCUMM V2/V3 games (i.e. Maniac Mansion, Zak McKracken, Indiana Jones and the Last Crusade, and Loom) makes use of the RateConverter class to handle playing the various audio samples at custom sample rates. Unfortunately, said class is not capable of changing input frequency on the fly, so a hackish workaround had been used which involved deleting/recreating the rateconverter on each frequency switch (which caused significant degradation of sound quality, due to the 512-sample buffer being flushed every time).

This patch implements an unbuffered linear resampler for Amiga SCUMM V2/V3 audio, capable of dynamic frequency switching. Pitch-bending sound effects in Maniac Mansion and Zak McKracken sound much better as a result, and music in all 4 games seems to pop a bit less than it did before.

It should also use a bit less memory, though probably a bit more CPU time.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418822&aid=1891606&group_id=37116




More information about the Scummvm-tracker mailing list