AMOS Samples Bank format

From ExoticA
Revision as of 12:33, 8 September 2018 by Kyz (talk | contribs) (Created page with "'''AMOS sample banks''' are created with the Sample Bank Editor shipped with AMOS. The samples can be played back with the Music extension. The format of the bank is as fo...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

AMOS sample banks are created with the Sample Bank Editor shipped with AMOS. The samples can be played back with the Music extension. The format of the bank is as follows:

Offset Length Description
0 20 bytes The regular bank header
20 2 bytes the number of samples in this bank (n)
22 n*4 bytes a list of offsets, each 4 bytes long, to each sample. The offset is relative to the location of the "number of samples" field above
22+n*4 ? bytes all samples, as pointed to by the offsets table. Each sample is individually sized and has this format:
Offset Length Description
0 8 bytes the name for the sample, in ASCII
8 2 bytes the frequency of the sample in hertz
10 4 bytes the length of the sample in bytes (n)
14 n bytes the sample data itself, a stream of twos complement signed 8-bit PCM samples