Sample Count Marker

(Offset 1080 - 31 samples)

If the module has 31 samples, there will be four bytes at this postition
in the file with the following values:

46 4C 54 34
or 4D 2E ?? ?? (usually 4D 2E 4B 2E)

If you are creating your own module, it is usually safest to use the
"4D 2E 4B 2E" marker, as that is the one that most trackers support.

If the module has 15 samples, then these bytes will not be present, and
the information at this offset will be part of the "Pattern Details"
section.

Therefore, in order to determine whether a module as 15 or 31 samples,
you need only perform a seek to offset 1080 (decimal) and read the 4 bytes
there. If they match one of the sequences shown above, the module has 31
samples - if you seek past the end of the file or the bytes don't match,
the module has 15 samples.