[Scummvm-devel] Release plans, once again

Torbjorn.E.Andersson at tietoenator.com Torbjorn.E.Andersson at tietoenator.com
Fri Aug 20 02:37:01 CEST 2004


Max Horn <max at quendi.de> wrote:

[on the subject of compressed sound and music]

> There are various FR items open for this. Again, patches are welcome, 
> but its not of high priorty. Doing this is rather difficult in many 
> cases because the sounds are interwoven with the rest of the data, so 
> compressing it separately is not possible.

In the case of Broken Sword, it should be comparatively simple. I'm a bit
vague on how Broken Sword 1 works, but I believe the SPEECH.CLU files hold
only the speech (uncompressed?) and nothing else. The music is even simpler:
Each piece is stored as a separate WAV file.

With Broken Sword 2, speech is stored in the SPEECH.CLU files and music in
the MUSIC.CLU files. They both use a very simple compression scheme that
stores each 16-bit sample except for the first one as an 8-bit value.
There's probably some fancy name for this that I'm not aware of.

I've written an extract-compress-reassemble tool for the BS2 sound files,
but it is of course completely untested.

Right now, both BS1 and BS2 use the setupPremix() function for streaming the
music. There was some talk about removing this function and replacing it
with a per-channel, but I don't know what the status of this is.

Torbjörn

-- 
TietoEnator Resource Management AB
Persona
Torbjörn Andersson
http://www.rm.tietoenator.com/
 




More information about the Scummvm-devel mailing list