Electronic Arts 1SNx: Difference between revisions
Jump to navigation
Jump to search
Suxen drol (talk | contribs) (details) |
Suxen drol (talk | contribs) m (beautify) |
||
Line 10: | Line 10: | ||
The header chunk contains codec initialisation parameters. The byte-order varies for different platforms. | The header chunk contains codec initialisation parameters. The byte-order varies for different platforms. | ||
offset | offset type description | ||
0 | 0 byte Tag, 'EACS' | ||
4 | 4 int32 Sample rate (hz) | ||
8 | 8 byte number of bits (1=8-bit, 2=16-bit) | ||
9 | 9 byte number of channels | ||
10 | 10 byte compression type | ||
0 = Signed PCM (8-bit or 16-bit Little Endian) | 0 = Signed PCM (8-bit or 16-bit Little Endian) | ||
1 = 8-bit mu-Law | 1 = 8-bit mu-Law | ||
2 = EACS ADPCM (IMA ADPCM Variant) | 2 = EACS ADPCM (IMA ADPCM Variant) | ||
11 | 11 byte file type | ||
12 | 12 int32 number of samples | ||
16 | 16 int32 loop start | ||
20 | 20 int32 data start | ||
24 | 24 int32 unknown | ||
28 | 28 int32 unknown | ||
The remainder of the header chunk contains codec-specific data. | The remainder of the header chunk contains codec-specific data. |
Latest revision as of 19:28, 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 type description 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.