Sierra Audio: Difference between revisions

From MultimediaWiki
Jump to navigation Jump to search
(external game links and container category)
(Remove misspelled category.)
Line 54: Line 54:
*  [http://www.mobygames.com/game/dos/torins-passage Torin's Passage]
*  [http://www.mobygames.com/game/dos/torins-passage Torin's Passage]


[[Category:Container Format]]
[[Category:Game Formats]]
[[Category:Game Formats]]

Revision as of 12:29, 20 February 2006

This page describes audio format and codecs used in different games by Sierra.

File Format

 Byte Value
 ----------------
 0    Header size
 1    Version
 2-5  String "SOL"
 6-7  Sample rate
 8    Flags
 9-10 Size

Flags are used to determine audio format and compression:

 0x01 DPCM
 0x04 Stereo
 0x10 16-bit

Working scheme to determine what decompressor to use:

 if(Version == 0x8D) {
   if(Flags & USE_DPCM)
     use old DPCM variant;
   else
     use 8-bit unsigned mono PCM;
 }
 if(Flags == USE_DPCM | USE_16BIT)
   use 8->16 bit DPCM;
 else if(Flags == USE_DPCM)
   use new DPCM variant;
 else if(Flags & USE_16BIT)
   use 16-bit mono or stereo PCM;
 else
   use 8-bit mono PCM;

Games Using This Format