From cff95955e324e35ebe9f0c7eab59529c4d96c92b Mon Sep 17 00:00:00 2001 From: avolkov Date: Wed, 12 Feb 2003 01:41:03 +0000 Subject: [PATCH] Strtab sound-effect table format git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@733 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/doc/devel/strtab | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sc2/doc/devel/strtab b/sc2/doc/devel/strtab index a23c1f7b2..0d3af6eb9 100644 --- a/sc2/doc/devel/strtab +++ b/sc2/doc/devel/strtab @@ -1,7 +1,7 @@ This is the format for resources of type STRTAB. It contains a number of items of unspecified data (not necessarilly strings). This is used for game strings (extension .txt), colour tables (.ct), -and colour translation tables (.xlt). +colour translation tables (.xlt), and sound-effect tables (.snd) Everything is stored MSB first unless otherwise specified. @@ -37,3 +37,10 @@ For .ct files an item is as follows: The full palette contains 256 values, which are the original 32 values multiplied by 1 to 8. + +For .snd files an item is as follows: + N-2 Signed, 8-bit, 1 channel PCM samples of the sound + effect, where N = (length of string) + 2 Sampling frequency of the sound, *LSB first* + (the frequencies themselves seem to be remnants of + the DOS version)