Electronic Arts 1SNx: Difference between revisions
Jump to navigation
Jump to search
m (it's stream, not a codec) |
Suxen drol (talk | contribs) (details) |
||
Line 8: | Line 8: | ||
=== 1SNh === | === 1SNh === | ||
The header chunk contains codec initialisation parameters. The byte-order varies for different platforms. | |||
offset | |||
0 byte Tag, 'EACS' | |||
4 int32 Sample rate (hz) | |||
8 byte number of bits (1=8-bit, 2=16-bit) | |||
9 byte number of channels | |||
10 byte compression type | |||
0 = Signed PCM (8-bit or 16-bit Little Endian) | |||
1 = 8-bit mu-Law | |||
2 = EACS ADPCM (IMA ADPCM Variant) | |||
11 byte file type | |||
12 int32 number of samples | |||
16 int32 loop start | |||
20 int32 data start | |||
24 int32 unknown | |||
28 int32 unknown | |||
The remainder of the header chunk contains codec-specific data. | |||
=== 1SNd === | === 1SNd === | ||
Contains the codec-specific data. | |||
=== 1SNl === | === 1SNl === | ||
Line 17: | Line 35: | ||
=== 1SNe === | === 1SNe === | ||
Indicates end of the stream. Contains no data. | |||
[[Category:Game Formats]] | [[Category:Game Formats]] |
Revision as of 19:26, 26 October 2007
- Company: Electronic Arts
- Samples: TBD.
1SNx is an audio stream format used in various games published by companies under the Electronic Arts umbrella.
Chunk Types
See Electronic Arts Formats for file format description.
1SNh
The header chunk contains codec initialisation parameters. The byte-order varies for different platforms.
offset
0 byte Tag, 'EACS' 4 int32 Sample rate (hz) 8 byte number of bits (1=8-bit, 2=16-bit) 9 byte number of channels 10 byte compression type 0 = Signed PCM (8-bit or 16-bit Little Endian) 1 = 8-bit mu-Law 2 = EACS ADPCM (IMA ADPCM Variant) 11 byte file type 12 int32 number of samples 16 int32 loop start 20 int32 data start 24 int32 unknown 28 int32 unknown
The remainder of the header chunk contains codec-specific data.
1SNd
Contains the codec-specific data.
1SNl
Loop.
1SNe
Indicates end of the stream. Contains no data.