[ scummvm-Patches-3302317 ] Tools: Add KQ5 raw audio support to compress_sci

SourceForge.net noreply at sourceforge.net
Sun May 15 08:59:10 CEST 2011


Patches item #3302317, was opened at 2011-05-15 02:59
Message generated for change (Tracker Item Submitted) made by agf863
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418822&aid=3302317&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: agf (agf863)
Assigned to: Nobody/Anonymous (nobody)
Summary: Tools: Add KQ5 raw audio support to compress_sci

Initial Comment:
KQ5CD uses a raw audio resource file that isn't currently supported by compress_sci.

To implement this,
1. Recognize this file by it's size -- mine is from the (second?) King's Quest Collection
2. Get resource count, offsets, and sizes from AUDIO001.MAP (in the same directory as the audio file)
3. Use this information instead of header information to compress the audio resources and build the offset translation table
4. Adjust file position to account for padding of sounds to 2048 bytes

I also trivially modified detectData() to improve memory allocation consistency for the different resource types.

I assume there are other versions of this file for KQ5 with other sizes (I think there are versions for other languages on one of my collection CDs), and there may be other games that use raw audio. Once this patch is added it's easy to add support for other raw files, just recognizing each by it's size and using that to set parameters which are different from this KQ5 file (different MAP format or different sound sample format).

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

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




More information about the Scummvm-tracker mailing list