Electronic Arts 1SNx: Difference between revisions

From MultimediaWiki
Jump to navigation Jump to search
(details)
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   byte    Tag, 'EACS'
   0     byte    Tag, 'EACS'
   4   int32    Sample rate (hz)
   4     int32    Sample rate (hz)
   8   byte    number of bits (1=8-bit, 2=16-bit)
   8     byte    number of bits (1=8-bit, 2=16-bit)
   9   byte    number of channels
   9     byte    number of channels
   10 byte    compression type
   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 byte    file type
   11   byte    file type
   12 int32    number of samples
   12   int32    number of samples
   16 int32    loop start
   16   int32    loop start
   20 int32    data start
   20   int32    data start
   24 int32    unknown
   24   int32    unknown
   28 int32    unknown
   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

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.