Sample Details
(Offset 48)
There are 31 samples stored here. The following information is stored for
each sample:
┌─────┬─────┬─────────────────────────────────────────────────────────────┐
│ Pos │ Len │ Contents │
├─────┼─────┼─────────────────────────────────────────────────────────────┤
│ 0 │ 12 │ The instrument name. It should be nul terminated unless all │
│ │ │ 12 bytes are used. In songs, this name is used to find the │
│ │ │ file containing the sound data. │
│ 12 │ 1 │ The number 0. │
│ 13 │ 1 │ Then disk number on which the instrument can be found. │
│ 14 │ 2 │ Reserved. │
│ 16 │ 2 │ The length of the sample in bytes. │
│ 18 │ 2 │ The offset of the loop start if the sample should repeat. │
│ │ │ This should be set to 0 if the sample does not repeat. │
│ 20 │ 2 │ The offset of the loop end if the sample repeats. This │
│ │ │ should be set to FFFF (hex) if it does not repeat. │
│ 22 │ 1 │ The volume of the sample. │
│ 23 │ 1 │ Reserved. │
│ 24 │ 2 │ The speed for middle C in Hertz. This is usually 2100 hex. │
│ 26 │ 4 │ Reserved. │
│ 30 │ 2 │ Used internally. │
└─────┴─────┴─────────────────────────────────────────────────────────────┛
Note that the actual sampled sound data is stored in the fifth section at
the very end of the MOD file.