The stock layout is the format name, the next-object offset (from version 63),
and the sized audio payload.
Harry Potter 2 (version 79, licensee 0) extends the header with duration,
sample format and optional lip-sync data. This reader does not parse the
lip-sync payload itself; its location within the package is indicated by the
three lip_sync_* fields, and lip_sync_data is always null.
Clive Barker's Undying (versions 79 to 85, licensee 0) has its own extension:
a run of dwords before the offset, whose count grows with the version. Of the
dwords only two are understood: duration and data_size. The rest hold 0
or 1 and are kept in unknown, in file order, with the version-85 trailing
dword appended.
Undying and Harry Potter 2 share version 79 and licensee 0 and are told apart
by the bytes: Harry Potter has six dwords before the end-of-audio offset and
Undying five.
byte_rate is size / duration, or null when duration is zero.
The three layouts of a sound.
The stock layout is the format name, the next-object offset (from version 63), and the sized audio payload.
Harry Potter 2 (version 79, licensee 0) extends the header with duration, sample format and optional lip-sync data. This reader does not parse the lip-sync payload itself; its location within the package is indicated by the three
lip_sync_*fields, andlip_sync_datais always null.Clive Barker's Undying (versions 79 to 85, licensee 0) has its own extension: a run of dwords before the offset, whose count grows with the version. Of the dwords only two are understood:
durationanddata_size. The rest hold 0 or 1 and are kept inunknown, in file order, with the version-85 trailing dword appended.Undying and Harry Potter 2 share version 79 and licensee 0 and are told apart by the bytes: Harry Potter has six dwords before the end-of-audio offset and Undying five.
byte_rateissize / duration, or null whendurationis zero.