# C API: Constants

| Name | Value | Meaning |
|---|---|---|
| `SONA_VERSION_MAJOR`, `_MINOR`, `_PATCH` | 1, 1, 0 | The header's version |
| `SONA_ABI` | 1 | Bumped when a public struct changes shape. Pass it in `sona_config.abi` |
| `SONA_MANIFEST_BYTES` | 1000 | An AvatarDescription |
| `SONA_JOINTS` | 72 | Palette slots; the avatar rig animates 71 |
| `SONA_PALETTE_FLOATS` | 864 | 72 joints x 3 float4 |
| `SONA_CB_FLOATS` | 896 | The HQ constant buffer: projection 0..15, shadow 16..31, palette from 32 |
| `SONA_VERTEX_STRIDE` | 76 | The runtime vertex (see `sona_mesh`) |
| `SONA_MAX_SOURCES` | 4 | Sources in one config |
| `SONA_ID_CHARS` | 37 | An item id, `xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx`, plus NUL |
| `SONA_JOINT_COUNT` | 72 | joint slots; joints 0..70 have names and matrices |
| `SONA_QUEUE_MAX` | 8 | clips one avatar can have queued |
| `SONA_CLIP_EVENT_MAX` | 32 | clip events held per avatar |
| `SONA_MARK_MAX` | 16 | clip marks per avatar |
| `SONA_MSAA_AUTO` | 0 | 4 samples on a hardware GPU, 1 on a software rasteriser |

On Windows the library is a DLL: `SONA_API` is `dllimport` unless `SONA_STATIC` is defined. Elsewhere it marks default visibility.
