Packet 24 wire layout
The first byte is the application packet ID. The rows after it appear in decode order. Sizes exclude ENet headers, the outer wrapper prefix, LZF chunk framing, and compression effects.
| # | Field | Encoding | Bytes | Purpose |
|---|---|---|---|---|
| 0 | packet_id | u8 | 1 | Always 24 (0x18). |
| 1 | name | NUL-terminated UTF-8 string | N + 1 | Null-terminated UTF-8/ASCII-compatible string. |
| 2 | flags | u8 | 1 | Bit 0 looping; bit 1 positioned. |
| 3 | volume | sign-magnitude fixed16 LE (1/64) | 2 | volume value. |
| 4 | time | sign-magnitude fixed16 LE (1/64) | 2 | time value. |
| 5 | loop_id | u8 | 1 | loop id value.When: looping flag set |
| 6 | position | 3 × fixed16 LE | 6 | X, Y, and Z components at 1/64-unit precision.When: positioned flag set |
| 7 | attenuation | sign-magnitude fixed16 LE (1/64) | 2 | attenuation value.When: positioned flag set |
Protocol convention
How to read this layout
LEmeans least-significant byte first.fixed16is two-byte sign-magnitude at 1/64 precision.orientation16uses the measured 1/8192 orientation mapping.- NUL strings consume their encoded byte length plus one
00terminator. - Counted arrays repeat immediately in the order shown.