SOUND

From UFOpaedia
Jump to navigation Jump to search

This directory contains all the sound effects and music.

There are three different versions of UFO sound engine:

  • DOS, before 1.4 patch
  • DOS, after 1.4 patch
  • CE

Music files

Music for different soundcards is stored in following files:

  • DOS 1.2 - for some reason music for intro is stored in separate file
    • ADLIB.CAT, AINTRO.CAT - AdLib and Soundblaster
    • ROLAND.CAT, RINTRO.CAT - Roland
  • DOS 1.4
    • ADLIB.CAT
    • GM.CAT - General Midi
    • DRIVERS.CAT - not exactly music file. It contains various com files for different soundcards. The appropriate files are extracted by setup, and then wrapped in sndstart.exe/sndend.exe called from main bat file.
  • CE - these are just midi files, one for each music sequence

Sound files

The sound effects files are:

  • DOS 1.2
    • INTRO.CAT - intro
    • SOUND1.CAT - battlescape
    • SOUND2.CAT - geoscape
  • DOS 1.4
    • SAMPLE.CAT - geoscape
    • SAMPLE2.CAT - battlescape
    • SAMPLE3.CAT - intro
  • CE - uses same files as 1.4. However, no sound is played in intro, only music.

Differences between versions

The main difference versions is quality.

  • 1.2: 8000 Hz, 6 bit.
  • 1.4: 11025 Hz, 8 bit.
  • CE: same as 1.4, but it will play .wav files correctly with higher sampling rate hacked into game. - Is that what was intended to be said here? - Phoenix - The files in CE (and 1.4) contain actual waves with headers. CE does not have fixed quality setting, but uses data from those headers. - Quantifier

The other difference are completely new files. Patch leaves old files, but they are no longer used. Most effects sound the same, but some, especially alien death screams have been changed. - Actually there is an event table located at 45DC5C in the CE version which tell the program how to handle the sound event called. There are 6 values in this database. If the value is 01 or 06, the program will refer to the table at 478EC8 to see which sound from the CAT file to play. 02 is special and bugged: I think the programmers intended the value to disable sound for that event but instead passes 00 to the play subroutine which means it will play the snakeman slither.--Morgan525 03:56, 4 March 2012 (EST)