Z Sound List Format

From ModdingWiki
Jump to navigation Jump to search

Z uses text lists to associate sound numbers with sample files and playback settings.

File format

Each active entry is a whitespace-separated line with seven fields. Blank lines and lines beginning with # are comments.

Field Meaning
number Sound identifier
name RAW filename
priority Playback priority
M or S Mono or stereo
loop count Signed loop setting
frequency Sample rate in Hz
volume Playback volume

The viewer parser recognizes the filename, channel count, loop count, rate and volume. It does not retain the sound number or priority. Use the game sound loader for original scheduling behaviour.

Notes

The .LST extension is also used by AILDRVR.LST, which is a driver catalogue, not a sample list. A single RAW name may occur with different rates in different lists.

Source code

From re-z, the open-source browser port:

Credits

This file format was reverse engineered by VorticonCmdr. If you find this information helpful in a project you're working on, please give credit where credit is due. (A link back to this wiki would be nice too!)