{
 "name": "360sona native SDK",
 "version": "1.1.0",
 "abi": 1,
 "credit": "Powered by 360sona, https://360sona.com",
 "reference": "https://360sona.com/devs/docs/reference.html",
 "functions": [
  {
   "name": "sona_result_name",
   "header": "sona.h",
   "section": "3.1 results",
   "signature": "const char * sona_result_name(sona_result r);",
   "returns": "const char *",
   "params": [
    {
     "name": "r",
     "type": "sona_result"
    }
   ],
   "comment": "The name of a code (\"licence\", \"gate\", ...): the same words as the web SDK's SonaError.code.",
   "doc": "The name of a code (`\"licence\"`, `\"gate\"`, ...): the same words as the web SDK's `SonaError.code`.",
   "page": "Results and errors",
   "anchor": "https://360sona.com/devs/docs/reference/c/results-and-errors.html#sona_result_name"
  },
  {
   "name": "sona_http_done",
   "header": "sona.h",
   "section": "3.4 HTTP: supplied by the platform layer or by the host",
   "signature": "void sona_http_done(sona_http_reply *reply, int status, const void *body, size_t len);",
   "returns": "void",
   "params": [
    {
     "name": "reply",
     "type": "sona_http_reply *"
    },
    {
     "name": "status",
     "type": "int"
    },
    {
     "name": "body",
     "type": "const void *"
    },
    {
     "name": "len",
     "type": "size_t"
    }
   ],
   "comment": "status: the HTTP status, or 0 when the request could not be made. The body is copied. Call it exactly once per reply; the reply stays valid until then, even after sona_close.",
   "doc": "Finishes one HTTP request. `status` is the HTTP status, or 0 when the request could not be made. The body is copied. Call it exactly once per reply; the reply stays valid until then, even after `sona_close`. May be called from any thread.",
   "page": "HTTP",
   "anchor": "https://360sona.com/devs/docs/reference/c/http.html#sona_http_done"
  },
  {
   "name": "sona_http_platform",
   "header": "sona.h",
   "section": "3.4 HTTP: supplied by the platform layer or by the host",
   "signature": "const sona_http * sona_http_platform(void);",
   "returns": "const sona_http *",
   "params": [],
   "comment": "The platform's layer: WinHTTP, libcurl (loaded at run time) or NSURLSession. NULL where there is none (Xbox 360, WASM, Linux without libcurl): the host must pass its own. A host-supplied layer sees every URL, header and answer in clear.",
   "doc": "The platform's own layer: WinHTTP on Windows, libcurl loaded at run time on Linux, NSURLSession on Apple platforms. NULL where there is none (Xbox 360, WASM, Linux without libcurl): the host must then pass its own in `sona_config.http`.",
   "page": "HTTP",
   "anchor": "https://360sona.com/devs/docs/reference/c/http.html#sona_http_platform"
  },
  {
   "name": "sona_complete",
   "header": "sona.h",
   "section": "3.5 asset sources",
   "signature": "void sona_complete(sona_request *req, sona_result status, const void *bytes, size_t len);",
   "returns": "void",
   "params": [
    {
     "name": "req",
     "type": "sona_request *"
    },
    {
     "name": "status",
     "type": "sona_result"
    },
    {
     "name": "bytes",
     "type": "const void *"
    },
    {
     "name": "len",
     "type": "size_t"
    }
   ],
   "comment": "Exactly once per read, also after cancel. The request stays valid until then.",
   "doc": "Finishes one read, exactly once, also after `cancel`; the request stays valid until then. `status` is one of:\n\n- `SONA_OK` with the bytes, which the core copies;\n- `SONA_E_NOT_FOUND` when the source has no such asset: the next source in the chain is asked;\n- `SONA_E_IO` when it failed: the read is retried later, as the web retries.\n\nMay be called from any thread.",
   "page": "Asset sources",
   "anchor": "https://360sona.com/devs/docs/reference/c/asset-sources.html#sona_complete"
  },
  {
   "name": "sona_config_defaults",
   "header": "sona.h",
   "section": "3.6 the context",
   "signature": "void sona_config_defaults(sona_config *cfg);",
   "returns": "void",
   "params": [
    {
     "name": "cfg",
     "type": "sona_config *"
    }
   ],
   "comment": "abi set, everything else default",
   "doc": "Sets `abi` and leaves everything else at its default.",
   "page": "The context",
   "anchor": "https://360sona.com/devs/docs/reference/c/the-context.html#sona_config_defaults"
  },
  {
   "name": "sona_open",
   "header": "sona.h",
   "section": "3.6 the context",
   "signature": "sona_result sona_open(const sona_config *cfg, sona_ctx **out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "cfg",
     "type": "const sona_config *"
    },
    {
     "name": "out",
     "type": "sona_ctx **"
    }
   ],
   "comment": "Opens a context. The licence file is checked at once. The native check runs in the background and gate reads wait for it. A failed check arrives as a SONA_EVENT_ERROR and turns the gate source off.",
   "doc": "Opens a context. The licence file is checked at once: its signature, its app and build against the ones stamped into this library, and this library's platform in its list. A failure is `SONA_E_LICENCE` or `SONA_E_PLATFORM`, and no source opens.\n\nThe native check with 360sona runs in the background, and gate reads wait for it. A failed check arrives as a `SONA_EVENT_ERROR` and turns the gate source off; a passed one as `SONA_EVENT_LICENCE_OK`. Over the daily use (`SONA_E_LIMIT`), the gate source stays off until the next UTC day. Local sources (dir and console) need only the licence file, work offline and are never counted: only reads that reach the gate count toward its caps (3,000 distinct items and 20,000 answers per ctx). If no source can give the avatar rig (`avatar-rig.json`), the ctx raises one `SONA_EVENT_ERROR` with `SONA_E_GATE` and its avatars fail with the same code.",
   "page": "The context",
   "anchor": "https://360sona.com/devs/docs/reference/c/the-context.html#sona_open"
  },
  {
   "name": "sona_close",
   "header": "sona.h",
   "section": "3.6 the context",
   "signature": "void sona_close(sona_ctx *ctx);",
   "returns": "void",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    }
   ],
   "comment": "",
   "doc": "Closes a context. It calls `cancel` on every read in flight, then each source's `destroy`, and frees everything else. Reads still open are freed by their own completion, whose result is dropped.",
   "page": "The context",
   "anchor": "https://360sona.com/devs/docs/reference/c/the-context.html#sona_close"
  },
  {
   "name": "sona_last_error",
   "header": "sona.h",
   "section": "3.6 the context",
   "signature": "sona_error_info sona_last_error(const sona_ctx *ctx);",
   "returns": "sona_error_info",
   "params": [
    {
     "name": "ctx",
     "type": "const sona_ctx *"
    }
   ],
   "comment": "",
   "doc": "The last error on a ctx. Its strings live until the next error.",
   "page": "Results and errors",
   "anchor": "https://360sona.com/devs/docs/reference/c/results-and-errors.html#sona_last_error"
  },
  {
   "name": "sona_app_id",
   "header": "sona.h",
   "section": "3.6 the context",
   "signature": "const char * sona_app_id(const sona_ctx *ctx);",
   "returns": "const char *",
   "params": [
    {
     "name": "ctx",
     "type": "const sona_ctx *"
    }
   ],
   "comment": "",
   "doc": "The app id this context runs as.",
   "page": "The context",
   "anchor": "https://360sona.com/devs/docs/reference/c/the-context.html#sona_app_id"
  },
  {
   "name": "sona_version",
   "header": "sona.h",
   "section": "3.6 the context",
   "signature": "const char * sona_version(void);",
   "returns": "const char *",
   "params": [],
   "comment": "\"1.1.0\"",
   "doc": "The library's version, `\"1.1.0\"`.",
   "page": "The context",
   "anchor": "https://360sona.com/devs/docs/reference/c/the-context.html#sona_version"
  },
  {
   "name": "sona_platform",
   "header": "sona.h",
   "section": "3.6 the context",
   "signature": "const char * sona_platform(void);",
   "returns": "const char *",
   "params": [],
   "comment": "The binary platform id compiled into this library: \"windows-x64\", \"linux-x64\", \"linux-arm64\", \"macos-arm64\", \"macos-x64\", \"ios-arm64\", \"android-arm64\", \"android-x64\", \"xbox360\", or \"wasm\". The licence file lists these ids.",
   "doc": "The binary platform id compiled into this library: `\"windows-x64\"`, `\"linux-x64\"`, `\"linux-arm64\"`, `\"macos-arm64\"`, `\"macos-x64\"`, `\"ios-arm64\"`, `\"android-arm64\"`, `\"android-x64\"`, `\"xbox360\"` or `\"wasm\"`. The licence file lists these ids. They are not the download names (`macos`, `unity`, ...): one download can hold several.",
   "page": "The context",
   "anchor": "https://360sona.com/devs/docs/reference/c/the-context.html#sona_platform"
  },
  {
   "name": "sona_struct_size",
   "header": "sona.h",
   "section": "3.6 the context",
   "signature": "uint32_t sona_struct_size(const char *name);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "name",
     "type": "const char *"
    }
   ],
   "comment": "sizeof a public struct by its name (\"sona_config\", \"sona_pose_data\", ...); 0 if unknown.",
   "doc": "`sizeof` a public struct by its name (`\"sona_config\"`, `\"sona_pose_data\"`, ...); 0 if unknown.",
   "page": "The context",
   "anchor": "https://360sona.com/devs/docs/reference/c/the-context.html#sona_struct_size"
  },
  {
   "name": "sona_struct_offset",
   "header": "sona.h",
   "section": "3.6 the context",
   "signature": "uint32_t sona_struct_offset(const char *struct_dot_field);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "struct_dot_field",
     "type": "const char *"
    }
   ],
   "comment": "offsetof a field: \"sona_manifest.xuid\", \"sona_device_desc.u.vk.queue_family\"; UINT32_MAX if unknown. Bindings check the size of every struct and the offset of every field they mirror when they load.",
   "doc": "`offsetof` a field, by `\"struct.field\"`: `\"sona_manifest.xuid\"`, `\"sona_device_desc.u.vk.queue_family\"`; `UINT32_MAX` if unknown. Bindings check the size of every struct and the offset of every field they mirror when they load, and refuse to run on a mismatch.",
   "page": "The context",
   "anchor": "https://360sona.com/devs/docs/reference/c/the-context.html#sona_struct_offset"
  },
  {
   "name": "sona_abi_query",
   "header": "sona.h",
   "section": "3.6 the context",
   "signature": "sona_result sona_abi_query(sona_abi_info *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "out",
     "type": "sona_abi_info *"
    }
   ],
   "comment": "",
   "doc": "The ABI of the library that is loaded, for hosts and bindings that load it at run time: `abi` is its `SONA_ABI`, `oldest_abi` the oldest `SONA_ABI` a caller may be built against and still load it (nothing breaks for two minor versions), and its version as numbers. Set `out->size` first.",
   "page": "The context",
   "anchor": "https://360sona.com/devs/docs/reference/c/the-context.html#sona_abi_query"
  },
  {
   "name": "sona_poll_event",
   "header": "sona.h",
   "section": "3.7 events",
   "signature": "int sona_poll_event(sona_ctx *ctx, sona_event *out);",
   "returns": "int",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "out",
     "type": "sona_event *"
    }
   ],
   "comment": "1 when an event was written to *out, 0 when there are none.",
   "doc": "1 when an event was written to `*out`, 0 when there are none. Call it in a loop after `sona_update`.",
   "page": "Events",
   "anchor": "https://360sona.com/devs/docs/reference/c/events.html#sona_poll_event"
  },
  {
   "name": "sona_add_defaults",
   "header": "sona.h",
   "section": "3.8 avatars",
   "signature": "void sona_add_defaults(sona_add_options *o);",
   "returns": "void",
   "params": [
    {
     "name": "o",
     "type": "sona_add_options *"
    }
   ],
   "comment": "",
   "doc": "Fills `*o` with the defaults above.",
   "page": "Avatars",
   "anchor": "https://360sona.com/devs/docs/reference/c/avatars.html#sona_add_defaults"
  },
  {
   "name": "sona_avatar_add",
   "header": "sona.h",
   "section": "3.8 avatars",
   "signature": "sona_result sona_avatar_add(sona_ctx *ctx, const uint8_t manifest[SONA_MANIFEST_BYTES], const sona_add_options *opts, sona_avatar **out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "manifest",
     "type": "const uint8_t [SONA_MANIFEST_BYTES]"
    },
    {
     "name": "opts",
     "type": "const sona_add_options *"
    },
    {
     "name": "out",
     "type": "sona_avatar **"
    }
   ],
   "comment": "Queues an avatar and returns at once. A bad manifest does not fail here: the avatar moves to FAILED with SONA_E_MANIFEST, as the web's add() never throws for one. It fails at once only with SONA_E_LIMIT (max_avatars) or SONA_E_ARGUMENT.",
   "doc": "Queues an avatar and returns at once. A bad manifest does not fail here: the avatar moves to `FAILED` with `SONA_E_MANIFEST`, as the web's `add()` never throws for one. It fails at once only with `SONA_E_LIMIT` (over `max_avatars`) or `SONA_E_ARGUMENT`.",
   "page": "Avatars",
   "anchor": "https://360sona.com/devs/docs/reference/c/avatars.html#sona_avatar_add"
  },
  {
   "name": "sona_avatar_add_base64",
   "header": "sona.h",
   "section": "3.8 avatars",
   "signature": "sona_result sona_avatar_add_base64(sona_ctx *ctx, const char *b64, const sona_add_options *opts, sona_avatar **out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "b64",
     "type": "const char *"
    },
    {
     "name": "opts",
     "type": "const sona_add_options *"
    },
    {
     "name": "out",
     "type": "sona_avatar **"
    }
   ],
   "comment": "The same from base64 text (at most 4096 characters, as the web).",
   "doc": "The same, from base64 text of at most 4096 characters, as the web.",
   "page": "Avatars",
   "anchor": "https://360sona.com/devs/docs/reference/c/avatars.html#sona_avatar_add_base64"
  },
  {
   "name": "sona_avatar_state_of",
   "header": "sona.h",
   "section": "3.8 avatars",
   "signature": "sona_avatar_state sona_avatar_state_of(const sona_avatar *a);",
   "returns": "sona_avatar_state",
   "params": [
    {
     "name": "a",
     "type": "const sona_avatar *"
    }
   ],
   "comment": "",
   "doc": "The avatar's state.",
   "page": "Avatars",
   "anchor": "https://360sona.com/devs/docs/reference/c/avatars.html#sona_avatar_state_of"
  },
  {
   "name": "sona_avatar_id",
   "header": "sona.h",
   "section": "3.8 avatars",
   "signature": "uint32_t sona_avatar_id(const sona_avatar *a);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "a",
     "type": "const sona_avatar *"
    }
   ],
   "comment": "unique within the ctx",
   "doc": "A number unique within the ctx.",
   "page": "Avatars",
   "anchor": "https://360sona.com/devs/docs/reference/c/avatars.html#sona_avatar_id"
  },
  {
   "name": "sona_avatar_play",
   "header": "sona.h",
   "section": "3.8 avatars",
   "signature": "sona_result sona_avatar_play(sona_avatar *a, const char *clip, const sona_play_options *opts);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "clip",
     "type": "const char *"
    },
    {
     "name": "opts",
     "type": "const sona_play_options *"
    }
   ],
   "comment": "Called before READY it is remembered and applied when the avatar appears. NULL opts: defaults.",
   "doc": "Plays a clip. Called before `READY`, it is remembered and applied when the avatar appears. NULL `opts` takes the defaults. Since 1.1 it also clears the clip queue, and returns `SONA_E_ARGUMENT` for an item preview.",
   "page": "Avatars",
   "anchor": "https://360sona.com/devs/docs/reference/c/avatars.html#sona_avatar_play"
  },
  {
   "name": "sona_avatar_stop",
   "header": "sona.h",
   "section": "3.8 avatars",
   "signature": "void sona_avatar_stop(sona_avatar *a);",
   "returns": "void",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    }
   ],
   "comment": "hold the current pose",
   "doc": "Holds the current pose.",
   "page": "Avatars",
   "anchor": "https://360sona.com/devs/docs/reference/c/avatars.html#sona_avatar_stop"
  },
  {
   "name": "sona_avatar_move",
   "header": "sona.h",
   "section": "3.8 avatars",
   "signature": "void sona_avatar_move(sona_avatar *a, const sona_placement *to, float over_seconds);",
   "returns": "void",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "to",
     "type": "const sona_placement *"
    },
    {
     "name": "over_seconds",
     "type": "float"
    }
   ],
   "comment": "",
   "doc": "Moves the avatar to a new placement over `over_seconds`.",
   "page": "Avatars",
   "anchor": "https://360sona.com/devs/docs/reference/c/avatars.html#sona_avatar_move"
  },
  {
   "name": "sona_avatar_set_visible",
   "header": "sona.h",
   "section": "3.8 avatars",
   "signature": "void sona_avatar_set_visible(sona_avatar *a, int visible);",
   "returns": "void",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "visible",
     "type": "int"
    }
   ],
   "comment": "",
   "doc": "Shows or hides it. A hidden avatar is not drawn. It does nothing to an item preview, which `sona_draw` never draws.",
   "page": "Avatars",
   "anchor": "https://360sona.com/devs/docs/reference/c/avatars.html#sona_avatar_set_visible"
  },
  {
   "name": "sona_avatar_bounds",
   "header": "sona.h",
   "section": "3.8 avatars",
   "signature": "void sona_avatar_bounds(const sona_avatar *a, float center[3], float *radius);",
   "returns": "void",
   "params": [
    {
     "name": "a",
     "type": "const sona_avatar *"
    },
    {
     "name": "center",
     "type": "float [3]"
    },
    {
     "name": "radius",
     "type": "float *"
    }
   ],
   "comment": "",
   "doc": "A bounding sphere, in metres.",
   "page": "Avatars",
   "anchor": "https://360sona.com/devs/docs/reference/c/avatars.html#sona_avatar_bounds"
  },
  {
   "name": "sona_avatar_remove",
   "header": "sona.h",
   "section": "3.8 avatars",
   "signature": "void sona_avatar_remove(sona_avatar *a);",
   "returns": "void",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    }
   ],
   "comment": "frees what only it used",
   "doc": "Removes the avatar and frees what only it used. The handle must not be used afterwards.",
   "page": "Avatars",
   "anchor": "https://360sona.com/devs/docs/reference/c/avatars.html#sona_avatar_remove"
  },
  {
   "name": "sona_joint_find",
   "header": "sona.h",
   "section": "3.8b game features (1.1)",
   "signature": "int32_t sona_joint_find(const char *name);",
   "returns": "int32_t",
   "params": [
    {
     "name": "name",
     "type": "const char *"
    }
   ],
   "comment": "Joints by name: the humanoid names (Hips, Spine, Chest, Neck, Head, LeftUpperArm, ... PropLeft, PropRight), \"shape_NN\" for the body-shape joints, or \"joint_NN\" for any joint by number. -1 when unknown.",
   "doc": "A joint's number from its name: a humanoid name (`Hips`, `Spine`, `Chest`, `Neck`, `Head`, `LeftUpperArm`, ... `PropLeft`, `PropRight`), `shape_NN` for a body-shape joint, or `joint_NN` for any joint by number. -1 when the name is unknown or NULL.",
   "page": "Game features",
   "anchor": "https://360sona.com/devs/docs/reference/c/game-features.html#sona_joint_find"
  },
  {
   "name": "sona_joint_name",
   "header": "sona.h",
   "section": "3.8b game features (1.1)",
   "signature": "const char * sona_joint_name(uint32_t joint);",
   "returns": "const char *",
   "params": [
    {
     "name": "joint",
     "type": "uint32_t"
    }
   ],
   "comment": "NULL past the last joint",
   "doc": "The name of joints 0 to 70: the humanoid name, or `shape_NN`. NULL past the last joint. The string is static.",
   "page": "Game features",
   "anchor": "https://360sona.com/devs/docs/reference/c/game-features.html#sona_joint_name"
  },
  {
   "name": "sona_joint_world",
   "header": "sona.h",
   "section": "3.8b game features (1.1)",
   "signature": "sona_result sona_joint_world(const sona_avatar *a, uint32_t joint, float out[16]);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "const sona_avatar *"
    },
    {
     "name": "joint",
     "type": "uint32_t"
    },
    {
     "name": "out",
     "type": "float [16]"
    }
   ],
   "comment": "A joint's world matrix at the last sona_update: row-vector, metres, with the avatar's placement applied. SONA_E_NOT_READY before the avatar is READY and posed.",
   "doc": "The joint's world matrix at the last `sona_update`: row-vector, metres, with the avatar's placement applied. `SONA_E_ARGUMENT` for a joint past 70. `SONA_E_NOT_READY` before the avatar is READY and posed. A sprite (see crowds) keeps the last pose computed before it became one.",
   "page": "Game features",
   "anchor": "https://360sona.com/devs/docs/reference/c/game-features.html#sona_joint_world"
  },
  {
   "name": "sona_avatar_override",
   "header": "sona.h",
   "section": "3.8b game features (1.1)",
   "signature": "sona_result sona_avatar_override(sona_avatar *a, uint32_t joint, const float rotation[4], float weight, uint32_t mode);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "joint",
     "type": "uint32_t"
    },
    {
     "name": "rotation",
     "type": "const float [4]"
    },
    {
     "name": "weight",
     "type": "float"
    },
    {
     "name": "mode",
     "type": "uint32_t"
    }
   ],
   "comment": "",
   "doc": "A rotation applied after the clip each frame, for look-at and aiming. `rotation` is a quaternion (x, y, z, w); it is normalised, and a zero or non-finite one is `SONA_E_ARGUMENT`. `mode` `SONA_OVERRIDE_REPLACE` (0) sets the joint's rotation from its rest orientation; `SONA_OVERRIDE_ADD` (1) rotates on top of the clip's. `weight` blends from the clip, 0 to 1 (above 1 counts as 1). A weight of 0 or a NULL `rotation` clears that joint. Joints the clip does not move are not affected while no clip plays. `SONA_E_ARGUMENT` for a joint past 70 or another mode.",
   "page": "Game features",
   "anchor": "https://360sona.com/devs/docs/reference/c/game-features.html#sona_avatar_override"
  },
  {
   "name": "sona_avatar_clear_overrides",
   "header": "sona.h",
   "section": "3.8b game features (1.1)",
   "signature": "void sona_avatar_clear_overrides(sona_avatar *a);",
   "returns": "void",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    }
   ],
   "comment": "",
   "doc": "Clears every override of the avatar. NULL is ignored.",
   "page": "Game features",
   "anchor": "https://360sona.com/devs/docs/reference/c/game-features.html#sona_avatar_clear_overrides"
  },
  {
   "name": "sona_avatar_crossfade",
   "header": "sona.h",
   "section": "3.8b game features (1.1)",
   "signature": "sona_result sona_avatar_crossfade(sona_avatar *a, const char *clip, const sona_play_options *opts, float seconds);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "clip",
     "type": "const char *"
    },
    {
     "name": "opts",
     "type": "const sona_play_options *"
    },
    {
     "name": "seconds",
     "type": "float"
    }
   ],
   "comment": "sona_avatar_play, blending from the current pose over seconds (0: a cut).",
   "doc": "`sona_avatar_play`, blending from the current pose over `seconds`. 0, a negative or a non-finite value is a cut. It clears the queue. It returns what `sona_avatar_play` returns, so `SONA_E_ARGUMENT` for an item preview.",
   "page": "Game features",
   "anchor": "https://360sona.com/devs/docs/reference/c/game-features.html#sona_avatar_crossfade"
  },
  {
   "name": "sona_avatar_queue",
   "header": "sona.h",
   "section": "3.8b game features (1.1)",
   "signature": "sona_result sona_avatar_queue(sona_avatar *a, const char *clip, const sona_play_options *opts, float fade_seconds);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "clip",
     "type": "const char *"
    },
    {
     "name": "opts",
     "type": "const sona_play_options *"
    },
    {
     "name": "fade_seconds",
     "type": "float"
    }
   ],
   "comment": "Plays clip when the current one ends (a looping clip never ends: queue after a non-looping one). Up to SONA_QUEUE_MAX; SONA_E_LIMIT past that. sona_avatar_play and sona_avatar_crossfade clear the queue.",
   "doc": "Plays `clip` when the current one ends, blending over `fade_seconds` (0: a cut). A looping clip never ends, so queue after a non-looping one. NULL `opts` takes the defaults. Up to `SONA_QUEUE_MAX` clips wait; `SONA_E_LIMIT` past that. `SONA_E_ARGUMENT` for a NULL or over-long clip name, or an item preview. `sona_avatar_play` and `sona_avatar_crossfade` clear the queue.",
   "page": "Game features",
   "anchor": "https://360sona.com/devs/docs/reference/c/game-features.html#sona_avatar_queue"
  },
  {
   "name": "sona_avatar_queued",
   "header": "sona.h",
   "section": "3.8b game features (1.1)",
   "signature": "uint32_t sona_avatar_queued(const sona_avatar *a);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "a",
     "type": "const sona_avatar *"
    }
   ],
   "comment": "",
   "doc": "How many clips are waiting in the queue. 0 for NULL.",
   "page": "Game features",
   "anchor": "https://360sona.com/devs/docs/reference/c/game-features.html#sona_avatar_queued"
  },
  {
   "name": "sona_avatar_capsule",
   "header": "sona.h",
   "section": "3.8b game features (1.1)",
   "signature": "sona_result sona_avatar_capsule(const sona_avatar *a, sona_capsule *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "const sona_avatar *"
    },
    {
     "name": "out",
     "type": "sona_capsule *"
    }
   ],
   "comment": "",
   "doc": "A vertical capsule around the posed body, in world space, for collisions: the segment `a`..`b` and its `radius`, scaled with the avatar. `SONA_E_NOT_READY` before the avatar is READY and posed.",
   "page": "Game features",
   "anchor": "https://360sona.com/devs/docs/reference/c/game-features.html#sona_avatar_capsule"
  },
  {
   "name": "sona_avatar_expression",
   "header": "sona.h",
   "section": "3.8b game features (1.1)",
   "signature": "sona_result sona_avatar_expression(sona_avatar *a, const uint8_t values[5]);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "values",
     "type": "const uint8_t [5]"
    }
   ],
   "comment": "Expressions: values[5] are mouth, left eyebrow, right eyebrow, left eye, right eye, each a shape index (0 is the face's neutral shape) or 255 to leave that part as the clip has it. The face texture is re-baked when the shapes change; each combination is baked once and cached. NULL hands the whole face back to the clip. sona_pose_data.expression reports what is shown.",
   "doc": "Sets the face. `values` are mouth, left eyebrow, right eyebrow, left eye, right eye, each a shape index (0 is the face's neutral shape) or 255 to leave that part as the clip has it. NULL hands the whole face back to the clip. The face texture is baked again when the shapes change; each combination is baked once and cached. `sona_pose_data.expression` reports what is shown.\n\nMouth shapes 0 to 6 are moods: neutral, sad, angry, confused, laughing, shocked, happy. 7 to 13 are speech shapes for lip sync: `SONA_MOUTH_O` (7), `SONA_MOUTH_AI`, `SONA_MOUTH_EE`, `SONA_MOUTH_FV`, `SONA_MOUTH_W`, `SONA_MOUTH_L`, `SONA_MOUTH_DTH` (13). `SONA_MOUTH_NEUTRAL` is 0. A sprite does not show expressions.",
   "page": "Game features",
   "anchor": "https://360sona.com/devs/docs/reference/c/game-features.html#sona_avatar_expression"
  },
  {
   "name": "sona_avatar_expression_counts",
   "header": "sona.h",
   "section": "3.8b game features (1.1)",
   "signature": "sona_result sona_avatar_expression_counts(const sona_avatar *a, uint32_t counts[3]);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "const sona_avatar *"
    },
    {
     "name": "counts",
     "type": "uint32_t [3]"
    }
   ],
   "comment": "How many shapes this face has: counts[0] mouth, [1] eyebrows, [2] eyes. 0 for a part the face lacks. SONA_E_NOT_READY before READY.",
   "doc": "How many shapes this face has: `counts[0]` mouth, `counts[1]` eyebrows, `counts[2]` eyes. 0 for a part the face lacks. `SONA_E_NOT_READY` before READY.",
   "page": "Game features",
   "anchor": "https://360sona.com/devs/docs/reference/c/game-features.html#sona_avatar_expression_counts"
  },
  {
   "name": "sona_avatar_clip_events",
   "header": "sona.h",
   "section": "3.8b game features (1.1)",
   "signature": "uint32_t sona_avatar_clip_events(sona_avatar *a, sona_clip_event *out, uint32_t max);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "out",
     "type": "sona_clip_event *"
    },
    {
     "name": "max",
     "type": "uint32_t"
    }
   ],
   "comment": "",
   "doc": "Moves up to `max` events into `out`, oldest first, and returns how many. They are what happened on the avatar's clip since the last call. 0 for NULL arguments or `max` 0. Footfalls come from the evaluated pose, so an avatar that is not posed (culled, a sprite, or not READY) has none. Up to `SONA_CLIP_EVENT_MAX` are held; past that the oldest go.",
   "page": "Game features",
   "anchor": "https://360sona.com/devs/docs/reference/c/game-features.html#sona_avatar_clip_events"
  },
  {
   "name": "sona_avatar_mark",
   "header": "sona.h",
   "section": "3.8b game features (1.1)",
   "signature": "sona_result sona_avatar_mark(sona_avatar *a, float seconds, uint32_t id);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "seconds",
     "type": "float"
    },
    {
     "name": "id",
     "type": "uint32_t"
    }
   ],
   "comment": "A MARK event with this id each time the current clip passes seconds. Marks go when another clip starts. SONA_E_LIMIT past SONA_MARK_MAX.",
   "doc": "A MARK event with this `id` each time the current clip passes `seconds`. Marks go when another clip starts. `SONA_E_ARGUMENT` for a negative or NaN time; `SONA_E_LIMIT` past `SONA_MARK_MAX` marks.",
   "page": "Game features",
   "anchor": "https://360sona.com/devs/docs/reference/c/game-features.html#sona_avatar_mark"
  },
  {
   "name": "sona_avatar_clear_marks",
   "header": "sona.h",
   "section": "3.8b game features (1.1)",
   "signature": "void sona_avatar_clear_marks(sona_avatar *a);",
   "returns": "void",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    }
   ],
   "comment": "",
   "doc": "Removes the avatar's marks. NULL is ignored.",
   "page": "Game features",
   "anchor": "https://360sona.com/devs/docs/reference/c/game-features.html#sona_avatar_clear_marks"
  },
  {
   "name": "sona_avatar_root_motion",
   "header": "sona.h",
   "section": "3.8b game features (1.1)",
   "signature": "sona_result sona_avatar_root_motion(sona_avatar *a, uint32_t mode);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "mode",
     "type": "uint32_t"
    }
   ],
   "comment": "",
   "doc": "What happens to the clip's sideways travel of the hips. `SONA_ROOT_MOTION_OFF` (0) leaves it in the pose. `SONA_ROOT_MOTION_EXTRACT` (1) holds the hips where the clip starts and collects the travel for `sona_avatar_take_root_motion`. `SONA_ROOT_MOTION_APPLY` (2) moves the avatar's placement by it each update. Setting a mode drops what was collected. `SONA_E_ARGUMENT` for another mode.",
   "page": "Game features",
   "anchor": "https://360sona.com/devs/docs/reference/c/game-features.html#sona_avatar_root_motion"
  },
  {
   "name": "sona_avatar_take_root_motion",
   "header": "sona.h",
   "section": "3.8b game features (1.1)",
   "signature": "sona_result sona_avatar_take_root_motion(sona_avatar *a, float delta[3]);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "delta",
     "type": "float [3]"
    }
   ],
   "comment": "The travel collected since the last call, in world metres (turn and scale applied); clears it.",
   "doc": "The travel collected since the last call, in world metres (the avatar's turn and scale applied), and clears it.",
   "page": "Game features",
   "anchor": "https://360sona.com/devs/docs/reference/c/game-features.html#sona_avatar_take_root_motion"
  },
  {
   "name": "sona_layer_defaults",
   "header": "sona.h",
   "section": "3.8c animation layers, blend spaces and state machines (1.2)",
   "signature": "void sona_layer_defaults(sona_layer_options *o);",
   "returns": "void",
   "params": [
    {
     "name": "o",
     "type": "sona_layer_options *"
    }
   ],
   "comment": "",
   "doc": "`size` set, `SONA_LAYER_OVERRIDE`, no flags, `loop` 1, `weight` 1, `fade_seconds` 0.2, `speed` 1, `from` 0,\n`additive_ref` 0, `mask` NULL. NULL is ignored.",
   "page": "Animation layers",
   "anchor": "https://360sona.com/devs/docs/reference/c/animation-layers.html#sona_layer_defaults"
  },
  {
   "name": "sona_avatar_layer_play",
   "header": "sona.h",
   "section": "3.8c animation layers, blend spaces and state machines (1.2)",
   "signature": "sona_result sona_avatar_layer_play(sona_avatar *a, uint32_t layer, const char *clip, const sona_layer_options *opts);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "layer",
     "type": "uint32_t"
    },
    {
     "name": "clip",
     "type": "const char *"
    },
    {
     "name": "opts",
     "type": "const sona_layer_options *"
    }
   ],
   "comment": "Plays a clip key or raw clip id on a layer (\"idle\", \"still\" and \"prop\" are the avatar's own clip only). SONA_E_ARGUMENT for a layer past SONA_LAYER_MAX - 1, an unknown key, a bad option or a preview.",
   "doc": "Plays a clip key or raw clip id on the layer, crossfading from what it showed over `fade_seconds`. NULL `opts`: the\ndefaults. `SONA_E_ARGUMENT` also for `\"idle\"`, `\"still\"`, `\"prop\"`, an unknown key and an option out of range\n(`weight` outside 0..1, a negative or NaN time or speed, a mask weight outside 0..1). Changing between OVERRIDE and\nADDITIVE cuts instead of crossfading.",
   "page": "Animation layers",
   "anchor": "https://360sona.com/devs/docs/reference/c/animation-layers.html#sona_avatar_layer_play"
  },
  {
   "name": "sona_avatar_layer_blend",
   "header": "sona.h",
   "section": "3.8c animation layers, blend spaces and state machines (1.2)",
   "signature": "sona_result sona_avatar_layer_blend(sona_avatar *a, uint32_t layer, sona_blend_space *b, const sona_layer_options *opts);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "layer",
     "type": "uint32_t"
    },
    {
     "name": "b",
     "type": "sona_blend_space *"
    },
    {
     "name": "opts",
     "type": "const sona_layer_options *"
    }
   ],
   "comment": "",
   "doc": "Plays a blend space of the same ctx on the layer. `from` is the fraction 0..1 of its shared cycle (seconds with\n`SONA_BLEND_UNSYNCED`).",
   "page": "Animation layers",
   "anchor": "https://360sona.com/devs/docs/reference/c/animation-layers.html#sona_avatar_layer_blend"
  },
  {
   "name": "sona_avatar_layer_machine",
   "header": "sona.h",
   "section": "3.8c animation layers, blend spaces and state machines (1.2)",
   "signature": "sona_result sona_avatar_layer_machine(sona_avatar *a, uint32_t layer, sona_state_machine *m, const sona_layer_options *opts);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "layer",
     "type": "uint32_t"
    },
    {
     "name": "m",
     "type": "sona_state_machine *"
    },
    {
     "name": "opts",
     "type": "const sona_layer_options *"
    }
   ],
   "comment": "",
   "doc": "Runs a state machine of the same ctx on the layer from its initial state (a `STATE` event with `from_state` -1).\n`speed` scales every state's speed; each state says whether it loops.",
   "page": "Animation layers",
   "anchor": "https://360sona.com/devs/docs/reference/c/animation-layers.html#sona_avatar_layer_machine"
  },
  {
   "name": "sona_avatar_layer_weight",
   "header": "sona.h",
   "section": "3.8c animation layers, blend spaces and state machines (1.2)",
   "signature": "sona_result sona_avatar_layer_weight(sona_avatar *a, uint32_t layer, float weight, float over_seconds);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "layer",
     "type": "uint32_t"
    },
    {
     "name": "weight",
     "type": "float"
    },
    {
     "name": "over_seconds",
     "type": "float"
    }
   ],
   "comment": "Moves the layer's weight to weight over seconds (0: at once).",
   "doc": "Moves the layer's weight linearly to `weight` (0..1) over `over_seconds`; 0 or less sets it at once.",
   "page": "Animation layers",
   "anchor": "https://360sona.com/devs/docs/reference/c/animation-layers.html#sona_avatar_layer_weight"
  },
  {
   "name": "sona_avatar_layer_mask",
   "header": "sona.h",
   "section": "3.8c animation layers, blend spaces and state machines (1.2)",
   "signature": "sona_result sona_avatar_layer_mask(sona_avatar *a, uint32_t layer, const float *mask);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "layer",
     "type": "uint32_t"
    },
    {
     "name": "mask",
     "type": "const float *"
    }
   ],
   "comment": "SONA_JOINT_COUNT weights 0..1, copied; NULL: every joint.",
   "doc": "Copies `SONA_JOINT_COUNT` weights (each 0..1); NULL is every joint. Takes effect at the next pose.",
   "page": "Animation layers",
   "anchor": "https://360sona.com/devs/docs/reference/c/animation-layers.html#sona_avatar_layer_mask"
  },
  {
   "name": "sona_avatar_layer_stop",
   "header": "sona.h",
   "section": "3.8c animation layers, blend spaces and state machines (1.2)",
   "signature": "sona_result sona_avatar_layer_stop(sona_avatar *a, uint32_t layer, float fade_seconds);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "layer",
     "type": "uint32_t"
    },
    {
     "name": "fade_seconds",
     "type": "float"
    }
   ],
   "comment": "Fades the layer out over seconds, then empties it (a STOPPED event).",
   "doc": "Fades the layer out over `fade_seconds` and then empties it (a `STOPPED` event); 0 empties it now. An empty layer\nis `SONA_OK`.",
   "page": "Animation layers",
   "anchor": "https://360sona.com/devs/docs/reference/c/animation-layers.html#sona_avatar_layer_stop"
  },
  {
   "name": "sona_avatar_layer_info",
   "header": "sona.h",
   "section": "3.8c animation layers, blend spaces and state machines (1.2)",
   "signature": "sona_result sona_avatar_layer_info(const sona_avatar *a, uint32_t layer, sona_layer_info *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "const sona_avatar *"
    },
    {
     "name": "layer",
     "type": "uint32_t"
    },
    {
     "name": "out",
     "type": "sona_layer_info *"
    }
   ],
   "comment": "",
   "doc": "The layer now: `kind`, `mode`, `state` (machines, else -1), `clip` (the `sona_clip_get` index, -1 for a raw id),\n`weight` with fades, `time` and `normalized` through the clip or cycle, `ready` (its clips have loaded) and\n`fading`. The caller sets `out->size`.",
   "page": "Animation layers",
   "anchor": "https://360sona.com/devs/docs/reference/c/animation-layers.html#sona_avatar_layer_info"
  },
  {
   "name": "sona_avatar_layer_events",
   "header": "sona.h",
   "section": "3.8c animation layers, blend spaces and state machines (1.2)",
   "signature": "uint32_t sona_avatar_layer_events(sona_avatar *a, sona_layer_event *out, uint32_t max);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "out",
     "type": "sona_layer_event *"
    },
    {
     "name": "max",
     "type": "uint32_t"
    }
   ],
   "comment": "Layer events, oldest first, since the last call; up to SONA_LAYER_EVENT_MAX are held, past that the oldest go.",
   "doc": "Moves up to `max` events, oldest first, into `out` and returns how many: `STARTED`, `LOOPED`, `ENDED`, `STATE`,\n`STOPPED`, each with its `layer`, `state` and `from_state` (machines; else -1) and `time` (seconds into the clip).\nUp to `SONA_LAYER_EVENT_MAX` are held; past that the oldest go.",
   "page": "Animation layers",
   "anchor": "https://360sona.com/devs/docs/reference/c/animation-layers.html#sona_avatar_layer_events"
  },
  {
   "name": "sona_mask_preset",
   "header": "sona.h",
   "section": "3.8c animation layers, blend spaces and state machines (1.2)",
   "signature": "sona_result sona_mask_preset(uint32_t preset, float mask[SONA_JOINT_COUNT]);",
   "returns": "sona_result",
   "params": [
    {
     "name": "preset",
     "type": "uint32_t"
    },
    {
     "name": "mask",
     "type": "float [SONA_JOINT_COUNT]"
    }
   ],
   "comment": "",
   "doc": "Fills a mask: `SONA_MASK_NONE`, `_FULL`, `_UPPER_BODY` (Spine and below it), `_LOWER_BODY` (the hips and legs),\n`_HEAD` (from the Neck), `_LEFT_ARM`, `_RIGHT_ARM`, `_ARMS` (from the shoulders). Joint 71 is always 0.",
   "page": "Animation layers",
   "anchor": "https://360sona.com/devs/docs/reference/c/animation-layers.html#sona_mask_preset"
  },
  {
   "name": "sona_mask_branch",
   "header": "sona.h",
   "section": "3.8c animation layers, blend spaces and state machines (1.2)",
   "signature": "sona_result sona_mask_branch(float mask[SONA_JOINT_COUNT], uint32_t joint, float weight);",
   "returns": "sona_result",
   "params": [
    {
     "name": "mask",
     "type": "float [SONA_JOINT_COUNT]"
    },
    {
     "name": "joint",
     "type": "uint32_t"
    },
    {
     "name": "weight",
     "type": "float"
    }
   ],
   "comment": "",
   "doc": "Sets `joint` and every joint below it in the rig to `weight` (0..1); the rest is kept.",
   "page": "Animation layers",
   "anchor": "https://360sona.com/devs/docs/reference/c/animation-layers.html#sona_mask_branch"
  },
  {
   "name": "sona_param_id",
   "header": "sona.h",
   "section": "3.8c animation layers, blend spaces and state machines (1.2)",
   "signature": "int32_t sona_param_id(sona_ctx *ctx, const char *name);",
   "returns": "int32_t",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "name",
     "type": "const char *"
    }
   ],
   "comment": "Parameters: named floats the host sets on each avatar, read by blend spaces and state machine conditions. Names are per ctx and numbered from 0 in the order they are first asked for, so a game that names its parameters first can set them all with one sona_avatar_set_params call a frame. -1 for a name too long (over 31 bytes) or past SONA_PARAM_MAX.",
   "doc": "The id of a parameter name (1 to 31 bytes), made on first use and numbered from 0 in that order; -1 for a bad name\nor past `SONA_PARAM_MAX` (32) names.",
   "page": "Animation layers",
   "anchor": "https://360sona.com/devs/docs/reference/c/animation-layers.html#sona_param_id"
  },
  {
   "name": "sona_avatar_set_param",
   "header": "sona.h",
   "section": "3.8c animation layers, blend spaces and state machines (1.2)",
   "signature": "sona_result sona_avatar_set_param(sona_avatar *a, int32_t param, float value);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "param",
     "type": "int32_t"
    },
    {
     "name": "value",
     "type": "float"
    }
   ],
   "comment": "",
   "doc": "Sets one parameter on the avatar; read at the next `sona_update`. `SONA_E_ARGUMENT` for an id outside 0..31 or a\nvalue that is not finite.",
   "page": "Animation layers",
   "anchor": "https://360sona.com/devs/docs/reference/c/animation-layers.html#sona_avatar_set_param"
  },
  {
   "name": "sona_avatar_set_params",
   "header": "sona.h",
   "section": "3.8c animation layers, blend spaces and state machines (1.2)",
   "signature": "sona_result sona_avatar_set_params(sona_avatar *a, uint32_t first, const float *values, uint32_t count);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "first",
     "type": "uint32_t"
    },
    {
     "name": "values",
     "type": "const float *"
    },
    {
     "name": "count",
     "type": "uint32_t"
    }
   ],
   "comment": "",
   "doc": "Sets parameters `first .. first + count - 1`: a game's one call a frame. Nothing is set when any value is not\nfinite or the range passes `SONA_PARAM_MAX`.",
   "page": "Animation layers",
   "anchor": "https://360sona.com/devs/docs/reference/c/animation-layers.html#sona_avatar_set_params"
  },
  {
   "name": "sona_avatar_param",
   "header": "sona.h",
   "section": "3.8c animation layers, blend spaces and state machines (1.2)",
   "signature": "float sona_avatar_param(const sona_avatar *a, int32_t param);",
   "returns": "float",
   "params": [
    {
     "name": "a",
     "type": "const sona_avatar *"
    },
    {
     "name": "param",
     "type": "int32_t"
    }
   ],
   "comment": "0 when unset or unknown",
   "doc": "A parameter's value; 0 when unset or unknown. Triggers read 0 once their transition fired.",
   "page": "Animation layers",
   "anchor": "https://360sona.com/devs/docs/reference/c/animation-layers.html#sona_avatar_param"
  },
  {
   "name": "sona_blend_space_defaults",
   "header": "sona.h",
   "section": "3.8c animation layers, blend spaces and state machines (1.2)",
   "signature": "void sona_blend_space_defaults(sona_blend_space_desc *d);",
   "returns": "void",
   "params": [
    {
     "name": "d",
     "type": "sona_blend_space_desc *"
    }
   ],
   "comment": "",
   "doc": "`size` set, `dims` 1, no samples, `smooth_seconds` 0.1.",
   "page": "Animation layers",
   "anchor": "https://360sona.com/devs/docs/reference/c/animation-layers.html#sona_blend_space_defaults"
  },
  {
   "name": "sona_blend_space_create",
   "header": "sona.h",
   "section": "3.8c animation layers, blend spaces and state machines (1.2)",
   "signature": "sona_result sona_blend_space_create(sona_ctx *ctx, const sona_blend_space_desc *d, sona_blend_space **out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "d",
     "type": "const sona_blend_space_desc *"
    },
    {
     "name": "out",
     "type": "sona_blend_space **"
    }
   ],
   "comment": "",
   "doc": "Checks and copies the desc and starts loading its clips. `SONA_E_ARGUMENT`, with the bad sample named in\n`sona_last_error`: `dims` not 1 or 2, 0 or over 16 samples, a missing parameter name, a clip that is not a key or id,\ntwo samples at one point, a negative or NaN value. 2D samples are triangulated here.",
   "page": "Animation layers",
   "anchor": "https://360sona.com/devs/docs/reference/c/animation-layers.html#sona_blend_space_create"
  },
  {
   "name": "sona_blend_space_destroy",
   "header": "sona.h",
   "section": "3.8c animation layers, blend spaces and state machines (1.2)",
   "signature": "void sona_blend_space_destroy(sona_blend_space *b);",
   "returns": "void",
   "params": [
    {
     "name": "b",
     "type": "sona_blend_space *"
    }
   ],
   "comment": "The host lets go; avatars playing it keep it until they stop. sona_close frees what is left.",
   "doc": "Lets go of the host's handle. Avatars and states that play it keep it until they stop; `sona_close` frees the\nrest.",
   "page": "Animation layers",
   "anchor": "https://360sona.com/devs/docs/reference/c/animation-layers.html#sona_blend_space_destroy"
  },
  {
   "name": "sona_blend_space_weights",
   "header": "sona.h",
   "section": "3.8c animation layers, blend spaces and state machines (1.2)",
   "signature": "uint32_t sona_blend_space_weights(const sona_blend_space *b, float x, float y, float *weights);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "b",
     "type": "const sona_blend_space *"
    },
    {
     "name": "x",
     "type": "float"
    },
    {
     "name": "y",
     "type": "float"
    },
    {
     "name": "weights",
     "type": "float *"
    }
   ],
   "comment": "Each sample's weight at (x, y) into weights[sample_count] (summing to 1); returns how many are above 0.",
   "doc": "Writes each sample's weight at `(x, y)` (they sum to 1; `y` is ignored in 1D) and returns how many are above 0\n(1 to 3). 0 for a NULL argument or a NaN point.",
   "page": "Animation layers",
   "anchor": "https://360sona.com/devs/docs/reference/c/animation-layers.html#sona_blend_space_weights"
  },
  {
   "name": "sona_state_machine_defaults",
   "header": "sona.h",
   "section": "3.8c animation layers, blend spaces and state machines (1.2)",
   "signature": "void sona_state_machine_defaults(sona_state_machine_desc *d);",
   "returns": "void",
   "params": [
    {
     "name": "d",
     "type": "sona_state_machine_desc *"
    }
   ],
   "comment": "",
   "doc": "`size` set, everything else zero.",
   "page": "Animation layers",
   "anchor": "https://360sona.com/devs/docs/reference/c/animation-layers.html#sona_state_machine_defaults"
  },
  {
   "name": "sona_state_machine_create",
   "header": "sona.h",
   "section": "3.8c animation layers, blend spaces and state machines (1.2)",
   "signature": "sona_result sona_state_machine_create(sona_ctx *ctx, const sona_state_machine_desc *d, sona_state_machine **out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "d",
     "type": "const sona_state_machine_desc *"
    },
    {
     "name": "out",
     "type": "sona_state_machine **"
    }
   ],
   "comment": "SONA_E_ARGUMENT names the bad state, transition or condition in sona_last_error.",
   "doc": "Resolves every name to an index once. `SONA_E_ARGUMENT`, naming the state, transition or condition in\n`sona_last_error`: 0 or over 32 states, over 64 transitions, a state name that is empty, over 31 bytes or used\ntwice, a state with both or neither of a clip and a blend space, a transition naming an unknown state, a negative\nfade, more than 4 conditions, an unknown op, a bad parameter name, a value that is not finite, an unknown initial\nstate.",
   "page": "Animation layers",
   "anchor": "https://360sona.com/devs/docs/reference/c/animation-layers.html#sona_state_machine_create"
  },
  {
   "name": "sona_state_machine_destroy",
   "header": "sona.h",
   "section": "3.8c animation layers, blend spaces and state machines (1.2)",
   "signature": "void sona_state_machine_destroy(sona_state_machine *m);",
   "returns": "void",
   "params": [
    {
     "name": "m",
     "type": "sona_state_machine *"
    }
   ],
   "comment": "as sona_blend_space_destroy",
   "doc": "As `sona_blend_space_destroy`.",
   "page": "Animation layers",
   "anchor": "https://360sona.com/devs/docs/reference/c/animation-layers.html#sona_state_machine_destroy"
  },
  {
   "name": "sona_state_machine_find",
   "header": "sona.h",
   "section": "3.8c animation layers, blend spaces and state machines (1.2)",
   "signature": "int32_t sona_state_machine_find(const sona_state_machine *m, const char *state);",
   "returns": "int32_t",
   "params": [
    {
     "name": "m",
     "type": "const sona_state_machine *"
    },
    {
     "name": "state",
     "type": "const char *"
    }
   ],
   "comment": "-1 if unknown",
   "doc": "A state's index by name, -1 if unknown.",
   "page": "Animation layers",
   "anchor": "https://360sona.com/devs/docs/reference/c/animation-layers.html#sona_state_machine_find"
  },
  {
   "name": "sona_state_machine_state_name",
   "header": "sona.h",
   "section": "3.8c animation layers, blend spaces and state machines (1.2)",
   "signature": "const char * sona_state_machine_state_name(const sona_state_machine *m, uint32_t state);",
   "returns": "const char *",
   "params": [
    {
     "name": "m",
     "type": "const sona_state_machine *"
    },
    {
     "name": "state",
     "type": "uint32_t"
    }
   ],
   "comment": "",
   "doc": "A state's name, NULL past the last. Valid while the machine lives.",
   "page": "Animation layers",
   "anchor": "https://360sona.com/devs/docs/reference/c/animation-layers.html#sona_state_machine_state_name"
  },
  {
   "name": "sona_avatar_layer_goto",
   "header": "sona.h",
   "section": "3.8c animation layers, blend spaces and state machines (1.2)",
   "signature": "sona_result sona_avatar_layer_goto(sona_avatar *a, uint32_t layer, uint32_t state, float fade_seconds);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "layer",
     "type": "uint32_t"
    },
    {
     "name": "state",
     "type": "uint32_t"
    },
    {
     "name": "fade_seconds",
     "type": "float"
    }
   ],
   "comment": "Sends a machine layer to state now, crossfading over seconds, whatever the transitions say.",
   "doc": "Sends a machine layer to `state` now, crossfading over `fade_seconds`. `SONA_E_ARGUMENT` when the layer runs no\nmachine or the state is past its last.",
   "page": "Animation layers",
   "anchor": "https://360sona.com/devs/docs/reference/c/animation-layers.html#sona_avatar_layer_goto"
  },
  {
   "name": "sona_clip_count",
   "header": "sona.h",
   "section": "3.9 clips",
   "signature": "uint32_t sona_clip_count(const sona_ctx *ctx);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "ctx",
     "type": "const sona_ctx *"
    }
   ],
   "comment": "",
   "doc": "How many clips the context knows.",
   "page": "Clips",
   "anchor": "https://360sona.com/devs/docs/reference/c/clips.html#sona_clip_count"
  },
  {
   "name": "sona_clip_get",
   "header": "sona.h",
   "section": "3.9 clips",
   "signature": "sona_result sona_clip_get(const sona_ctx *ctx, uint32_t index, sona_clip_info *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "const sona_ctx *"
    },
    {
     "name": "index",
     "type": "uint32_t"
    },
    {
     "name": "out",
     "type": "sona_clip_info *"
    }
   ],
   "comment": "",
   "doc": "One clip by index, `0 .. sona_clip_count() - 1`.",
   "page": "Clips",
   "anchor": "https://360sona.com/devs/docs/reference/c/clips.html#sona_clip_get"
  },
  {
   "name": "sona_view_defaults",
   "header": "sona.h",
   "section": "3.10 the frame",
   "signature": "void sona_view_defaults(sona_view *v);",
   "returns": "void",
   "params": [
    {
     "name": "v",
     "type": "sona_view *"
    }
   ],
   "comment": "the web's full-body framing",
   "doc": "The web's full-body framing.",
   "page": "The frame",
   "anchor": "https://360sona.com/devs/docs/reference/c/the-frame.html#sona_view_defaults"
  },
  {
   "name": "sona_update",
   "header": "sona.h",
   "section": "3.10 the frame",
   "signature": "sona_result sona_update(sona_ctx *ctx, double dt_seconds, const sona_view *view, sona_frame_stats *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "dt_seconds",
     "type": "double"
    },
    {
     "name": "view",
     "type": "const sona_view *"
    },
    {
     "name": "out",
     "type": "sona_frame_stats *"
    }
   ],
   "comment": "Advances every avatar by dt (clamped to 0..0.1 s, as the web), runs build steps inside the build budget, culls against the view and poses what is due (the web's LOD rules). view may be NULL: then nothing is culled and every avatar poses every frame. The view is used only for culling and LOD. Palettes are folded with each draw's own view in sona_draw and sona_snapshot.",
   "doc": "Advances every avatar by `dt_seconds` (clamped to 0..0.1 s, as the web), runs build steps inside the build budget, culls against the view and poses what is due (the web's LOD rules). It also drains finished reads and jobs. `view` may be NULL: then nothing is culled and every avatar poses every frame. The view is used only for culling and LOD; palettes are folded with each draw's own view in `sona_draw` and `sona_snapshot`.",
   "page": "The frame",
   "anchor": "https://360sona.com/devs/docs/reference/c/the-frame.html#sona_update"
  },
  {
   "name": "sona_stats",
   "header": "sona.h",
   "section": "3.10 the frame",
   "signature": "void sona_stats(const sona_ctx *ctx, sona_scene_stats *out);",
   "returns": "void",
   "params": [
    {
     "name": "ctx",
     "type": "const sona_ctx *"
    },
    {
     "name": "out",
     "type": "sona_scene_stats *"
    }
   ],
   "comment": "",
   "doc": "Fills `*out` with the scene statistics.",
   "page": "The frame",
   "anchor": "https://360sona.com/devs/docs/reference/c/the-frame.html#sona_stats"
  },
  {
   "name": "sona_lod_defaults",
   "header": "sona.h",
   "section": "3.10b crowds: level of detail and sprites (1.1)",
   "signature": "void sona_lod_defaults(sona_lod_options *o);",
   "returns": "void",
   "params": [
    {
     "name": "o",
     "type": "sona_lod_options *"
    }
   ],
   "comment": "",
   "doc": "Writes the defaults in the table above, with sprites on at 48 px. NULL is ignored.",
   "page": "Crowds: level of detail and sprites",
   "anchor": "https://360sona.com/devs/docs/reference/c/crowds-level-of-detail-and-sprites.html#sona_lod_defaults"
  },
  {
   "name": "sona_lod_set",
   "header": "sona.h",
   "section": "3.10b crowds: level of detail and sprites (1.1)",
   "signature": "sona_result sona_lod_set(sona_ctx *ctx, const sona_lod_options *o);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "o",
     "type": "const sona_lod_options *"
    }
   ],
   "comment": "NULL: the defaults. SONA_E_ARGUMENT for a value out of range (quarter_px above full_px, angles outside 4..32, a height outside 32..512, sprite_angles * sprite_height / 2 above 4096), or, with sprite_px above 0, when a renderer already on the ctx cannot bake them: one sheet is sprite_angles * (h / 2 + 2 * (h / 16)) pixels wide and h + 2 * (h / 16) tall (h = sprite_height), and must fit the device's largest texture. A renderer made later on a device too small for the options draws no sprites (it logs once). A smaller device bakes fewer looks a pass. Takes effect at the next sona_update.",
   "doc": "Sets the options; NULL sets the defaults. Takes effect at the next `sona_update`. Changing `sprite_angles` or `sprite_height` drops every baked sheet; they are baked again as needed.\n\n- `SONA_E_ARGUMENT`: `ctx` is NULL, a value is out of range or NaN, or `sprite_px` is above 0 and a renderer already on the ctx has a device too small for one sheet of the bake. Nothing changes then.\n- `SONA_E_MEMORY`: the allocator failed (first call only).\n- A renderer made later on a device too small for the options draws no sprites. It logs a warning once.",
   "page": "Crowds: level of detail and sprites",
   "anchor": "https://360sona.com/devs/docs/reference/c/crowds-level-of-detail-and-sprites.html#sona_lod_set"
  },
  {
   "name": "sona_lod_get",
   "header": "sona.h",
   "section": "3.10b crowds: level of detail and sprites (1.1)",
   "signature": "sona_result sona_lod_get(const sona_ctx *ctx, sona_lod_options *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "const sona_ctx *"
    },
    {
     "name": "out",
     "type": "sona_lod_options *"
    }
   ],
   "comment": "",
   "doc": "Copies the current options: before any `sona_lod_set`, thresholds 120 and 40 and no sprites (`sprite_px` 0). `SONA_E_ARGUMENT` for a NULL argument.",
   "page": "Crowds: level of detail and sprites",
   "anchor": "https://360sona.com/devs/docs/reference/c/crowds-level-of-detail-and-sprites.html#sona_lod_get"
  },
  {
   "name": "sona_avatar_lod",
   "header": "sona.h",
   "section": "3.10b crowds: level of detail and sprites (1.1)",
   "signature": "uint32_t sona_avatar_lod(const sona_avatar *a, float *fade);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "a",
     "type": "const sona_avatar *"
    },
    {
     "name": "fade",
     "type": "float *"
    }
   ],
   "comment": "The avatar's step at the last sona_update, and how far it is from mesh (0) to sprite (1). SONA_LOD_FULL and fade 0 for an avatar not in view at that update (culled or hidden) or not READY; back in view it has its step again. fade may be NULL.",
   "doc": "The avatar's step at the last `sona_update`, and in `*fade` how far it is from its mesh (0) to its sprite (1). `SONA_LOD_FULL` and 0 for NULL, an avatar that is not READY, and one that was not in view at that update (culled or hidden). Back in view it has its step again. `fade` may be NULL.",
   "page": "Crowds: level of detail and sprites",
   "anchor": "https://360sona.com/devs/docs/reference/c/crowds-level-of-detail-and-sprites.html#sona_avatar_lod"
  },
  {
   "name": "sona_lod_stats_get",
   "header": "sona.h",
   "section": "3.10b crowds: level of detail and sprites (1.1)",
   "signature": "void sona_lod_stats_get(const sona_ctx *ctx, sona_lod_stats *out);",
   "returns": "void",
   "params": [
    {
     "name": "ctx",
     "type": "const sona_ctx *"
    },
    {
     "name": "out",
     "type": "sona_lod_stats *"
    }
   ],
   "comment": "",
   "doc": "Fills `*out`. All zero before the first `sona_lod_set`. NULL arguments are ignored.",
   "page": "Crowds: level of detail and sprites",
   "anchor": "https://360sona.com/devs/docs/reference/c/crowds-level-of-detail-and-sprites.html#sona_lod_stats_get"
  },
  {
   "name": "sona_pose",
   "header": "sona.h",
   "section": "3.11 the data API",
   "signature": "sona_result sona_pose(sona_avatar *a, const sona_pose_data **out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "out",
     "type": "const sona_pose_data **"
    }
   ],
   "comment": "Valid until the next sona_update. SONA_E_NOT_READY before READY.",
   "doc": "The avatar's pose data, valid until the next `sona_update`. `SONA_E_NOT_READY` before `READY`.",
   "page": "The data API",
   "anchor": "https://360sona.com/devs/docs/reference/c/the-data-api.html#sona_pose"
  },
  {
   "name": "sona_pose_vertices",
   "header": "sona.h",
   "section": "3.11 the data API",
   "signature": "sona_result sona_pose_vertices(sona_avatar *a, uint32_t mesh, uint32_t space, float *positions, float *normals, size_t stride_floats);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "mesh",
     "type": "uint32_t"
    },
    {
     "name": "space",
     "type": "uint32_t"
    },
    {
     "name": "positions",
     "type": "float *"
    },
    {
     "name": "normals",
     "type": "float *"
    },
    {
     "name": "stride_floats",
     "type": "size_t"
    }
   ],
   "comment": "CPU skinning for hosts that cannot skin on the GPU. Writes vertex_count positions (and normals when not NULL) for one mesh, stride_floats apart (at least 3). SIMD where the CPU has it.",
   "doc": "CPU skinning, for hosts that cannot skin on the GPU. Writes `vertex_count` positions (and normals, when `normals` is not NULL) for one mesh, `stride_floats` apart (at least 3). `space` is `SONA_SPACE_AVATAR` or `SONA_SPACE_WORLD`. Uses SIMD where the CPU has it.",
   "page": "The data API",
   "anchor": "https://360sona.com/devs/docs/reference/c/the-data-api.html#sona_pose_vertices"
  },
  {
   "name": "sona_shading_get",
   "header": "sona.h",
   "section": "3.11 the data API",
   "signature": "sona_result sona_shading_get(sona_ctx *ctx, sona_shading *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "out",
     "type": "sona_shading *"
    }
   ],
   "comment": "PENDING until the data loads",
   "doc": "The fixed shading inputs, for hosts that rebuild the look in their own shaders: `irradiance` (16x16 per face, RGBA16F), `irradiance_gain` (1.0), `ao_gain` (0 in the SDK), `bloom_gain` (0.1875), `shadow_rows[12]` (the 3x4 light lookup), `rim[4]` (0.549, 0.502, 0.4039, 1.6). `SONA_PENDING` until the data files have loaded.",
   "page": "The data API",
   "anchor": "https://360sona.com/devs/docs/reference/c/the-data-api.html#sona_shading_get"
  },
  {
   "name": "sona_shader_source",
   "header": "sona.h",
   "section": "3.11 the data API",
   "signature": "const void * sona_shader_source(sona_shader_lang lang, sona_program prog, int stage, size_t *len);",
   "returns": "const void *",
   "params": [
    {
     "name": "lang",
     "type": "sona_shader_lang"
    },
    {
     "name": "prog",
     "type": "sona_program"
    },
    {
     "name": "stage",
     "type": "int"
    },
    {
     "name": "len",
     "type": "size_t *"
    }
   ],
   "comment": "stage: 0 vertex, 1 fragment. Text, or SPIR-V bytes. NULL when that language is not in this build.",
   "doc": "The SDK's own shaders, for hosts that draw themselves. `lang` is `SONA_LANG_GLSL_ES300`, `SONA_LANG_GLSL_330`, `SONA_LANG_SPIRV`, `SONA_LANG_HLSL` or `SONA_LANG_MSL`; `prog` is one of `SONA_PROG_SHADOW`, `GBUFFER`, `SSAO`, `BRIGHT`, `BLUR`, `PRESENT`, `CLOTH`, `SKIN`, `REFL`, `REFL_SKIN`, `CREDIT`; `stage` is 0 for vertex, 1 for fragment. Returns text, or SPIR-V bytes, with its length in `*len`; NULL when that language is not in this build.",
   "page": "The data API",
   "anchor": "https://360sona.com/devs/docs/reference/c/the-data-api.html#sona_shader_source"
  },
  {
   "name": "sona_renderer_create",
   "header": "sona.h",
   "section": "3.12 drawing with our backends",
   "signature": "sona_result sona_renderer_create(sona_ctx *ctx, const sona_device_desc *dev, sona_renderer **out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "dev",
     "type": "const sona_device_desc *"
    },
    {
     "name": "out",
     "type": "sona_renderer **"
    }
   ],
   "comment": "",
   "doc": "Makes a renderer on the host's device. `SONA_E_UNSUPPORTED` for a backend not compiled into this library.",
   "page": "Drawing with the SDK's backends",
   "anchor": "https://360sona.com/devs/docs/reference/c/drawing-with-the-sdks-backends.html#sona_renderer_create"
  },
  {
   "name": "sona_renderer_destroy",
   "header": "sona.h",
   "section": "3.12 drawing with our backends",
   "signature": "void sona_renderer_destroy(sona_renderer *r);",
   "returns": "void",
   "params": [
    {
     "name": "r",
     "type": "sona_renderer *"
    }
   ],
   "comment": "",
   "doc": "Frees the renderer and its GPU objects.",
   "page": "Drawing with the SDK's backends",
   "anchor": "https://360sona.com/devs/docs/reference/c/drawing-with-the-sdks-backends.html#sona_renderer_destroy"
  },
  {
   "name": "sona_draw",
   "header": "sona.h",
   "section": "3.12 drawing with our backends",
   "signature": "sona_result sona_draw(sona_renderer *r, const sona_view *view, const sona_target *target, const sona_draw_options *opts);",
   "returns": "sona_result",
   "params": [
    {
     "name": "r",
     "type": "sona_renderer *"
    },
    {
     "name": "view",
     "type": "const sona_view *"
    },
    {
     "name": "target",
     "type": "const sona_target *"
    },
    {
     "name": "opts",
     "type": "const sona_draw_options *"
    }
   ],
   "comment": "Draws every visible ready avatar, as posed by the last sona_update, folding each palette with this view. Each sona_draw and sona_snapshot is one frame; frames count from 1. Host state. The backend changes API state and does not restore it. GL and GLES: framebuffer bindings, viewport, program, vertex array, array and uniform buffer bindings, texture units 0..5 with their samplers, active texture, blend, depth, cull, front face, colour mask; GL_FRAMEBUFFER_SRGB is left off. D3D11: every stage's shaders, constant buffers, SRVs and samplers, input layout, topology, rasteriser, blend, depth-stencil, render targets, viewports. D3D12: root signature, pipeline state, descriptor heaps, viewports, scissors, render targets, primitive topology. Vulkan and Metal: only what is recorded; nothing is submitted. With sprites on (sona_lod_set) a draw that bakes new looks records the bake ahead of its frame and uses two frame indices (3.10b).",
   "doc": "Draws every visible ready avatar, as posed by the last `sona_update`, folding each palette with this view. Each `sona_draw` and `sona_snapshot` is one frame; frames count from 1.\n\nIt changes API state and does not restore it:\n\n- GL and GLES: framebuffer bindings, viewport, program, vertex array, array and uniform buffer bindings, texture units 0..5 with their samplers, active texture, blend, depth, cull, front face, colour mask. `GL_FRAMEBUFFER_SRGB` is left off.\n- D3D11: every stage's shaders, constant buffers, SRVs and samplers, input layout, topology, rasteriser, blend, depth-stencil, render targets, viewports.\n- D3D12: root signature, pipeline state, descriptor heaps, viewports, scissors, render targets, primitive topology.\n- Vulkan and Metal: only what is recorded; nothing is submitted. With sprites on (1.1, `sona_lod_set`) a draw that bakes new looks records the bake ahead of its frame and uses two frame indices.\n- With multisampling (1.1, on by default), GL and GLES also change the renderbuffer binding.\n\nOn Vulkan, D3D12 and Metal it returns `SONA_PENDING` once `frames_in_flight` frames are outstanding without `sona_renderer_frame_done`.",
   "page": "Drawing with the SDK's backends",
   "anchor": "https://360sona.com/devs/docs/reference/c/drawing-with-the-sdks-backends.html#sona_draw"
  },
  {
   "name": "sona_renderer_frame_index",
   "header": "sona.h",
   "section": "3.12 drawing with our backends",
   "signature": "uint64_t sona_renderer_frame_index(const sona_renderer *r);",
   "returns": "uint64_t",
   "params": [
    {
     "name": "r",
     "type": "const sona_renderer *"
    }
   ],
   "comment": "The index of the last frame recorded (0 before the first).",
   "doc": "The index of the last frame recorded (0 before the first).",
   "page": "Drawing with the SDK's backends",
   "anchor": "https://360sona.com/devs/docs/reference/c/drawing-with-the-sdks-backends.html#sona_renderer_frame_index"
  },
  {
   "name": "sona_renderer_frame_done",
   "header": "sona.h",
   "section": "3.12 drawing with our backends",
   "signature": "void sona_renderer_frame_done(sona_renderer *r, uint64_t completed_frame);",
   "returns": "void",
   "params": [
    {
     "name": "r",
     "type": "sona_renderer *"
    },
    {
     "name": "completed_frame",
     "type": "uint64_t"
    }
   ],
   "comment": "Vulkan, D3D12 and Metal: every frame up to and including this index has finished on the GPU. The per-frame rings and the gpu cache's releases wait for it. If the host does not call it, sona_draw returns SONA_PENDING once frames_in_flight frames are outstanding. GL and D3D11 ignore it.",
   "doc": "Vulkan, D3D12 and Metal: every frame up to and including `completed_frame` has finished on the GPU. The per-frame rings and the GPU cache's releases wait for it. GL and D3D11 ignore it.",
   "page": "Drawing with the SDK's backends",
   "anchor": "https://360sona.com/devs/docs/reference/c/drawing-with-the-sdks-backends.html#sona_renderer_frame_done"
  },
  {
   "name": "sona_renderer_lost",
   "header": "sona.h",
   "section": "3.12 drawing with our backends",
   "signature": "void sona_renderer_lost(sona_renderer *r);",
   "returns": "void",
   "params": [
    {
     "name": "r",
     "type": "sona_renderer *"
    }
   ],
   "comment": "After a device loss: forget every GPU object; the next sona_draw re-uploads (https://360sona.com/devs/docs/guides/device-loss.html).",
   "doc": "After a device loss: forget every GPU object. The next `sona_draw` uploads again.",
   "page": "Drawing with the SDK's backends",
   "anchor": "https://360sona.com/devs/docs/reference/c/drawing-with-the-sdks-backends.html#sona_renderer_lost"
  },
  {
   "name": "sona_renderer_reset",
   "header": "sona.h",
   "section": "3.12 drawing with our backends",
   "signature": "sona_result sona_renderer_reset(sona_renderer *r, const sona_device_desc *dev);",
   "returns": "sona_result",
   "params": [
    {
     "name": "r",
     "type": "sona_renderer *"
    },
    {
     "name": "dev",
     "type": "const sona_device_desc *"
    }
   ],
   "comment": "",
   "doc": "Starts the renderer again on a new device of the same backend, after `sona_renderer_lost`. Another backend is `SONA_E_ARGUMENT`.",
   "page": "Drawing with the SDK's backends",
   "anchor": "https://360sona.com/devs/docs/reference/c/drawing-with-the-sdks-backends.html#sona_renderer_reset"
  },
  {
   "name": "sona_snapshot",
   "header": "sona.h",
   "section": "3.12 drawing with our backends",
   "signature": "sona_result sona_snapshot(sona_renderer *r, const sona_view *view, uint32_t width, uint32_t height, const sona_draw_options *opts, uint8_t *rgba_out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "r",
     "type": "sona_renderer *"
    },
    {
     "name": "view",
     "type": "const sona_view *"
    },
    {
     "name": "width",
     "type": "uint32_t"
    },
    {
     "name": "height",
     "type": "uint32_t"
    },
    {
     "name": "opts",
     "type": "const sona_draw_options *"
    },
    {
     "name": "rgba_out",
     "type": "uint8_t *"
    }
   ],
   "comment": "Draws into an internal target, folding palettes with this view, and reads it back as straight RGBA8, row 0 at the top. Blocks until the GPU finishes this one frame; on Vulkan it submits on the device's VkQueue (keep other threads off it during the call), as sprite bakes do. The credit is drawn unless SONA_DRAW_NO_CREDIT. rgba_out holds width * height * 4 bytes.",
   "doc": "Draws into an internal target, folding palettes with this view, and reads it back as straight RGBA8, row 0 at the top. Blocks until the GPU finishes this one frame. On Vulkan it submits on the device's `VkQueue`, so no other thread may use that queue during the call. The credit is drawn unless `SONA_DRAW_NO_CREDIT`. `rgba_out` holds `width * height * 4` bytes.",
   "page": "Drawing with the SDK's backends",
   "anchor": "https://360sona.com/devs/docs/reference/c/drawing-with-the-sdks-backends.html#sona_snapshot"
  },
  {
   "name": "sona_png_encode",
   "header": "sona.h",
   "section": "3.12 drawing with our backends",
   "signature": "sona_result sona_png_encode(sona_ctx *ctx, const uint8_t *rgba, uint32_t width, uint32_t height, uint8_t **out, size_t *out_len);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "rgba",
     "type": "const uint8_t *"
    },
    {
     "name": "width",
     "type": "uint32_t"
    },
    {
     "name": "height",
     "type": "uint32_t"
    },
    {
     "name": "out",
     "type": "uint8_t **"
    },
    {
     "name": "out_len",
     "type": "size_t *"
    }
   ],
   "comment": "PNG bytes of an RGBA8 picture with the web's three tEXt chunks after IHDR (src/export/credit.js): Software \"360sona\", Source \"https://360sona.com\", Comment \"Powered by 360sona\". Free with sona_free.",
   "doc": "PNG bytes of an RGBA8 picture, with the web's three tEXt chunks after IHDR: Software \"360sona\", Source \"https://360sona.com\", Comment \"Powered by 360sona\". Free `*out` with `sona_free`.",
   "page": "Drawing with the SDK's backends",
   "anchor": "https://360sona.com/devs/docs/reference/c/drawing-with-the-sdks-backends.html#sona_png_encode"
  },
  {
   "name": "sona_free",
   "header": "sona.h",
   "section": "3.12 drawing with our backends",
   "signature": "void sona_free(sona_ctx *ctx, void *p);",
   "returns": "void",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "p",
     "type": "void *"
    }
   ],
   "comment": "",
   "doc": "Frees memory the library handed out (`sona_png_encode`), through the ctx's allocator.",
   "page": "Drawing with the SDK's backends",
   "anchor": "https://360sona.com/devs/docs/reference/c/drawing-with-the-sdks-backends.html#sona_free"
  },
  {
   "name": "sona_preview_defaults",
   "header": "sona.h",
   "section": "3.12b item previews (1.1)",
   "signature": "void sona_preview_defaults(sona_preview_options *o);",
   "returns": "void",
   "params": [
    {
     "name": "o",
     "type": "sona_preview_options *"
    }
   ],
   "comment": "",
   "doc": "Fills the defaults above. NULL does nothing.",
   "page": "Item previews",
   "anchor": "https://360sona.com/devs/docs/reference/c/item-previews.html#sona_preview_defaults"
  },
  {
   "name": "sona_item_preview_add",
   "header": "sona.h",
   "section": "3.12b item previews (1.1)",
   "signature": "sona_result sona_item_preview_add(sona_ctx *ctx, const char *item_id, const sona_preview_options *opts, sona_avatar **out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "item_id",
     "type": "const char *"
    },
    {
     "name": "opts",
     "type": "const sona_preview_options *"
    },
    {
     "name": "out",
     "type": "sona_avatar **"
    }
   ],
   "comment": "Queues a preview of one item id (any worn, face or head-shape item; SONA_E_ARGUMENT for anything else) and returns at once. It reaches READY like any avatar; NULL opts: defaults.",
   "doc": "Queues a preview of one item id (lowercase or uppercase) and returns at once. NULL `opts` takes the defaults. It reaches READY or FAILED through `sona_update` with the usual events. A missing item file does not fail it: it reaches READY without the item, and `sona_item_preview_bounds` says `SONA_E_NOT_FOUND`.\n\n- `SONA_E_ARGUMENT`: NULL `ctx` or `out`, an id that does not parse, an item that is not a worn item, a face item or a head shape (a clip, for example), `gender` above 2, a negative or non-finite `margin`, a non-finite `time`.\n- `SONA_E_LIMIT`: the ctx already holds `max_avatars` avatars.\n- `SONA_E_MEMORY`.\n\n`*out` is NULL on any error.",
   "page": "Item previews",
   "anchor": "https://360sona.com/devs/docs/reference/c/item-previews.html#sona_item_preview_add"
  },
  {
   "name": "sona_item_preview_bounds",
   "header": "sona.h",
   "section": "3.12b item previews (1.1)",
   "signature": "sona_result sona_item_preview_bounds(sona_avatar *a, float lo[3], float hi[3]);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "lo",
     "type": "float [3]"
    },
    {
     "name": "hi",
     "type": "float [3]"
    }
   ],
   "comment": "The item's world box, over the whole clip for a playing prop. Face and head-shape items give the head; a pair framed from one side (earrings, wristbands) gives the near one; a held prop leaves out a stray part set apart from the rest. Measured once, on the first call after READY. SONA_E_NOT_READY before READY; SONA_E_ARGUMENT for an avatar that is not a preview; SONA_E_NOT_FOUND when the item drew nothing (its file is missing).",
   "doc": "The item's box in world metres, over the whole clip for a playing prop. Face and head-shape items give the head; a pair framed from one side (earrings, wristbands) gives the near one; a held prop leaves out a stray part set apart from the rest. Measured once, on the first call to any of `_bounds`, `_view`, `_draw` or `_snapshot` after READY.\n\n`SONA_E_NOT_READY` before READY. `SONA_E_ARGUMENT` for NULL arguments or an avatar that is not a preview. `SONA_E_NOT_FOUND` when no triangle of the item was drawn (its file is missing).",
   "page": "Item previews",
   "anchor": "https://360sona.com/devs/docs/reference/c/item-previews.html#sona_item_preview_bounds"
  },
  {
   "name": "sona_item_preview_view",
   "header": "sona.h",
   "section": "3.12b item previews (1.1)",
   "signature": "sona_result sona_item_preview_view(sona_avatar *a, uint32_t width, uint32_t height, sona_view *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "width",
     "type": "uint32_t"
    },
    {
     "name": "height",
     "type": "uint32_t"
    },
    {
     "name": "out",
     "type": "sona_view *"
    }
   ],
   "comment": "The framed camera for a width x height picture: the slot's view preset gives the angle, the item's box the target and the distance. Every field of *out is set. Errors as sona_item_preview_bounds, but an item that drew nothing still gets its slot's preset camera (SONA_OK).",
   "doc": "The framed camera for a `width` x `height` picture: the slot's view preset gives the angle, the item's box the target and the distance. Every field of `*out` is set. Errors as `sona_item_preview_bounds`, except that an item that drew nothing still gets its slot's preset camera and `SONA_OK`.",
   "page": "Item previews",
   "anchor": "https://360sona.com/devs/docs/reference/c/item-previews.html#sona_item_preview_view"
  },
  {
   "name": "sona_item_preview_draw",
   "header": "sona.h",
   "section": "3.12b item previews (1.1)",
   "signature": "sona_result sona_item_preview_draw(sona_renderer *r, sona_avatar *a, const sona_view *view, const sona_target *target, const sona_draw_options *opts);",
   "returns": "sona_result",
   "params": [
    {
     "name": "r",
     "type": "sona_renderer *"
    },
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "view",
     "type": "const sona_view *"
    },
    {
     "name": "target",
     "type": "const sona_target *"
    },
    {
     "name": "opts",
     "type": "const sona_draw_options *"
    }
   ],
   "comment": "sona_draw and sona_snapshot with only this preview in the frame. view NULL: sona_item_preview_view for the target's size. One frame each, as sona_draw and sona_snapshot.",
   "doc": "`sona_draw` with only this preview in the frame. NULL `view`: `sona_item_preview_view` for the target's size. One frame, with the frames-in-flight and host-state rules of `sona_draw`. The renderer must belong to the preview's ctx (`SONA_E_ARGUMENT` otherwise). It also returns what `sona_draw` returns.",
   "page": "Item previews",
   "anchor": "https://360sona.com/devs/docs/reference/c/item-previews.html#sona_item_preview_draw"
  },
  {
   "name": "sona_item_preview_snapshot",
   "header": "sona.h",
   "section": "3.12b item previews (1.1)",
   "signature": "sona_result sona_item_preview_snapshot(sona_renderer *r, sona_avatar *a, uint32_t width, uint32_t height, const sona_draw_options *opts, uint8_t *rgba_out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "r",
     "type": "sona_renderer *"
    },
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "width",
     "type": "uint32_t"
    },
    {
     "name": "height",
     "type": "uint32_t"
    },
    {
     "name": "opts",
     "type": "const sona_draw_options *"
    },
    {
     "name": "rgba_out",
     "type": "uint8_t *"
    }
   ],
   "comment": "",
   "doc": "`sona_snapshot` of this preview alone, framed for `width` x `height`. Blocks until the GPU finishes and writes `width * height * 4` bytes of straight RGBA8, row 0 at the top. The credit is drawn unless `SONA_DRAW_NO_CREDIT`; a picker usually passes the flag and shows the credit once elsewhere, as the licence still requires.",
   "page": "Item previews",
   "anchor": "https://360sona.com/devs/docs/reference/c/item-previews.html#sona_item_preview_snapshot"
  },
  {
   "name": "sona_item_thumbnail",
   "header": "sona.h",
   "section": "3.12d item thumbnails (1.2, https://360sona.com/devs/docs/guides/item-preview.html)",
   "signature": "sona_result sona_item_thumbnail(sona_ctx *ctx, const char *item_id, sona_thumbnail_fn fn, void *user);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "item_id",
     "type": "const char *"
    },
    {
     "name": "fn",
     "type": "sona_thumbnail_fn"
    },
    {
     "name": "user",
     "type": "void *"
    }
   ],
   "comment": "",
   "doc": "",
   "page": "",
   "anchor": ""
  },
  {
   "name": "sona_quality_defaults",
   "header": "sona.h",
   "section": "3.12c rendering quality (1.1)",
   "signature": "void sona_quality_defaults(sona_quality *q);",
   "returns": "void",
   "params": [
    {
     "name": "q",
     "type": "sona_quality *"
    }
   ],
   "comment": "the web SDK's: SONA_MSAA_AUTO, MIPS | CUTOUT_MIPS",
   "doc": "The web SDK's defaults: `msaa = SONA_MSAA_AUTO`, `flags = SONA_QUALITY_MIPS | SONA_QUALITY_CUTOUT_MIPS`. NULL does nothing.",
   "page": "Rendering quality",
   "anchor": "https://360sona.com/devs/docs/reference/c/rendering-quality.html#sona_quality_defaults"
  },
  {
   "name": "sona_renderer_set_quality",
   "header": "sona.h",
   "section": "3.12c rendering quality (1.1)",
   "signature": "sona_result sona_renderer_set_quality(sona_renderer *r, const sona_quality *q);",
   "returns": "sona_result",
   "params": [
    {
     "name": "r",
     "type": "sona_renderer *"
    },
    {
     "name": "q",
     "type": "const sona_quality *"
    }
   ],
   "comment": "From the next sona_draw or sona_snapshot. NULL q: the defaults. SONA_E_ARGUMENT for any other msaa or an unknown flag. A change of mip flags uploads each avatar's textures again at its next draw.",
   "doc": "Sets the quality from the next `sona_draw` or `sona_snapshot`. NULL `q` means the defaults. More samples than the device has are clamped to the most it has. A change of mip flags uploads each avatar's textures again at its next draw. `SONA_E_ARGUMENT` for a NULL renderer, another `msaa` value, or an unknown flag; the renderer keeps its old quality then. `sona_renderer_reset` keeps the quality and works out the sample count again for the new device.",
   "page": "Rendering quality",
   "anchor": "https://360sona.com/devs/docs/reference/c/rendering-quality.html#sona_renderer_set_quality"
  },
  {
   "name": "sona_renderer_quality",
   "header": "sona.h",
   "section": "3.12c rendering quality (1.1)",
   "signature": "sona_result sona_renderer_quality(const sona_renderer *r, sona_quality *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "r",
     "type": "const sona_renderer *"
    },
    {
     "name": "out",
     "type": "sona_quality *"
    }
   ],
   "comment": "What the renderer uses: msaa is the sample count the backend draws with, asked of it at each call. 1 when the device cannot multisample, and 1 for good once a backend could not make its multisampled target (it falls back once and logs). After a frame over 4096 x 4096 / samples, the halved count that frame used.",
   "doc": "What the renderer draws with. `out->msaa` is the sample count the backend really uses, asked of it at each call: never `SONA_MSAA_AUTO`, and 1 when the device cannot multisample. When a backend cannot make its multisampled target it logs once and draws one sample from then on, and `out->msaa` is 1 after that. After a frame over the 4096 x 4096 budget it is the halved count that frame used. `out->flags` are the flags as set, with `SONA_QUALITY_CUTOUT_MIPS` cleared when `SONA_QUALITY_MIPS` is not set. `SONA_E_ARGUMENT` when `r` or `out` is NULL.",
   "page": "Rendering quality",
   "anchor": "https://360sona.com/devs/docs/reference/c/rendering-quality.html#sona_renderer_quality"
  },
  {
   "name": "sona_renderer_vk_features",
   "header": "sona.h",
   "section": "3.12c rendering quality (1.1)",
   "signature": "sona_result sona_renderer_vk_features(sona_renderer *r, uint32_t features);",
   "returns": "sona_result",
   "params": [
    {
     "name": "r",
     "type": "sona_renderer *"
    },
    {
     "name": "features",
     "type": "uint32_t"
    }
   ],
   "comment": "",
   "doc": "Vulkan only: the optional `VkPhysicalDeviceFeatures` the host enabled when it created `sona_device_desc.u.vk.device`, which the backend cannot ask the device for. `SONA_VK_FEATURE_BINDLESS` (1, `shaderSampledImageArrayDynamicIndexing`) puts every texture in one descriptor set, so a pass binds one set and the draws only draw; `SONA_VK_FEATURE_MULTI_DRAW` (2, `multiDrawIndirect` and `drawIndirectFirstInstance`, only with BINDLESS) makes each run of draws one `vkCmdDrawIndexedIndirect`. The picture is the same byte for byte; the CPU time to record a frame drops (the guide has the numbers). From the next frame; 0 goes back to a set per draw. A renderer starts with 0, and again after `sona_renderer_reset`. `SONA_E_UNSUPPORTED` on any other backend or when the physical device lacks a feature (nothing changes), `SONA_E_ARGUMENT` for a NULL renderer, an unknown bit, or MULTI_DRAW without BINDLESS. The guide: [sdk-native/vulkan-features.md](sdk-native/vulkan-features.md).",
   "page": "Rendering quality",
   "anchor": "https://360sona.com/devs/docs/reference/c/rendering-quality.html#sona_renderer_vk_features"
  },
  {
   "name": "sona_tier_defaults",
   "header": "sona.h",
   "section": "3.12c rendering quality (1.1)",
   "signature": "void sona_tier_defaults(sona_tier_options *o);",
   "returns": "void",
   "params": [
    {
     "name": "o",
     "type": "sona_tier_options *"
    }
   ],
   "comment": "",
   "doc": "`size` set; `target_fps` 60, `avatars` 20.",
   "page": "Rendering quality",
   "anchor": "https://360sona.com/devs/docs/reference/c/rendering-quality.html#sona_tier_defaults"
  },
  {
   "name": "sona_tier_apply",
   "header": "sona.h",
   "section": "3.12c rendering quality (1.1)",
   "signature": "sona_result sona_tier_apply(sona_ctx *ctx, sona_renderer *r, const sona_tier_options *o);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "r",
     "type": "sona_renderer *"
    },
    {
     "name": "o",
     "type": "const sona_tier_options *"
    }
   ],
   "comment": "r NULL: the ctx's side only. o NULL: the defaults.",
   "doc": "`r` NULL: the ctx's side only. o NULL: the defaults.",
   "page": "Rendering quality",
   "anchor": "https://360sona.com/devs/docs/reference/c/rendering-quality.html#sona_tier_apply"
  },
  {
   "name": "sona_tier_detect",
   "header": "sona.h",
   "section": "3.12c rendering quality (1.1)",
   "signature": "sona_result sona_tier_detect(const sona_renderer *r, uint32_t *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "r",
     "type": "const sona_renderer *"
    },
    {
     "name": "out",
     "type": "uint32_t *"
    }
   ],
   "comment": "The tier the device behind r suits: SONA_TIER_LOW .. SONA_TIER_HIGH.",
   "doc": "The tier the device behind r suits: `SONA_TIER_LOW` .. `SONA_TIER_HIGH`.",
   "page": "Rendering quality",
   "anchor": "https://360sona.com/devs/docs/reference/c/rendering-quality.html#sona_tier_detect"
  },
  {
   "name": "sona_pixel_defaults",
   "header": "sona.h",
   "section": "3.12d 2D outputs: sprite sheets, stickers and pixel art (1.2)",
   "signature": "void sona_pixel_defaults(sona_pixel_options *o);",
   "returns": "void",
   "params": [
    {
     "name": "o",
     "type": "sona_pixel_options *"
    }
   ],
   "comment": "",
   "doc": "`size` set, `height` 32, `colours` 16, `flags` `SONA_PIXEL_OUTLINE`, `outline` 0 (from the palette), `alpha_cut` 0.5, no palette. NULL does nothing.",
   "page": "2D outputs",
   "anchor": "https://360sona.com/devs/docs/reference/c/2d-outputs.html#sona_pixel_defaults"
  },
  {
   "name": "sona_pixel_art",
   "header": "sona.h",
   "section": "3.12d 2D outputs: sprite sheets, stickers and pixel art (1.2)",
   "signature": "sona_result sona_pixel_art(sona_ctx *ctx, const sona_picture *in, const sona_pixel_options *o, sona_picture *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "in",
     "type": "const sona_picture *"
    },
    {
     "name": "o",
     "type": "const sona_pixel_options *"
    },
    {
     "name": "out",
     "type": "sona_picture *"
    }
   ],
   "comment": "Crisp pixel art from any picture (a sticker, a snapshot): the figure's box (alpha 8 and up) is scaled with an area filter to height (less the outline), each pixel is opaque or clear by alpha_cut, and colours are mapped to the palette. No blur, no half-transparent pixels. out->rgba is freed with sona_free. SONA_E_NOT_FOUND when no pixel reaches alpha 8.",
   "doc": "The figure's box of `in` (alpha 8 and up; the whole picture with `SONA_PIXEL_KEEP_FRAME`) scaled with an area filter to exactly `o->height` pixels including the outline, every pixel opaque or clear at `alpha_cut`, colours mapped to `o->palette` or to `o->colours` colours made from the picture, optionally dithered (`SONA_PIXEL_DITHER`) and outlined (`SONA_PIXEL_OUTLINE`, `_OUTLINE_THIN`). `out->rgba` is freed with `sona_free`. `SONA_E_NOT_FOUND` when no pixel reaches alpha 8 or none is opaque enough at that size; `SONA_E_ARGUMENT` for a value out of range or a picture too wide for the height (over 4096 pixels).",
   "page": "2D outputs",
   "anchor": "https://360sona.com/devs/docs/reference/c/2d-outputs.html#sona_pixel_art"
  },
  {
   "name": "sona_pixel_palette",
   "header": "sona.h",
   "section": "3.12d 2D outputs: sprite sheets, stickers and pixel art (1.2)",
   "signature": "sona_result sona_pixel_palette(sona_ctx *ctx, const sona_picture *images, uint32_t image_count, uint32_t colours, uint32_t palette[256], uint32_t *count);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "images",
     "type": "const sona_picture *"
    },
    {
     "name": "image_count",
     "type": "uint32_t"
    },
    {
     "name": "colours",
     "type": "uint32_t"
    },
    {
     "name": "palette",
     "type": "uint32_t [256]"
    },
    {
     "name": "count",
     "type": "uint32_t *"
    }
   ],
   "comment": "One palette for several pictures, so frames of one character share it: median cut over every pixel of alpha 128 and up, refined by k-means. Writes up to colours (2..256) entries as 0xFFRRGGBB, darkest first, and their count (fewer when the pictures hold fewer colours). SONA_E_NOT_FOUND when no pixel counts.",
   "doc": "One palette of up to `colours` (2..256) entries over every pixel of alpha 128 and up in the pictures: median cut, then k-means, integer maths. Entries are `0xFFRRGGBB`, darkest first; `*count` may be below `colours` when the pictures hold fewer colours. Pass it as `sona_pixel_options.palette` so frames share colours. `SONA_E_NOT_FOUND` when no pixel counts.",
   "page": "2D outputs",
   "anchor": "https://360sona.com/devs/docs/reference/c/2d-outputs.html#sona_pixel_palette"
  },
  {
   "name": "sona_sticker_defaults",
   "header": "sona.h",
   "section": "3.12d 2D outputs: sprite sheets, stickers and pixel art (1.2)",
   "signature": "void sona_sticker_defaults(sona_sticker_options *o);",
   "returns": "void",
   "params": [
    {
     "name": "o",
     "type": "sona_sticker_options *"
    }
   ],
   "comment": "",
   "doc": "`size` set, `pixels` 512, `time` -1, `framing` `SONA_PRESET_FULL`, `outline_px` 10, `outline` `0xffffffff`, `shadow` `0x59000000` (off while `shadow_px` is 0), `padding` 8. NULL does nothing.",
   "page": "2D outputs",
   "anchor": "https://360sona.com/devs/docs/reference/c/2d-outputs.html#sona_sticker_defaults"
  },
  {
   "name": "sona_sticker",
   "header": "sona.h",
   "section": "3.12d 2D outputs: sprite sheets, stickers and pixel art (1.2)",
   "signature": "sona_result sona_sticker(sona_renderer *r, sona_avatar *a, const sona_sticker_options *o, sona_picture *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "r",
     "type": "sona_renderer *"
    },
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "o",
     "type": "const sona_sticker_options *"
    },
    {
     "name": "out",
     "type": "sona_picture *"
    }
   ],
   "comment": "A transparent, outlined cut-out of the avatar in a pose or an emote's frame. out->rgba is freed with sona_free. SONA_E_NOT_FOUND when the avatar drew nothing.",
   "doc": "A transparent cut-out of the avatar turned `turn_deg` from facing the camera, at `time` seconds into `clip` (negative: its middle; NULL clip: the pose it has now), framed whole (`SONA_PRESET_FULL`) or by the console's `UPPER`, `BUST` and `FACE` framings, drawn at twice the size and brought down so its longer side is `pixels`, outline included; then the outline, the drop shadow, `padding`, and with `SONA_STICKER_SQUARE` a square canvas. The credit badge is stamped bottom right unless `draw_flags` has `SONA_DRAW_NO_CREDIT`. `out->rgba` is freed with `sona_free`. `SONA_E_NOT_READY` before READY, `SONA_E_ARGUMENT` for an item preview, a renderer of another ctx or an option out of range, `SONA_E_NOT_FOUND` when the avatar drew nothing or the clip's file cannot be read, `SONA_PENDING` while the clip loads.",
   "page": "2D outputs",
   "anchor": "https://360sona.com/devs/docs/reference/c/2d-outputs.html#sona_sticker"
  },
  {
   "name": "sona_sheet_defaults",
   "header": "sona.h",
   "section": "3.12d 2D outputs: sprite sheets, stickers and pixel art (1.2)",
   "signature": "void sona_sheet_defaults(sona_sheet_options *o);",
   "returns": "void",
   "params": [
    {
     "name": "o",
     "type": "sona_sheet_options *"
    }
   ],
   "comment": "",
   "doc": "`size` set, 8 frames, 8 directions, `px_per_metre` 64, `padding` 2, `max_page` 4096, `draw_flags` `SONA_DRAW_NO_BLOOM`; every other field 0 (the whole clip, facing the camera first, side on, orthographic, packed and trimmed). NULL does nothing.",
   "page": "2D outputs",
   "anchor": "https://360sona.com/devs/docs/reference/c/2d-outputs.html#sona_sheet_defaults"
  },
  {
   "name": "sona_sheet_render",
   "header": "sona.h",
   "section": "3.12d 2D outputs: sprite sheets, stickers and pixel art (1.2)",
   "signature": "sona_result sona_sheet_render(sona_renderer *r, sona_avatar *a, const sona_sheet_options *o, sona_sheet **out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "r",
     "type": "sona_renderer *"
    },
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "o",
     "type": "const sona_sheet_options *"
    },
    {
     "name": "out",
     "type": "sona_sheet **"
    }
   ],
   "comment": "Renders the clip at frames x directions into trimmed frames packed on pages. The sheet is the caller's until sona_sheet_free. SONA_E_LIMIT when a frame cannot fit max_page or the sheet would pass 1 GB.",
   "doc": "Renders `frames` x `directions` pictures of the clip under one fixed camera (looking down by `pitch_deg`, orthographic unless `fov_deg`) at `px_per_metre`, the hips held in place unless `SONA_SHEET_ROOT_MOTION`. Frames are trimmed (`SONA_SHEET_NO_TRIM`: whole cells), identical ones share a rectangle (`SONA_SHEET_NO_DEDUP`), and they are packed on pages of at most `max_page` (`SONA_SHEET_POW2`: power-of-two sides), or with `SONA_SHEET_GRID` laid out a row per direction. With `o->pixel` the frames are pixel art with one palette. The sheet is the caller's until `sona_sheet_free`, which must come before `sona_close`. Errors as `sona_sticker`, plus `SONA_E_LIMIT` when a frame does not fit `max_page`, a cell needs a render over 8192 pixels, or the cells would pass the 1 GB limit. `*out` is NULL on any error.",
   "page": "2D outputs",
   "anchor": "https://360sona.com/devs/docs/reference/c/2d-outputs.html#sona_sheet_render"
  },
  {
   "name": "sona_sheet_free",
   "header": "sona.h",
   "section": "3.12d 2D outputs: sprite sheets, stickers and pixel art (1.2)",
   "signature": "void sona_sheet_free(sona_sheet *s);",
   "returns": "void",
   "params": [
    {
     "name": "s",
     "type": "sona_sheet *"
    }
   ],
   "comment": "",
   "doc": "Frees the sheet, its pages and frames. NULL does nothing.",
   "page": "2D outputs",
   "anchor": "https://360sona.com/devs/docs/reference/c/2d-outputs.html#sona_sheet_free"
  },
  {
   "name": "sona_sheet_page_count",
   "header": "sona.h",
   "section": "3.12d 2D outputs: sprite sheets, stickers and pixel art (1.2)",
   "signature": "uint32_t sona_sheet_page_count(const sona_sheet *s);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "s",
     "type": "const sona_sheet *"
    }
   ],
   "comment": "",
   "doc": "The number of pages; 0 for NULL.",
   "page": "2D outputs",
   "anchor": "https://360sona.com/devs/docs/reference/c/2d-outputs.html#sona_sheet_page_count"
  },
  {
   "name": "sona_sheet_page",
   "header": "sona.h",
   "section": "3.12d 2D outputs: sprite sheets, stickers and pixel art (1.2)",
   "signature": "sona_result sona_sheet_page(const sona_sheet *s, uint32_t page, sona_picture *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "s",
     "type": "const sona_sheet *"
    },
    {
     "name": "page",
     "type": "uint32_t"
    },
    {
     "name": "out",
     "type": "sona_picture *"
    }
   ],
   "comment": "The page's pixels, owned by the sheet (do not free; valid until sona_sheet_free).",
   "doc": "One page's pixels, owned by the sheet: do not free them; valid until `sona_sheet_free`. `SONA_E_ARGUMENT` past the last page.",
   "page": "2D outputs",
   "anchor": "https://360sona.com/devs/docs/reference/c/2d-outputs.html#sona_sheet_page"
  },
  {
   "name": "sona_sheet_frame_count",
   "header": "sona.h",
   "section": "3.12d 2D outputs: sprite sheets, stickers and pixel art (1.2)",
   "signature": "uint32_t sona_sheet_frame_count(const sona_sheet *s);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "s",
     "type": "const sona_sheet *"
    }
   ],
   "comment": "",
   "doc": "`frames * directions`; 0 for NULL.",
   "page": "2D outputs",
   "anchor": "https://360sona.com/devs/docs/reference/c/2d-outputs.html#sona_sheet_frame_count"
  },
  {
   "name": "sona_sheet_frame_get",
   "header": "sona.h",
   "section": "3.12d 2D outputs: sprite sheets, stickers and pixel art (1.2)",
   "signature": "sona_result sona_sheet_frame_get(const sona_sheet *s, uint32_t index, sona_sheet_frame *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "s",
     "type": "const sona_sheet *"
    },
    {
     "name": "index",
     "type": "uint32_t"
    },
    {
     "name": "out",
     "type": "sona_sheet_frame *"
    }
   ],
   "comment": "",
   "doc": "One frame (index = direction * frames + frame): its page and rectangle, where the rectangle sits in the full cell (`trim_x`, `trim_y`), the cell's size, the pivot (the avatar's feet) in the cell, its direction, facing, time, duration and `alias` (the first frame with the same rectangle). `SONA_E_ARGUMENT` past the last frame.",
   "page": "2D outputs",
   "anchor": "https://360sona.com/devs/docs/reference/c/2d-outputs.html#sona_sheet_frame_get"
  },
  {
   "name": "sona_sheet_atlas",
   "header": "sona.h",
   "section": "3.12d 2D outputs: sprite sheets, stickers and pixel art (1.2)",
   "signature": "sona_result sona_sheet_atlas(const sona_sheet *s, uint32_t format, uint32_t page, const char *image, char **json, size_t *len);",
   "returns": "sona_result",
   "params": [
    {
     "name": "s",
     "type": "const sona_sheet *"
    },
    {
     "name": "format",
     "type": "uint32_t"
    },
    {
     "name": "page",
     "type": "uint32_t"
    },
    {
     "name": "image",
     "type": "const char *"
    },
    {
     "name": "json",
     "type": "char **"
    },
    {
     "name": "len",
     "type": "size_t *"
    }
   ],
   "comment": "The atlas of one page as JSON text, NUL-terminated (free with sona_free on the sheet's ctx): Aseprite's array form (a frame tag per direction, a pivot slice) or TexturePacker's hash form (pivots, an animation per direction). image is the page's file name for meta.image; \"{n}\" in it becomes the page number. page SONA_ATLAS_ALL_PAGES with TexturePacker writes every page as one multi-atlas file.",
   "doc": "The atlas of one page as NUL-terminated JSON, freed with `sona_free` on the sheet's ctx. `SONA_ATLAS_ASEPRITE`: Aseprite's array form, a frame tag per direction and a `pivot` slice. `SONA_ATLAS_TEXTUREPACKER`: TexturePacker's hash form with a pivot per frame and an animation per direction; with `page` `SONA_ATLAS_ALL_PAGES`, every page in one multi-atlas file. Frames are named `<name>_<direction>_<nnn>`. `image` is the page file's name for `meta.image` (`{n}` becomes the page number; NULL: `sheet-<n>.png`). `SONA_E_ARGUMENT` for an unknown format, a page past the last, or ALL_PAGES with Aseprite.",
   "page": "2D outputs",
   "anchor": "https://360sona.com/devs/docs/reference/c/2d-outputs.html#sona_sheet_atlas"
  },
  {
   "name": "sona_camera_preset",
   "header": "sona.h",
   "section": "3.13 camera helpers (pure maths, as sdk/src/camera.js)",
   "signature": "sona_result sona_camera_preset(const sona_avatar *a, sona_preset p, sona_view *view);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "const sona_avatar *"
    },
    {
     "name": "p",
     "type": "sona_preset"
    },
    {
     "name": "view",
     "type": "sona_view *"
    }
   ],
   "comment": "Sets view->eye and view->target to one of the console's framings on one ready avatar.",
   "doc": "Sets `view->eye` and `view->target` to one of the console's framings on one ready avatar.",
   "page": "Camera helpers",
   "anchor": "https://360sona.com/devs/docs/reference/c/camera-helpers.html#sona_camera_preset"
  },
  {
   "name": "sona_camera_fit_crowd",
   "header": "sona.h",
   "section": "3.13 camera helpers (pure maths, as sdk/src/camera.js)",
   "signature": "void sona_camera_fit_crowd(const sona_ctx *ctx, sona_view *view);",
   "returns": "void",
   "params": [
    {
     "name": "ctx",
     "type": "const sona_ctx *"
    },
    {
     "name": "view",
     "type": "sona_view *"
    }
   ],
   "comment": "Fits every ready avatar (web preset \"crowd\"). Keeps fov, near, far, width and height.",
   "doc": "Fits every ready avatar in view (the web's preset `\"crowd\"`). Keeps fov, near, far, width and height.",
   "page": "Camera helpers",
   "anchor": "https://360sona.com/devs/docs/reference/c/camera-helpers.html#sona_camera_fit_crowd"
  },
  {
   "name": "sona_camera_orbit",
   "header": "sona.h",
   "section": "3.13 camera helpers (pure maths, as sdk/src/camera.js)",
   "signature": "void sona_camera_orbit(sona_view *view, const double target[3], double yaw_deg, double pitch_deg, double distance);",
   "returns": "void",
   "params": [
    {
     "name": "view",
     "type": "sona_view *"
    },
    {
     "name": "target",
     "type": "const double [3]"
    },
    {
     "name": "yaw_deg",
     "type": "double"
    },
    {
     "name": "pitch_deg",
     "type": "double"
    },
    {
     "name": "distance",
     "type": "double"
    }
   ],
   "comment": "",
   "doc": "Places the eye on an orbit around `target`. Hosts wire their own input to it.",
   "page": "Camera helpers",
   "anchor": "https://360sona.com/devs/docs/reference/c/camera-helpers.html#sona_camera_orbit"
  },
  {
   "name": "sona_view_matrices",
   "header": "sona.h",
   "section": "3.13 camera helpers (pure maths, as sdk/src/camera.js)",
   "signature": "void sona_view_matrices(const sona_view *view, float view_m[16], float proj_m[16]);",
   "returns": "void",
   "params": [
    {
     "name": "view",
     "type": "const sona_view *"
    },
    {
     "name": "view_m",
     "type": "float [16]"
    },
    {
     "name": "proj_m",
     "type": "float [16]"
    }
   ],
   "comment": "Row-vector view and projection (D3D depth 0..1), for hosts that draw themselves. Double maths, one float store per element, as the web.",
   "doc": "Row-vector view and projection matrices (D3D depth 0..1), for hosts that draw themselves. Double maths, one float store per element, as the web.",
   "page": "Camera helpers",
   "anchor": "https://360sona.com/devs/docs/reference/c/camera-helpers.html#sona_view_matrices"
  },
  {
   "name": "sona_manifest_parse",
   "header": "sona.h",
   "section": "3.14 manifests (pure; no ctx needed)",
   "signature": "sona_result sona_manifest_parse(const uint8_t bytes[SONA_MANIFEST_BYTES], sona_manifest *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "bytes",
     "type": "const uint8_t [SONA_MANIFEST_BYTES]"
    },
    {
     "name": "out",
     "type": "sona_manifest *"
    }
   ],
   "comment": "",
   "doc": "Reads 1000 bytes into a `sona_manifest`.",
   "page": "Manifests",
   "anchor": "https://360sona.com/devs/docs/reference/c/manifests.html#sona_manifest_parse"
  },
  {
   "name": "sona_manifest_write",
   "header": "sona.h",
   "section": "3.14 manifests (pure; no ctx needed)",
   "signature": "sona_result sona_manifest_write(const sona_manifest *m, uint8_t out[SONA_MANIFEST_BYTES]);",
   "returns": "sona_result",
   "params": [
    {
     "name": "m",
     "type": "const sona_manifest *"
    },
    {
     "name": "out",
     "type": "uint8_t [SONA_MANIFEST_BYTES]"
    }
   ],
   "comment": "Byte-exact: write(parse(x)) == x for every manifest.",
   "doc": "Writes it back. Byte-exact: `write(parse(x)) == x` for every manifest.",
   "page": "Manifests",
   "anchor": "https://360sona.com/devs/docs/reference/c/manifests.html#sona_manifest_write"
  },
  {
   "name": "sona_slot_of",
   "header": "sona.h",
   "section": "3.14 manifests (pure; no ctx needed)",
   "signature": "sona_route sona_slot_of(const sona_guid *id, uint32_t *mask_out);",
   "returns": "sona_route",
   "params": [
    {
     "name": "id",
     "type": "const sona_guid *"
    },
    {
     "name": "mask_out",
     "type": "uint32_t *"
    }
   ],
   "comment": "",
   "doc": "Where an item id goes, and its slot mask in `*mask_out`.",
   "page": "Manifests",
   "anchor": "https://360sona.com/devs/docs/reference/c/manifests.html#sona_slot_of"
  },
  {
   "name": "sona_guid_parse",
   "header": "sona.h",
   "section": "3.14 manifests (pure; no ctx needed)",
   "signature": "sona_result sona_guid_parse(const char *text, sona_guid *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "text",
     "type": "const char *"
    },
    {
     "name": "out",
     "type": "sona_guid *"
    }
   ],
   "comment": "",
   "doc": "Parses the 36-character text form.",
   "page": "Manifests",
   "anchor": "https://360sona.com/devs/docs/reference/c/manifests.html#sona_guid_parse"
  },
  {
   "name": "sona_guid_format",
   "header": "sona.h",
   "section": "3.14 manifests (pure; no ctx needed)",
   "signature": "void sona_guid_format(const sona_guid *id, char out[SONA_ID_CHARS]);",
   "returns": "void",
   "params": [
    {
     "name": "id",
     "type": "const sona_guid *"
    },
    {
     "name": "out",
     "type": "char [SONA_ID_CHARS]"
    }
   ],
   "comment": "",
   "doc": "Writes the lowercase 36-character form and a NUL.",
   "page": "Manifests",
   "anchor": "https://360sona.com/devs/docs/reference/c/manifests.html#sona_guid_format"
  },
  {
   "name": "sona_base64_decode",
   "header": "sona.h",
   "section": "3.14 manifests (pure; no ctx needed)",
   "signature": "sona_result sona_base64_decode(const char *text, uint8_t *out, size_t cap, size_t *len);",
   "returns": "sona_result",
   "params": [
    {
     "name": "text",
     "type": "const char *"
    },
    {
     "name": "out",
     "type": "uint8_t *"
    },
    {
     "name": "cap",
     "type": "size_t"
    },
    {
     "name": "len",
     "type": "size_t *"
    }
   ],
   "comment": "",
   "doc": "Decodes base64 into at most `cap` bytes, and the length in `*len`.",
   "page": "Manifests",
   "anchor": "https://360sona.com/devs/docs/reference/c/manifests.html#sona_base64_decode"
  },
  {
   "name": "sona_manifest_wear",
   "header": "sona.h",
   "section": "3.14 manifests (pure; no ctx needed)",
   "signature": "sona_result sona_manifest_wear(sona_manifest *m, const sona_guid *item, const uint32_t colours[3], uint32_t flags);",
   "returns": "sona_result",
   "params": [
    {
     "name": "m",
     "type": "sona_manifest *"
    },
    {
     "name": "item",
     "type": "const sona_guid *"
    },
    {
     "name": "colours",
     "type": "const uint32_t [3]"
    },
    {
     "name": "flags",
     "type": "uint32_t"
    }
   ],
   "comment": "",
   "doc": "Puts an item on, with its three colours.",
   "page": "Manifests",
   "anchor": "https://360sona.com/devs/docs/reference/c/manifests.html#sona_manifest_wear"
  },
  {
   "name": "sona_manifest_unwear",
   "header": "sona.h",
   "section": "3.14 manifests (pure; no ctx needed)",
   "signature": "sona_result sona_manifest_unwear(sona_manifest *m, uint32_t slot_mask, uint32_t flags);",
   "returns": "sona_result",
   "params": [
    {
     "name": "m",
     "type": "sona_manifest *"
    },
    {
     "name": "slot_mask",
     "type": "uint32_t"
    },
    {
     "name": "flags",
     "type": "uint32_t"
    }
   ],
   "comment": "",
   "doc": "Takes off what is in the slots of `slot_mask`.",
   "page": "Manifests",
   "anchor": "https://360sona.com/devs/docs/reference/c/manifests.html#sona_manifest_unwear"
  },
  {
   "name": "sona_manifest_undress_all",
   "header": "sona.h",
   "section": "3.14 manifests (pure; no ctx needed)",
   "signature": "sona_result sona_manifest_undress_all(sona_manifest *m);",
   "returns": "sona_result",
   "params": [
    {
     "name": "m",
     "type": "sona_manifest *"
    }
   ],
   "comment": "",
   "doc": "Takes everything off.",
   "page": "Manifests",
   "anchor": "https://360sona.com/devs/docs/reference/c/manifests.html#sona_manifest_undress_all"
  },
  {
   "name": "sona_manifest_set_colour",
   "header": "sona.h",
   "section": "3.14 manifests (pure; no ctx needed)",
   "signature": "sona_result sona_manifest_set_colour(sona_manifest *m, uint32_t colour_slot, uint32_t argb);",
   "returns": "sona_result",
   "params": [
    {
     "name": "m",
     "type": "sona_manifest *"
    },
    {
     "name": "colour_slot",
     "type": "uint32_t"
    },
    {
     "name": "argb",
     "type": "uint32_t"
    }
   ],
   "comment": "",
   "doc": "Sets one of the nine body colours, by its index in `colours`.",
   "page": "Manifests",
   "anchor": "https://360sona.com/devs/docs/reference/c/manifests.html#sona_manifest_set_colour"
  },
  {
   "name": "sona_manifest_set_gender",
   "header": "sona.h",
   "section": "3.14 manifests (pure; no ctx needed)",
   "signature": "sona_result sona_manifest_set_gender(sona_manifest *m, uint32_t gender, uint32_t flags);",
   "returns": "sona_result",
   "params": [
    {
     "name": "m",
     "type": "sona_manifest *"
    },
    {
     "name": "gender",
     "type": "uint32_t"
    },
    {
     "name": "flags",
     "type": "uint32_t"
    }
   ],
   "comment": "",
   "doc": "Sets the gender: 1 male, 2 female.",
   "page": "Manifests",
   "anchor": "https://360sona.com/devs/docs/reference/c/manifests.html#sona_manifest_set_gender"
  },
  {
   "name": "sona_manifest_set_shape",
   "header": "sona.h",
   "section": "3.14 manifests (pure; no ctx needed)",
   "signature": "sona_result sona_manifest_set_shape(sona_manifest *m, float weight, float height);",
   "returns": "sona_result",
   "params": [
    {
     "name": "m",
     "type": "sona_manifest *"
    },
    {
     "name": "weight",
     "type": "float"
    },
    {
     "name": "height",
     "type": "float"
    }
   ],
   "comment": "",
   "doc": "Sets the weight and height.",
   "page": "Manifests",
   "anchor": "https://360sona.com/devs/docs/reference/c/manifests.html#sona_manifest_set_shape"
  },
  {
   "name": "sona_manifest_ready_for_xbox",
   "header": "sona.h",
   "section": "3.14 manifests (pure; no ctx needed)",
   "signature": "int sona_manifest_ready_for_xbox(const sona_manifest *m);",
   "returns": "int",
   "params": [
    {
     "name": "m",
     "type": "const sona_manifest *"
    }
   ],
   "comment": "",
   "doc": "1 when the body (and so the gender) is known and the editor's Xbox clean-up would change nothing: the manifest can be saved to Xbox as it is. 0 otherwise.",
   "page": "Manifests",
   "anchor": "https://360sona.com/devs/docs/reference/c/manifests.html#sona_manifest_ready_for_xbox"
  },
  {
   "name": "sona_credit_get",
   "header": "sona.h",
   "section": "3.15 credit",
   "signature": "sona_result sona_credit_get(sona_ctx *ctx, uint32_t scale, sona_credit *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "scale",
     "type": "uint32_t"
    },
    {
     "name": "out",
     "type": "sona_credit *"
    }
   ],
   "comment": "scale: 1 for the badge; max(1, round(min(w, h) / 400)) for snapshots, as the web. 1, 2 and 3 are the art's own sizes; above, the 3x art resampled.",
   "doc": "The credit text, link and badge. `scale` is 1 for the badge; `max(1, round(min(w, h) / 400))` for snapshots, as the web. Engine plugins draw this badge in a corner.",
   "page": "Credit",
   "anchor": "https://360sona.com/devs/docs/reference/c/credit.html#sona_credit_get"
  },
  {
   "name": "sona_catalogue_load",
   "header": "sona.h",
   "section": "3.16 the offline catalogue (1.1)",
   "signature": "sona_result sona_catalogue_load(sona_ctx *ctx, const char *path, sona_catalogue **out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "path",
     "type": "const char *"
    },
    {
     "name": "out",
     "type": "sona_catalogue **"
    }
   ],
   "comment": "Loads sona-catalogue.bin (a path in UTF-8), or a copy of its bytes. ctx may be NULL: then malloc is used and errors come back only as codes. With a ctx: its allocator, and sona_last_error says what failed. The catalogue may outlive the ctx. SONA_E_IO: the file could not be read. SONA_E_CORRUPT: a bad or truncated file. SONA_E_UNSUPPORTED: a newer format.",
   "doc": "Loads `sona-catalogue.bin` from a UTF-8 path and checks every byte. `ctx` may be `NULL`. `SONA_E_IO`, `SONA_E_CORRUPT`, `SONA_E_UNSUPPORTED`.",
   "page": "The offline catalogue",
   "anchor": "https://360sona.com/devs/docs/reference/c/the-offline-catalogue.html#sona_catalogue_load"
  },
  {
   "name": "sona_catalogue_load_memory",
   "header": "sona.h",
   "section": "3.16 the offline catalogue (1.1)",
   "signature": "sona_result sona_catalogue_load_memory(sona_ctx *ctx, const void *bytes, size_t len, sona_catalogue **out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "bytes",
     "type": "const void *"
    },
    {
     "name": "len",
     "type": "size_t"
    },
    {
     "name": "out",
     "type": "sona_catalogue **"
    }
   ],
   "comment": "",
   "doc": "The same from bytes in memory. The catalogue keeps its own copy.",
   "page": "The offline catalogue",
   "anchor": "https://360sona.com/devs/docs/reference/c/the-offline-catalogue.html#sona_catalogue_load_memory"
  },
  {
   "name": "sona_catalogue_free",
   "header": "sona.h",
   "section": "3.16 the offline catalogue (1.1)",
   "signature": "void sona_catalogue_free(sona_catalogue *cat);",
   "returns": "void",
   "params": [
    {
     "name": "cat",
     "type": "sona_catalogue *"
    }
   ],
   "comment": "",
   "doc": "Frees it and every string it handed out. `NULL` is fine.",
   "page": "The offline catalogue",
   "anchor": "https://360sona.com/devs/docs/reference/c/the-offline-catalogue.html#sona_catalogue_free"
  },
  {
   "name": "sona_catalogue_count",
   "header": "sona.h",
   "section": "3.16 the offline catalogue (1.1)",
   "signature": "uint32_t sona_catalogue_count(const sona_catalogue *cat);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "cat",
     "type": "const sona_catalogue *"
    }
   ],
   "comment": "items, sorted by id",
   "doc": "Items, sorted by id. 0 for `NULL`.",
   "page": "The offline catalogue",
   "anchor": "https://360sona.com/devs/docs/reference/c/the-offline-catalogue.html#sona_catalogue_count"
  },
  {
   "name": "sona_catalogue_get",
   "header": "sona.h",
   "section": "3.16 the offline catalogue (1.1)",
   "signature": "sona_result sona_catalogue_get(const sona_catalogue *cat, uint32_t index, sona_item_info *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "cat",
     "type": "const sona_catalogue *"
    },
    {
     "name": "index",
     "type": "uint32_t"
    },
    {
     "name": "out",
     "type": "sona_item_info *"
    }
   ],
   "comment": "",
   "doc": "One item. Its strings live as long as the catalogue.",
   "page": "The offline catalogue",
   "anchor": "https://360sona.com/devs/docs/reference/c/the-offline-catalogue.html#sona_catalogue_get"
  },
  {
   "name": "sona_catalogue_find",
   "header": "sona.h",
   "section": "3.16 the offline catalogue (1.1)",
   "signature": "int32_t sona_catalogue_find(const sona_catalogue *cat, const char *id);",
   "returns": "int32_t",
   "params": [
    {
     "name": "cat",
     "type": "const sona_catalogue *"
    },
    {
     "name": "id",
     "type": "const char *"
    }
   ],
   "comment": "The index of an item, or -1. id: 32 hex digits, with or without dashes, braces or spaces, any case.",
   "doc": "The index of an id in any spelling, or -1. A binary search.",
   "page": "The offline catalogue",
   "anchor": "https://360sona.com/devs/docs/reference/c/the-offline-catalogue.html#sona_catalogue_find"
  },
  {
   "name": "sona_catalogue_find_guid",
   "header": "sona.h",
   "section": "3.16 the offline catalogue (1.1)",
   "signature": "int32_t sona_catalogue_find_guid(const sona_catalogue *cat, const sona_guid *id);",
   "returns": "int32_t",
   "params": [
    {
     "name": "cat",
     "type": "const sona_catalogue *"
    },
    {
     "name": "id",
     "type": "const sona_guid *"
    }
   ],
   "comment": "",
   "doc": "The same from a parsed GUID.",
   "page": "The offline catalogue",
   "anchor": "https://360sona.com/devs/docs/reference/c/the-offline-catalogue.html#sona_catalogue_find_guid"
  },
  {
   "name": "sona_catalogue_search",
   "header": "sona.h",
   "section": "3.16 the offline catalogue (1.1)",
   "signature": "sona_result sona_catalogue_search(const sona_catalogue *cat, const sona_catalogue_query *q, uint32_t *out_indexes, uint32_t max, uint32_t *total);",
   "returns": "sona_result",
   "params": [
    {
     "name": "cat",
     "type": "const sona_catalogue *"
    },
    {
     "name": "q",
     "type": "const sona_catalogue_query *"
    },
    {
     "name": "out_indexes",
     "type": "uint32_t *"
    },
    {
     "name": "max",
     "type": "uint32_t"
    },
    {
     "name": "total",
     "type": "uint32_t *"
    }
   ],
   "comment": "Matching indexes in id order, up to max of them, after skipping q->offset. *total (may be NULL) is every match, offset included. q NULL matches everything. SONA_E_ARGUMENT for text over 1024 bytes or 16 words, or a gender over 2.",
   "doc": "Indexes matching a query (words, game, slots, section, body, flags, paging), in id order.",
   "page": "The offline catalogue",
   "anchor": "https://360sona.com/devs/docs/reference/c/the-offline-catalogue.html#sona_catalogue_search"
  },
  {
   "name": "sona_catalogue_game_count",
   "header": "sona.h",
   "section": "3.16 the offline catalogue (1.1)",
   "signature": "uint32_t sona_catalogue_game_count(const sona_catalogue *cat);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "cat",
     "type": "const sona_catalogue *"
    }
   ],
   "comment": "The games items come from, sorted by name, each with its item count: for a game filter.",
   "doc": "How many distinct games items come from.",
   "page": "The offline catalogue",
   "anchor": "https://360sona.com/devs/docs/reference/c/the-offline-catalogue.html#sona_catalogue_game_count"
  },
  {
   "name": "sona_catalogue_game",
   "header": "sona.h",
   "section": "3.16 the offline catalogue (1.1)",
   "signature": "sona_result sona_catalogue_game(const sona_catalogue *cat, uint32_t index, const char **name, uint32_t *items);",
   "returns": "sona_result",
   "params": [
    {
     "name": "cat",
     "type": "const sona_catalogue *"
    },
    {
     "name": "index",
     "type": "uint32_t"
    },
    {
     "name": "name",
     "type": "const char **"
    },
    {
     "name": "items",
     "type": "uint32_t *"
    }
   ],
   "comment": "",
   "doc": "One game, sorted by name, and its item count.",
   "page": "The offline catalogue",
   "anchor": "https://360sona.com/devs/docs/reference/c/the-offline-catalogue.html#sona_catalogue_game"
  },
  {
   "name": "sona_catalogue_generated",
   "header": "sona.h",
   "section": "3.16 the offline catalogue (1.1)",
   "signature": "const char * sona_catalogue_generated(const sona_catalogue *cat);",
   "returns": "const char *",
   "params": [
    {
     "name": "cat",
     "type": "const sona_catalogue *"
    }
   ],
   "comment": "when its data was made, ISO 8601",
   "doc": "When its data was made, ISO 8601.",
   "page": "The offline catalogue",
   "anchor": "https://360sona.com/devs/docs/reference/c/the-offline-catalogue.html#sona_catalogue_generated"
  },
  {
   "name": "sona_catalogue_section_name",
   "header": "sona.h",
   "section": "3.16 the offline catalogue (1.1)",
   "signature": "const char * sona_catalogue_section_name(uint32_t section);",
   "returns": "const char *",
   "params": [
    {
     "name": "section",
     "type": "uint32_t"
    }
   ],
   "comment": "\"shirt\", \"facialHair\", ...; NULL past the last",
   "doc": "A `sona_section` as the editor spells it; `NULL` past the last.",
   "page": "The offline catalogue",
   "anchor": "https://360sona.com/devs/docs/reference/c/the-offline-catalogue.html#sona_catalogue_section_name"
  },
  {
   "name": "sona_catalogue_language_count",
   "header": "sona.h",
   "section": "3.16 the offline catalogue (1.1)",
   "signature": "uint32_t sona_catalogue_language_count(const sona_catalogue *cat);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "cat",
     "type": "const sona_catalogue *"
    }
   ],
   "comment": "Item names in every language the catalogue carries, as BCP 47 tags (\"de\", \"ja\", \"pt-BR\"), sorted; \"en\" is always one. language: NULL past the last.",
   "doc": "How many languages the catalogue carries item names in. Each is a BCP 47 tag (\"de\", \"ja\", \"pt-BR\"), sorted; \"en\" is always one.",
   "page": "The offline catalogue",
   "anchor": "https://360sona.com/devs/docs/reference/c/the-offline-catalogue.html#sona_catalogue_language_count"
  },
  {
   "name": "sona_catalogue_language",
   "header": "sona.h",
   "section": "3.16 the offline catalogue (1.1)",
   "signature": "const char * sona_catalogue_language(const sona_catalogue *cat, uint32_t index);",
   "returns": "const char *",
   "params": [
    {
     "name": "cat",
     "type": "const sona_catalogue *"
    },
    {
     "name": "index",
     "type": "uint32_t"
    }
   ],
   "comment": "",
   "doc": "The language tag at `index` (see `sona_catalogue_language_count`); NULL past the last.",
   "page": "The offline catalogue",
   "anchor": "https://360sona.com/devs/docs/reference/c/the-offline-catalogue.html#sona_catalogue_language"
  },
  {
   "name": "sona_catalogue_item_name",
   "header": "sona.h",
   "section": "3.16 the offline catalogue (1.1)",
   "signature": "sona_result sona_catalogue_item_name(const sona_catalogue *cat, uint32_t index, const char *lang, const char **name);",
   "returns": "sona_result",
   "params": [
    {
     "name": "cat",
     "type": "const sona_catalogue *"
    },
    {
     "name": "index",
     "type": "uint32_t"
    },
    {
     "name": "lang",
     "type": "const char *"
    },
    {
     "name": "name",
     "type": "const char **"
    }
   ],
   "comment": "An item's name in lang (an exact tag first, then the market the Xbox 360 marketplace served it from, then its language: https://360sona.com/devs/docs/guides/catalogue-languages.html); it lives as long as the catalogue. SONA_E_NOT_FOUND when the item has no name in that language: show sona_item_info.name.",
   "doc": "An item's name in lang (an exact tag first, then the market the Xbox 360 marketplace served it from, then its language: [catalogue languages guide](sdk-native/catalogue-languages.md)); it lives as long as the catalogue. `SONA_E_NOT_FOUND` when the item has no name in that language: show `sona_item_info`.name.",
   "page": "The offline catalogue",
   "anchor": "https://360sona.com/devs/docs/reference/c/the-offline-catalogue.html#sona_catalogue_item_name"
  },
  {
   "name": "sona_item_colourways",
   "header": "sona.h",
   "section": "3.16 the offline catalogue (1.1)",
   "signature": "sona_result sona_item_colourways(sona_ctx *ctx, const char *item_id, uint32_t (*out)[3], uint32_t cap, uint32_t *count);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "item_id",
     "type": "const char *"
    },
    {
     "name": "out",
     "type": "uint32_t (*out)[3]"
    },
    {
     "name": "cap",
     "type": "uint32_t"
    },
    {
     "name": "count",
     "type": "uint32_t *"
    }
   ],
   "comment": "An item's own colourways (its colour table): up to cap sets of primary, secondary and tertiary colours (0xFFRRGGBB) into out, and how many it has in *count (0 for an item without a table). Wearing the item with one set's three colours in its sona_asset_ref.colours (sona_manifest_wear) wears that colourway; colours that match no set wear the first. The item is read through the ctx's sources: SONA_PENDING until it has loaded (call again after sona_update), SONA_E_NOT_FOUND when no source has it, SONA_E_ARGUMENT for a bad id.",
   "doc": "An item's own colourways (its colour table): up to cap sets of primary, secondary and tertiary colours (0xFFRRGGBB) into out, and how many it has in *count (0 for an item without a table). Wearing the item with one set's three colours in its `sona_asset_ref`.colours (`sona_manifest_wear`) wears that colourway; colours that match no set wear the first. The item is read through the ctx's sources: `SONA_PENDING` until it has loaded (call again after `sona_update`), `SONA_E_NOT_FOUND` when no source has it, `SONA_E_ARGUMENT` for a bad id.",
   "page": "The offline catalogue",
   "anchor": "https://360sona.com/devs/docs/reference/c/the-offline-catalogue.html#sona_item_colourways"
  },
  {
   "name": "sona_custom_item_check",
   "header": "sona.h",
   "section": "3.17 custom items (1.2)",
   "signature": "sona_result sona_custom_item_check(const void *bytes, size_t len, sona_custom_item_info *info, char *why, size_t why_cap);",
   "returns": "sona_result",
   "params": [
    {
     "name": "bytes",
     "type": "const void *"
    },
    {
     "name": "len",
     "type": "size_t"
    },
    {
     "name": "info",
     "type": "sona_custom_item_info *"
    },
    {
     "name": "why",
     "type": "char *"
    },
    {
     "name": "why_cap",
     "type": "size_t"
    }
   ],
   "comment": "Pure, no ctx, no network: rules 1 to 11. SONA_OK with *info set, or SONA_E_CORRUPT, SONA_E_LIMIT or SONA_E_UNSUPPORTED (a newer format) with the rule in why (\"rule 6: ...\"), always NUL-terminated. info and why may be NULL.",
   "doc": "Pure, no ctx, no network: rules 1 to 11. `SONA_OK` with *info set, or `SONA_E_CORRUPT`, `SONA_E_LIMIT` or `SONA_E_UNSUPPORTED` (a newer format) with the rule in why (\"rule 6: ...\"), always NUL-terminated. info and why may be NULL.",
   "page": "Custom items",
   "anchor": "https://360sona.com/devs/docs/reference/c/custom-items.html#sona_custom_item_check"
  },
  {
   "name": "sona_custom_item_add",
   "header": "sona.h",
   "section": "3.17 custom items (1.2)",
   "signature": "sona_result sona_custom_item_add(sona_ctx *ctx, const void *bytes, size_t len, sona_guid *out_id);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "bytes",
     "type": "const void *"
    },
    {
     "name": "len",
     "type": "size_t"
    },
    {
     "name": "out_id",
     "type": "sona_guid *"
    }
   ],
   "comment": "Checks, copies and keeps the file in ctx. Avatars wearing the id rebuild (READY again). Same id: a higher version replaces, a lower one is kept out (SONA_OK, nothing changes); the same version with another hash is SONA_E_ARGUMENT. out_id may be NULL.",
   "doc": "Checks, copies and keeps the file in ctx. Avatars wearing the id rebuild (READY again). Same id: a higher version replaces, a lower one is kept out (`SONA_OK`, nothing changes); the same version with another hash is `SONA_E_ARGUMENT`. out_id may be NULL.",
   "page": "Custom items",
   "anchor": "https://360sona.com/devs/docs/reference/c/custom-items.html#sona_custom_item_add"
  },
  {
   "name": "sona_custom_item_remove",
   "header": "sona.h",
   "section": "3.17 custom items (1.2)",
   "signature": "sona_result sona_custom_item_remove(sona_ctx *ctx, const sona_guid *id);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "id",
     "type": "const sona_guid *"
    }
   ],
   "comment": "SONA_E_NOT_FOUND",
   "doc": "Forgets a custom item; avatars wearing it rebuild without it. `SONA_E_NOT_FOUND` for an id the ctx does not hold.",
   "page": "Custom items",
   "anchor": "https://360sona.com/devs/docs/reference/c/custom-items.html#sona_custom_item_remove"
  },
  {
   "name": "sona_custom_item_count",
   "header": "sona.h",
   "section": "3.17 custom items (1.2)",
   "signature": "uint32_t sona_custom_item_count(const sona_ctx *ctx);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "ctx",
     "type": "const sona_ctx *"
    }
   ],
   "comment": "",
   "doc": "How many custom items the ctx holds.",
   "page": "Custom items",
   "anchor": "https://360sona.com/devs/docs/reference/c/custom-items.html#sona_custom_item_count"
  },
  {
   "name": "sona_custom_item_get",
   "header": "sona.h",
   "section": "3.17 custom items (1.2)",
   "signature": "sona_result sona_custom_item_get(const sona_ctx *ctx, uint32_t index, sona_custom_item_info *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "const sona_ctx *"
    },
    {
     "name": "index",
     "type": "uint32_t"
    },
    {
     "name": "out",
     "type": "sona_custom_item_info *"
    }
   ],
   "comment": "",
   "doc": "The custom item at `index`, in the order `sona_custom_item_count` counts them.",
   "page": "Custom items",
   "anchor": "https://360sona.com/devs/docs/reference/c/custom-items.html#sona_custom_item_get"
  },
  {
   "name": "sona_custom_item_find",
   "header": "sona.h",
   "section": "3.17 custom items (1.2)",
   "signature": "sona_result sona_custom_item_find(const sona_ctx *ctx, const sona_guid *id, sona_custom_item_info *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "const sona_ctx *"
    },
    {
     "name": "id",
     "type": "const sona_guid *"
    },
    {
     "name": "out",
     "type": "sona_custom_item_info *"
    }
   ],
   "comment": "",
   "doc": "The custom item with this id; `SONA_E_NOT_FOUND` when the ctx holds none.",
   "page": "Custom items",
   "anchor": "https://360sona.com/devs/docs/reference/c/custom-items.html#sona_custom_item_find"
  },
  {
   "name": "sona_guid_is_custom",
   "header": "sona.h",
   "section": "3.17 custom items (1.2)",
   "signature": "int sona_guid_is_custom(const sona_guid *id);",
   "returns": "int",
   "params": [
    {
     "name": "id",
     "type": "const sona_guid *"
    }
   ],
   "comment": "(b[8] & 0xC0) == 0x80",
   "doc": "1 when the id is a custom item's id, 0 for a stock item's.",
   "page": "Custom items",
   "anchor": "https://360sona.com/devs/docs/reference/c/custom-items.html#sona_guid_is_custom"
  },
  {
   "name": "sona_guid_pair",
   "header": "sona.h",
   "section": "3.17 custom items (1.2)",
   "signature": "sona_result sona_guid_pair(const sona_guid *id, sona_guid *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "id",
     "type": "const sona_guid *"
    },
    {
     "name": "out",
     "type": "sona_guid *"
    }
   ],
   "comment": "SONA_E_ARGUMENT for body 3 or a real id",
   "doc": "The same custom item's id for the other body. `SONA_E_ARGUMENT` for a body 3 item or a stock id.",
   "page": "Custom items",
   "anchor": "https://360sona.com/devs/docs/reference/c/custom-items.html#sona_guid_pair"
  },
  {
   "name": "sona_custom_item_new_id",
   "header": "sona.h",
   "section": "3.17 custom items (1.2)",
   "signature": "sona_result sona_custom_item_new_id(sona_ctx *ctx, const sona_guid *template_id, sona_guid *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "template_id",
     "type": "const sona_guid *"
    },
    {
     "name": "out",
     "type": "sona_guid *"
    }
   ],
   "comment": "A fresh id for a template (a real worn id of a 1.0 slot, body 1, 2 or 3). ctx may be NULL.",
   "doc": "A fresh id for a template (a real worn id of a 1.0 slot, body 1, 2 or 3). ctx may be NULL.",
   "page": "Custom items",
   "anchor": "https://360sona.com/devs/docs/reference/c/custom-items.html#sona_custom_item_new_id"
  },
  {
   "name": "sona_custom_item_pack",
   "header": "sona.h",
   "section": "3.17 custom items (1.2)",
   "signature": "sona_result sona_custom_item_pack(sona_ctx *ctx, const sona_paint_spec *spec, uint8_t **out, size_t *out_len);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "spec",
     "type": "const sona_paint_spec *"
    },
    {
     "name": "out",
     "type": "uint8_t **"
    },
    {
     "name": "out_len",
     "type": "size_t *"
    }
   ],
   "comment": "",
   "doc": "Pixels in, a `.sonaitem` out (free with `sona_free`): the same bytes as `scene.items.pack` gives for the same input. The template must be readable through the ctx's sources (surfaces and hash are checked): `SONA_PENDING` until it has been fetched, then call again after `sona_update`. Each surface takes the template's default layout. The file is not signed. [custom-items.md](custom-items.md) has the format.",
   "page": "Custom items",
   "anchor": "https://360sona.com/devs/docs/reference/c/custom-items.html#sona_custom_item_pack"
  },
  {
   "name": "sona_avatar_missing_items",
   "header": "sona.h",
   "section": "3.17 custom items (1.2)",
   "signature": "uint32_t sona_avatar_missing_items(const sona_avatar *a, sona_guid *out, uint32_t cap);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "a",
     "type": "const sona_avatar *"
    },
    {
     "name": "out",
     "type": "sona_guid *"
    },
    {
     "name": "cap",
     "type": "uint32_t"
    }
   ],
   "comment": "Custom ids this avatar wears that no registration supplied, as last built. Returns the count; writes up to cap.",
   "doc": "Custom ids this avatar wears that no registration supplied, as last built. Returns the count; writes up to cap.",
   "page": "Custom items",
   "anchor": "https://360sona.com/devs/docs/reference/c/custom-items.html#sona_avatar_missing_items"
  },
  {
   "name": "sona_mesh_item_spec_defaults",
   "header": "sona.h",
   "section": "3.17 custom items (1.2)",
   "signature": "void sona_mesh_item_spec_defaults(sona_mesh_item_spec *s);",
   "returns": "void",
   "params": [
    {
     "name": "s",
     "type": "sona_mesh_item_spec *"
    }
   ],
   "comment": "",
   "doc": "`size` set and every pointer NULL.",
   "page": "Custom items",
   "anchor": "https://360sona.com/devs/docs/reference/c/custom-items.html#sona_mesh_item_spec_defaults"
  },
  {
   "name": "sona_custom_item_pack_mesh",
   "header": "sona.h",
   "section": "3.17 custom items (1.2)",
   "signature": "sona_result sona_custom_item_pack_mesh(sona_ctx *ctx, const sona_mesh_item_spec *spec, uint8_t **out, size_t *out_len, char *why, size_t why_cap);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "spec",
     "type": "const sona_mesh_item_spec *"
    },
    {
     "name": "out",
     "type": "uint8_t **"
    },
    {
     "name": "out_len",
     "type": "size_t *"
    },
    {
     "name": "why",
     "type": "char *"
    },
    {
     "name": "why_cap",
     "type": "size_t"
    }
   ],
   "comment": "Free *out with sona_free. why (may be NULL) says what the import refused, always NUL-terminated. Not signed. Reads the template, the rig and the coverage check's assets through the ctx's sources: SONA_PENDING until they arrive. SONA_E_ARGUMENT when the glb is refused (the custom items guide: the glb profile, the coverage check).",
   "doc": "Free *out with `sona_free`. why (may be NULL) says what the import refused, always NUL-terminated. Not signed. Reads the template, the rig and the coverage check's assets through the ctx's sources: `SONA_PENDING` until they arrive. `SONA_E_ARGUMENT` when the glb is refused ([custom items](custom-items.md), sections 5.2 and 5.3).",
   "page": "Custom items",
   "anchor": "https://360sona.com/devs/docs/reference/c/custom-items.html#sona_custom_item_pack_mesh"
  },
  {
   "name": "sona_lipsync_defaults",
   "header": "sona.h",
   "section": "3.18 lip sync and voice mouths (1.2)",
   "signature": "void sona_lipsync_defaults(sona_lipsync_options *o);",
   "returns": "void",
   "params": [
    {
     "name": "o",
     "type": "sona_lipsync_options *"
    }
   ],
   "comment": "",
   "doc": "`size` set; `sample_rate` 48000, `channels` 1, `hold_seconds` 0.07, `attack_seconds` 0.02, `release_seconds` 0.07, `gate_db` -55, `lead_seconds` 0.04.",
   "page": "Lip sync and voice mouths",
   "anchor": "https://360sona.com/devs/docs/reference/c/lip-sync-and-voice-mouths.html#sona_lipsync_defaults"
  },
  {
   "name": "sona_lipsync_create",
   "header": "sona.h",
   "section": "3.18 lip sync and voice mouths (1.2)",
   "signature": "sona_result sona_lipsync_create(const sona_lipsync_options *o, const sona_allocator *al, sona_lipsync **out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "o",
     "type": "const sona_lipsync_options *"
    },
    {
     "name": "al",
     "type": "const sona_allocator *"
    },
    {
     "name": "out",
     "type": "sona_lipsync **"
    }
   ],
   "comment": "NULL options: the defaults. al NULL: malloc. SONA_E_ARGUMENT for a size, rate, channel count, format or time out of range.",
   "doc": "NULL options: the defaults. al NULL: malloc. `SONA_E_ARGUMENT` for a size, rate, channel count, format or time out of range.",
   "page": "Lip sync and voice mouths",
   "anchor": "https://360sona.com/devs/docs/reference/c/lip-sync-and-voice-mouths.html#sona_lipsync_create"
  },
  {
   "name": "sona_lipsync_destroy",
   "header": "sona.h",
   "section": "3.18 lip sync and voice mouths (1.2)",
   "signature": "void sona_lipsync_destroy(sona_lipsync *ls);",
   "returns": "void",
   "params": [
    {
     "name": "ls",
     "type": "sona_lipsync *"
    }
   ],
   "comment": "",
   "doc": "Frees the analyser.",
   "page": "Lip sync and voice mouths",
   "anchor": "https://360sona.com/devs/docs/reference/c/lip-sync-and-voice-mouths.html#sona_lipsync_destroy"
  },
  {
   "name": "sona_lipsync_reset",
   "header": "sona.h",
   "section": "3.18 lip sync and voice mouths (1.2)",
   "signature": "void sona_lipsync_reset(sona_lipsync *ls);",
   "returns": "void",
   "params": [
    {
     "name": "ls",
     "type": "sona_lipsync *"
    }
   ],
   "comment": "time 0, hints and frames dropped",
   "doc": "Back to time 0: hints and frames waiting to be read are dropped.",
   "page": "Lip sync and voice mouths",
   "anchor": "https://360sona.com/devs/docs/reference/c/lip-sync-and-voice-mouths.html#sona_lipsync_reset"
  },
  {
   "name": "sona_lipsync_feed",
   "header": "sona.h",
   "section": "3.18 lip sync and voice mouths (1.2)",
   "signature": "sona_result sona_lipsync_feed(sona_lipsync *ls, const void *pcm, size_t frames);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ls",
     "type": "sona_lipsync *"
    },
    {
     "name": "pcm",
     "type": "const void *"
    },
    {
     "name": "frames",
     "type": "size_t"
    }
   ],
   "comment": "frames: samples per channel. Analyses every 10 ms that is complete.",
   "doc": "`frames`: samples per channel. Analyses every 10 ms that is complete.",
   "page": "Lip sync and voice mouths",
   "anchor": "https://360sona.com/devs/docs/reference/c/lip-sync-and-voice-mouths.html#sona_lipsync_feed"
  },
  {
   "name": "sona_lipsync_read",
   "header": "sona.h",
   "section": "3.18 lip sync and voice mouths (1.2)",
   "signature": "uint32_t sona_lipsync_read(sona_lipsync *ls, sona_lipsync_frame *out, uint32_t max);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "ls",
     "type": "sona_lipsync *"
    },
    {
     "name": "out",
     "type": "sona_lipsync_frame *"
    },
    {
     "name": "max",
     "type": "uint32_t"
    }
   ],
   "comment": "Moves up to max frames made since the last read into out, oldest first; returns how many.",
   "doc": "Moves up to max frames made since the last read into out, oldest first; returns how many.",
   "page": "Lip sync and voice mouths",
   "anchor": "https://360sona.com/devs/docs/reference/c/lip-sync-and-voice-mouths.html#sona_lipsync_read"
  },
  {
   "name": "sona_lipsync_current",
   "header": "sona.h",
   "section": "3.18 lip sync and voice mouths (1.2)",
   "signature": "sona_result sona_lipsync_current(const sona_lipsync *ls, sona_lipsync_frame *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ls",
     "type": "const sona_lipsync *"
    },
    {
     "name": "out",
     "type": "sona_lipsync_frame *"
    }
   ],
   "comment": "The newest frame (a shut mouth before the first).",
   "doc": "The newest frame (a shut mouth before the first).",
   "page": "Lip sync and voice mouths",
   "anchor": "https://360sona.com/devs/docs/reference/c/lip-sync-and-voice-mouths.html#sona_lipsync_current"
  },
  {
   "name": "sona_lipsync_latency",
   "header": "sona.h",
   "section": "3.18 lip sync and voice mouths (1.2)",
   "signature": "double sona_lipsync_latency(const sona_lipsync *ls);",
   "returns": "double",
   "params": [
    {
     "name": "ls",
     "type": "const sona_lipsync *"
    }
   ],
   "comment": "Seconds from a sample being fed to the first frame that hears it.",
   "doc": "Seconds from a sample being fed to the first frame that hears it.",
   "page": "Lip sync and voice mouths",
   "anchor": "https://360sona.com/devs/docs/reference/c/lip-sync-and-voice-mouths.html#sona_lipsync_latency"
  },
  {
   "name": "sona_lipsync_hint",
   "header": "sona.h",
   "section": "3.18 lip sync and voice mouths (1.2)",
   "signature": "sona_result sona_lipsync_hint(sona_lipsync *ls, const sona_phoneme *ph, uint32_t count);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ls",
     "type": "sona_lipsync *"
    },
    {
     "name": "ph",
     "type": "const sona_phoneme *"
    },
    {
     "name": "count",
     "type": "uint32_t"
    }
   ],
   "comment": "Phonemes the host's TTS reported, on the fed audio's clock: their shapes win while the audio is sounding, and lips close for M, B and P. Up to 256 held; ones that ended a second ago go.",
   "doc": "Phonemes the host's TTS reported, on the fed audio's clock: their shapes win while the audio is sounding, and lips close for M, B and P. Up to 256 held; ones that ended a second ago go.",
   "page": "Lip sync and voice mouths",
   "anchor": "https://360sona.com/devs/docs/reference/c/lip-sync-and-voice-mouths.html#sona_lipsync_hint"
  },
  {
   "name": "sona_phoneme_mouth",
   "header": "sona.h",
   "section": "3.18 lip sync and voice mouths (1.2)",
   "signature": "uint32_t sona_phoneme_mouth(const char *symbol);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "symbol",
     "type": "const char *"
    }
   ],
   "comment": "The mouth for a phoneme symbol; SONA_MOUTH_UNKNOWN when it is none of the sets.",
   "doc": "The mouth for a phoneme symbol; `SONA_MOUTH_UNKNOWN` when it is none of the sets.",
   "page": "Lip sync and voice mouths",
   "anchor": "https://360sona.com/devs/docs/reference/c/lip-sync-and-voice-mouths.html#sona_phoneme_mouth"
  },
  {
   "name": "sona_lipsync_phonemes",
   "header": "sona.h",
   "section": "3.18 lip sync and voice mouths (1.2)",
   "signature": "sona_result sona_lipsync_phonemes(const sona_phoneme *ph, uint32_t count, const sona_lipsync_options *o, sona_mouth_key *out, uint32_t cap, uint32_t *total);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ph",
     "type": "const sona_phoneme *"
    },
    {
     "name": "count",
     "type": "uint32_t"
    },
    {
     "name": "o",
     "type": "const sona_lipsync_options *"
    },
    {
     "name": "out",
     "type": "sona_mouth_key *"
    },
    {
     "name": "cap",
     "type": "uint32_t"
    },
    {
     "name": "total",
     "type": "uint32_t *"
    }
   ],
   "comment": "Timed phonemes to keys (lead, closures kept, short shapes merged). *total is the count; writes up to cap. o may be NULL.",
   "doc": "Timed phonemes to keys (lead, closures kept, short shapes merged). *total is the count; writes up to cap. o may be NULL.",
   "page": "Lip sync and voice mouths",
   "anchor": "https://360sona.com/devs/docs/reference/c/lip-sync-and-voice-mouths.html#sona_lipsync_phonemes"
  },
  {
   "name": "sona_lipsync_text",
   "header": "sona.h",
   "section": "3.18 lip sync and voice mouths (1.2)",
   "signature": "sona_result sona_lipsync_text(const char *text, const void *pcm, size_t frames, const sona_lipsync_options *o, sona_mouth_key *out, uint32_t cap, uint32_t *total);",
   "returns": "sona_result",
   "params": [
    {
     "name": "text",
     "type": "const char *"
    },
    {
     "name": "pcm",
     "type": "const void *"
    },
    {
     "name": "frames",
     "type": "size_t"
    },
    {
     "name": "o",
     "type": "const sona_lipsync_options *"
    },
    {
     "name": "out",
     "type": "sona_mouth_key *"
    },
    {
     "name": "cap",
     "type": "uint32_t"
    },
    {
     "name": "total",
     "type": "uint32_t *"
    }
   ],
   "comment": "Text to keys. With audio (frames > 0, in o's format) the text is aligned to it; without, an even pace. SONA_E_LIMIT past 4096 letters or 10 minutes of audio.",
   "doc": "Text to keys. With audio (frames > 0, in o's format) the text is aligned to it; without, an even pace. `SONA_E_LIMIT` past 4096 letters or the 10 minutes limit of audio.",
   "page": "Lip sync and voice mouths",
   "anchor": "https://360sona.com/devs/docs/reference/c/lip-sync-and-voice-mouths.html#sona_lipsync_text"
  },
  {
   "name": "sona_mouth_keys_sample",
   "header": "sona.h",
   "section": "3.18 lip sync and voice mouths (1.2)",
   "signature": "sona_result sona_mouth_keys_sample(const sona_mouth_key *keys, uint32_t count, double t, sona_lipsync_frame *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "keys",
     "type": "const sona_mouth_key *"
    },
    {
     "name": "count",
     "type": "uint32_t"
    },
    {
     "name": "t",
     "type": "double"
    },
    {
     "name": "out",
     "type": "sona_lipsync_frame *"
    }
   ],
   "comment": "The mouth at time t of a key list, eased between keys.",
   "doc": "The mouth at time t of a key list, eased between keys.",
   "page": "Lip sync and voice mouths",
   "anchor": "https://360sona.com/devs/docs/reference/c/lip-sync-and-voice-mouths.html#sona_mouth_keys_sample"
  },
  {
   "name": "sona_avatar_mouth",
   "header": "sona.h",
   "section": "3.18 lip sync and voice mouths (1.2)",
   "signature": "sona_result sona_avatar_mouth(sona_avatar *a, uint32_t shape);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "shape",
     "type": "uint32_t"
    }
   ],
   "comment": "Only the mouth of the expression: a SONA_MOUTH_* or another shape index, or 255 to hand it back to the clip. The rest of the face keeps what sona_avatar_expression or the clip gave it. The same shape again does nothing.",
   "doc": "Only the mouth of the expression: a `SONA_MOUTH_`* or another shape index, or 255 to hand it back to the clip. The rest of the face keeps what `sona_avatar_expression` or the clip gave it. The same shape again does nothing.",
   "page": "Lip sync and voice mouths",
   "anchor": "https://360sona.com/devs/docs/reference/c/lip-sync-and-voice-mouths.html#sona_avatar_mouth"
  },
  {
   "name": "sona_voice_mouth_init",
   "header": "sona.h",
   "section": "3.18 lip sync and voice mouths (1.2)",
   "signature": "void sona_voice_mouth_init(sona_voice_mouth *v, uint32_t seed);",
   "returns": "void",
   "params": [
    {
     "name": "v",
     "type": "sona_voice_mouth *"
    },
    {
     "name": "seed",
     "type": "uint32_t"
    }
   ],
   "comment": "",
   "doc": "Sets `size` and starts the state from `seed`. Avatars with different seeds move their mouths differently to the same voice.",
   "page": "Lip sync and voice mouths",
   "anchor": "https://360sona.com/devs/docs/reference/c/lip-sync-and-voice-mouths.html#sona_voice_mouth_init"
  },
  {
   "name": "sona_voice_mouth_step",
   "header": "sona.h",
   "section": "3.18 lip sync and voice mouths (1.2)",
   "signature": "uint32_t sona_voice_mouth_step(sona_voice_mouth *v, float level, float dt, float *open);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "v",
     "type": "sona_voice_mouth *"
    },
    {
     "name": "level",
     "type": "float"
    },
    {
     "name": "dt",
     "type": "float"
    },
    {
     "name": "open",
     "type": "float *"
    }
   ],
   "comment": "Advances by dt seconds; returns the SONA_MOUTH_* to show. open may be NULL.",
   "doc": "Advances by dt seconds; returns the `SONA_MOUTH_`* to show. open may be NULL.",
   "page": "Lip sync and voice mouths",
   "anchor": "https://360sona.com/devs/docs/reference/c/lip-sync-and-voice-mouths.html#sona_voice_mouth_step"
  },
  {
   "name": "sona_avatar_voice",
   "header": "sona.h",
   "section": "3.18 lip sync and voice mouths (1.2)",
   "signature": "sona_result sona_avatar_voice(sona_avatar *a, sona_voice_mouth *v, float level, float dt);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "v",
     "type": "sona_voice_mouth *"
    },
    {
     "name": "level",
     "type": "float"
    },
    {
     "name": "dt",
     "type": "float"
    }
   ],
   "comment": "",
   "doc": "`sona_voice_mouth_step` with the voice's level, put on the avatar's mouth with `sona_avatar_mouth`.",
   "page": "Lip sync and voice mouths",
   "anchor": "https://360sona.com/devs/docs/reference/c/lip-sync-and-voice-mouths.html#sona_avatar_voice"
  },
  {
   "name": "sona_voice_mouths",
   "header": "sona.h",
   "section": "3.18 lip sync and voice mouths (1.2)",
   "signature": "uint32_t sona_voice_mouths(sona_avatar *const *avatars, sona_voice_mouth *states, const float *levels, uint32_t count, float dt);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "avatars",
     "type": "sona_avatar *const *"
    },
    {
     "name": "states",
     "type": "sona_voice_mouth *"
    },
    {
     "name": "levels",
     "type": "const float *"
    },
    {
     "name": "count",
     "type": "uint32_t"
    },
    {
     "name": "dt",
     "type": "float"
    }
   ],
   "comment": "sona_avatar_voice for count avatars (NULL entries skipped); returns how many mouths changed.",
   "doc": "`sona_avatar_voice` for count avatars (NULL entries skipped); returns how many mouths changed.",
   "page": "Lip sync and voice mouths",
   "anchor": "https://360sona.com/devs/docs/reference/c/lip-sync-and-voice-mouths.html#sona_voice_mouths"
  },
  {
   "name": "sona_headless_defaults",
   "header": "sona.h",
   "section": "3.19 headless rendering and video out (1.2)",
   "signature": "void sona_headless_defaults(sona_headless_options *o);",
   "returns": "void",
   "params": [
    {
     "name": "o",
     "type": "sona_headless_options *"
    }
   ],
   "comment": "",
   "doc": "Fills the defaults above. NULL does nothing.",
   "page": "Headless rendering and video out",
   "anchor": "https://360sona.com/devs/docs/reference/c/headless-rendering-and-video-out.html#sona_headless_defaults"
  },
  {
   "name": "sona_headless_devices",
   "header": "sona.h",
   "section": "3.19 headless rendering and video out (1.2)",
   "signature": "uint32_t sona_headless_devices(const sona_headless_options *o, sona_headless_info *out, uint32_t cap);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "o",
     "type": "const sona_headless_options *"
    },
    {
     "name": "out",
     "type": "sona_headless_info *"
    },
    {
     "name": "cap",
     "type": "uint32_t"
    }
   ],
   "comment": "The devices a headless renderer can open with o's backend (NULL: the defaults): Vulkan devices in the loader's order, then EGL devices, then the Direct3D 11 adapters and WARP (Windows), then the Metal devices (Apple), or the console's one Xenos device. Writes up to cap of them (out may be NULL) and returns how many there are.",
   "doc": "The devices a headless renderer can open with `o`'s backend: Vulkan devices in the loader's order, then EGL devices.\nWrites up to `cap` (`out` may be NULL) and returns how many there are. NULL `o`: the defaults; bad options: 0.",
   "page": "Headless rendering and video out",
   "anchor": "https://360sona.com/devs/docs/reference/c/headless-rendering-and-video-out.html#sona_headless_devices"
  },
  {
   "name": "sona_headless_open",
   "header": "sona.h",
   "section": "3.19 headless rendering and video out (1.2)",
   "signature": "sona_result sona_headless_open(sona_ctx *ctx, const sona_headless_options *o, sona_headless **out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "o",
     "type": "const sona_headless_options *"
    },
    {
     "name": "out",
     "type": "sona_headless **"
    }
   ],
   "comment": "Makes the device and a renderer on it. SONA_E_UNSUPPORTED when no device fits (the message says what was tried), SONA_PENDING never: it waits up to wait_seconds for the ctx's shading data.",
   "doc": "Makes the device and a renderer on it, waiting up to `wait_seconds` for the ctx's shading data. NULL `o`: the defaults.\n`SONA_E_UNSUPPORTED` when no device fits (the message says what was tried), `SONA_E_ARGUMENT` for bad options,\n`SONA_E_NOT_READY` when the shading data did not load in time.",
   "page": "Headless rendering and video out",
   "anchor": "https://360sona.com/devs/docs/reference/c/headless-rendering-and-video-out.html#sona_headless_open"
  },
  {
   "name": "sona_headless_close",
   "header": "sona.h",
   "section": "3.19 headless rendering and video out (1.2)",
   "signature": "void sona_headless_close(sona_headless *h);",
   "returns": "void",
   "params": [
    {
     "name": "h",
     "type": "sona_headless *"
    }
   ],
   "comment": "",
   "doc": "Frees the renderer and the device. NULL is fine. Close it before the ctx.",
   "page": "Headless rendering and video out",
   "anchor": "https://360sona.com/devs/docs/reference/c/headless-rendering-and-video-out.html#sona_headless_close"
  },
  {
   "name": "sona_headless_info_get",
   "header": "sona.h",
   "section": "3.19 headless rendering and video out (1.2)",
   "signature": "sona_result sona_headless_info_get(const sona_headless *h, sona_headless_info *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "h",
     "type": "const sona_headless *"
    },
    {
     "name": "out",
     "type": "sona_headless_info *"
    }
   ],
   "comment": "",
   "doc": "The device it drew on. `SONA_E_ARGUMENT` for NULL arguments.",
   "page": "Headless rendering and video out",
   "anchor": "https://360sona.com/devs/docs/reference/c/headless-rendering-and-video-out.html#sona_headless_info_get"
  },
  {
   "name": "sona_headless_renderer",
   "header": "sona.h",
   "section": "3.19 headless rendering and video out (1.2)",
   "signature": "sona_renderer * sona_headless_renderer(const sona_headless *h);",
   "returns": "sona_renderer *",
   "params": [
    {
     "name": "h",
     "type": "const sona_headless *"
    }
   ],
   "comment": "The renderer it draws with, for sona_renderer_set_quality and the like. Owned by h.",
   "doc": "Its renderer, for `sona_renderer_set_quality` and the like. Owned by `h`; do not destroy it.",
   "page": "Headless rendering and video out",
   "anchor": "https://360sona.com/devs/docs/reference/c/headless-rendering-and-video-out.html#sona_headless_renderer"
  },
  {
   "name": "sona_render_defaults",
   "header": "sona.h",
   "section": "3.19 headless rendering and video out (1.2)",
   "signature": "void sona_render_defaults(sona_render_options *o);",
   "returns": "void",
   "params": [
    {
     "name": "o",
     "type": "sona_render_options *"
    }
   ],
   "comment": "",
   "doc": "256 x 256, `SONA_PRESET_FULL`, zoom 1, transparent, no clip. NULL does nothing.",
   "page": "Headless rendering and video out",
   "anchor": "https://360sona.com/devs/docs/reference/c/headless-rendering-and-video-out.html#sona_render_defaults"
  },
  {
   "name": "sona_headless_render",
   "header": "sona.h",
   "section": "3.19 headless rendering and video out (1.2)",
   "signature": "sona_result sona_headless_render(sona_headless *h, sona_avatar *a, const sona_render_options *o, uint8_t *rgba_out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "h",
     "type": "sona_headless *"
    },
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "o",
     "type": "const sona_render_options *"
    },
    {
     "name": "rgba_out",
     "type": "uint8_t *"
    }
   ],
   "comment": "One picture of an avatar of the ctx, alone (the ctx's other avatars are left out), waiting for it to be READY. With clip set it plays that clip from then on (as sona_avatar_play) and is drawn at time. Its placement and clock are as before when the call returns. rgba_out holds width * height * 4 bytes. SONA_E_NOT_READY after wait_seconds; the avatar's own failure code when it FAILED.",
   "doc": "One picture of an avatar of the ctx, alone, after waiting for it to be READY. With `clip` set it plays that clip from\n`time` (as `sona_avatar_play`, from then on) and is drawn at `time`; without, it is drawn as its clock stands. Its\nplacement, clock and pose are as before when the call returns. `rgba_out` holds `width * height * 4` bytes.\n`SONA_E_ARGUMENT` for bad options, an item preview, an avatar of another ctx or a clip it does not have;\n`SONA_E_NOT_READY` after `wait_seconds`; its own failure code when it FAILED.",
   "page": "Headless rendering and video out",
   "anchor": "https://360sona.com/devs/docs/reference/c/headless-rendering-and-video-out.html#sona_headless_render"
  },
  {
   "name": "sona_headless_render_manifest",
   "header": "sona.h",
   "section": "3.19 headless rendering and video out (1.2)",
   "signature": "sona_result sona_headless_render_manifest(sona_headless *h, const uint8_t manifest[SONA_MANIFEST_BYTES], const sona_render_options *o, uint8_t *rgba_out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "h",
     "type": "sona_headless *"
    },
    {
     "name": "manifest",
     "type": "const uint8_t [SONA_MANIFEST_BYTES]"
    },
    {
     "name": "o",
     "type": "const sona_render_options *"
    },
    {
     "name": "rgba_out",
     "type": "uint8_t *"
    }
   ],
   "comment": "The same for a manifest: adds the avatar, draws it and removes it.",
   "doc": "Adds the avatar (hidden, standing still or playing `clip` from `time`), draws it and removes it. Errors as above;\n`SONA_E_MANIFEST` for a manifest that cannot be built, `SONA_E_LIMIT` when the ctx is full.",
   "page": "Headless rendering and video out",
   "anchor": "https://360sona.com/devs/docs/reference/c/headless-rendering-and-video-out.html#sona_headless_render_manifest"
  },
  {
   "name": "sona_headless_batch",
   "header": "sona.h",
   "section": "3.19 headless rendering and video out (1.2)",
   "signature": "sona_result sona_headless_batch(sona_headless *h, const uint8_t *manifests, uint32_t count, const sona_render_options *o, sona_picture_fn fn, void *user);",
   "returns": "sona_result",
   "params": [
    {
     "name": "h",
     "type": "sona_headless *"
    },
    {
     "name": "manifests",
     "type": "const uint8_t *"
    },
    {
     "name": "count",
     "type": "uint32_t"
    },
    {
     "name": "o",
     "type": "const sona_render_options *"
    },
    {
     "name": "fn",
     "type": "sona_picture_fn"
    },
    {
     "name": "user",
     "type": "void *"
    }
   ],
   "comment": "count manifests (count * SONA_MANIFEST_BYTES bytes, one after another) to pictures, fn called once for each in index order. batch_in_flight avatars build ahead while one is drawn; each is removed once drawn, so memory stays flat however long the batch. A manifest that fails gives its code, the batch goes on. Returns SONA_OK, or the error that stopped it (the device lost, a ctx-wide error).",
   "doc": "`count` manifests, one after another, to pictures. `fn(user, index, result, rgba, width, height)` runs once for each,\nin index order; `rgba` is NULL unless `result` is `SONA_OK` and lives until `fn` returns. `batch_in_flight` avatars\nbuild ahead; each is removed once drawn. A failing manifest gives its code and the batch goes on. Returns `SONA_OK`, or\nthe error that stopped it (`SONA_E_CONTEXT`, `SONA_E_MEMORY`, a ctx-wide error). `SONA_E_ARGUMENT` for NULL `fn`.",
   "page": "Headless rendering and video out",
   "anchor": "https://360sona.com/devs/docs/reference/c/headless-rendering-and-video-out.html#sona_headless_batch"
  },
  {
   "name": "sona_sequence_defaults",
   "header": "sona.h",
   "section": "3.19 headless rendering and video out (1.2)",
   "signature": "void sona_sequence_defaults(sona_sequence_options *o);",
   "returns": "void",
   "params": [
    {
     "name": "o",
     "type": "sona_sequence_options *"
    }
   ],
   "comment": "",
   "doc": "`frames` 0, `fps` 30, no turn. NULL does nothing.",
   "page": "Headless rendering and video out",
   "anchor": "https://360sona.com/devs/docs/reference/c/headless-rendering-and-video-out.html#sona_sequence_defaults"
  },
  {
   "name": "sona_headless_sequence",
   "header": "sona.h",
   "section": "3.19 headless rendering and video out (1.2)",
   "signature": "sona_result sona_headless_sequence(sona_headless *h, sona_avatar *a, const sona_render_options *r, const sona_sequence_options *s, sona_picture_fn fn, void *user);",
   "returns": "sona_result",
   "params": [
    {
     "name": "h",
     "type": "sona_headless *"
    },
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "r",
     "type": "const sona_render_options *"
    },
    {
     "name": "s",
     "type": "const sona_sequence_options *"
    },
    {
     "name": "fn",
     "type": "sona_picture_fn"
    },
    {
     "name": "user",
     "type": "void *"
    }
   ],
   "comment": "Frames of one avatar at a fixed frame rate: frame i is the clip at its start time + i / fps (the render options' time with a clip, else the avatar's own clock) and the turn at turn_deg * i / frames. The same inputs give the same pixels every run. fn gets every frame in order.",
   "doc": "Frame `i` is the clip at its start + `i / fps` (the render options' `time` with a clip, else the avatar's clock) and the\nturn `turn_deg * i / frames` (of the avatar, or of the camera with `SONA_SEQUENCE_ORBIT`). `frames` 0: the clip's\nlength at `fps`, rounded; 36 when nothing plays and `turn_deg` is set; else 1. `fn` gets every frame in order. The same\ninputs give the same pixels every run. The avatar's clock and placement are put back after.",
   "page": "Headless rendering and video out",
   "anchor": "https://360sona.com/devs/docs/reference/c/headless-rendering-and-video-out.html#sona_headless_sequence"
  },
  {
   "name": "sona_headless_record",
   "header": "sona.h",
   "section": "3.19 headless rendering and video out (1.2)",
   "signature": "sona_result sona_headless_record(sona_headless *h, sona_avatar *a, const sona_render_options *r, const sona_sequence_options *s, sona_video *v);",
   "returns": "sona_result",
   "params": [
    {
     "name": "h",
     "type": "sona_headless *"
    },
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "r",
     "type": "const sona_render_options *"
    },
    {
     "name": "s",
     "type": "const sona_sequence_options *"
    },
    {
     "name": "v",
     "type": "sona_video *"
    }
   ],
   "comment": "The same into a video opened at the render size.",
   "doc": "`sona_headless_sequence` into a video. `SONA_E_ARGUMENT` when the video's size is not the render size; a video\nerror stops it.",
   "page": "Headless rendering and video out",
   "anchor": "https://360sona.com/devs/docs/reference/c/headless-rendering-and-video-out.html#sona_headless_record"
  },
  {
   "name": "sona_video_defaults",
   "header": "sona.h",
   "section": "3.19 headless rendering and video out (1.2)",
   "signature": "void sona_video_defaults(sona_video_options *o);",
   "returns": "void",
   "params": [
    {
     "name": "o",
     "type": "sona_video_options *"
    }
   ],
   "comment": "",
   "doc": "The defaults are `format` from the path, a frame rate of 30 fps, opaque black background, every other field 0. Set `width` and `height`.",
   "page": "Headless rendering and video out",
   "anchor": "https://360sona.com/devs/docs/reference/c/headless-rendering-and-video-out.html#sona_video_defaults"
  },
  {
   "name": "sona_video_open",
   "header": "sona.h",
   "section": "3.19 headless rendering and video out (1.2)",
   "signature": "sona_result sona_video_open(sona_ctx *ctx, const char *path, const sona_video_options *o, sona_video **out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "path",
     "type": "const char *"
    },
    {
     "name": "o",
     "type": "const sona_video_options *"
    },
    {
     "name": "out",
     "type": "sona_video **"
    }
   ],
   "comment": "Starts a video. path NULL keeps a GIF, MP4 or WebM in memory for sona_video_finish. MP4 and WebM start ffmpeg here: SONA_E_UNSUPPORTED, saying so, when it cannot be run or has no fitting encoder.",
   "doc": "Starts a PNG sequence (the path holds one `%d`, `%u` or `%0Nd`), a GIF, or an MP4 or WebM through ffmpeg (started here).\nNULL `path` keeps a GIF, MP4 or WebM in memory. `SONA_E_ARGUMENT` for bad options, a PNG path without one number,\nor a NULL path with no format; `SONA_E_UNSUPPORTED` when ffmpeg cannot be run or has no fitting encoder (the message\nsays which); `SONA_E_IO` when the file cannot be made.",
   "page": "Headless rendering and video out",
   "anchor": "https://360sona.com/devs/docs/reference/c/headless-rendering-and-video-out.html#sona_video_open"
  },
  {
   "name": "sona_video_frame",
   "header": "sona.h",
   "section": "3.19 headless rendering and video out (1.2)",
   "signature": "sona_result sona_video_frame(sona_video *v, const uint8_t *rgba);",
   "returns": "sona_result",
   "params": [
    {
     "name": "v",
     "type": "sona_video *"
    },
    {
     "name": "rgba",
     "type": "const uint8_t *"
    }
   ],
   "comment": "One frame of width * height straight RGBA8, row 0 at the top.",
   "doc": "One frame of `width * height` straight RGBA8, row 0 at the top. `SONA_E_IO` when the file or ffmpeg failed; a GIF or ffmpeg\nerror sticks.",
   "page": "Headless rendering and video out",
   "anchor": "https://360sona.com/devs/docs/reference/c/headless-rendering-and-video-out.html#sona_video_frame"
  },
  {
   "name": "sona_video_finish",
   "header": "sona.h",
   "section": "3.19 headless rendering and video out (1.2)",
   "signature": "sona_result sona_video_finish(sona_video *v, uint8_t **out, size_t *out_len);",
   "returns": "sona_result",
   "params": [
    {
     "name": "v",
     "type": "sona_video *"
    },
    {
     "name": "out",
     "type": "uint8_t **"
    },
    {
     "name": "out_len",
     "type": "size_t *"
    }
   ],
   "comment": "Ends the file and frees v, also on error. out, out_len (may be NULL): the bytes of an in-memory video, freed with sona_free. SONA_E_IO when the file or ffmpeg failed (ffmpeg's last words in sona_last_error).",
   "doc": "Ends the file and frees `v`, also on error. For an in-memory video `*out` and `*out_len` (may be NULL) get the bytes,\nfreed with `sona_free`. `SONA_E_ARGUMENT` for a video with no frames; `SONA_E_IO` with ffmpeg's last line when it\nfailed.",
   "page": "Headless rendering and video out",
   "anchor": "https://360sona.com/devs/docs/reference/c/headless-rendering-and-video-out.html#sona_video_finish"
  },
  {
   "name": "sona_video_formats",
   "header": "sona.h",
   "section": "3.19 headless rendering and video out (1.2)",
   "signature": "uint32_t sona_video_formats(const char *ffmpeg);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "ffmpeg",
     "type": "const char *"
    }
   ],
   "comment": "Bit (1u << format) for each format this machine can write; ffmpeg as in sona_video_options (NULL: the default).",
   "doc": "Bit `1u << format` for each format this machine can write: PNG and GIF always, MP4 and WebM when that ffmpeg (NULL:\n`$SONA_FFMPEG`, else `ffmpeg` on the PATH) runs and has an encoder for them.",
   "page": "Headless rendering and video out",
   "anchor": "https://360sona.com/devs/docs/reference/c/headless-rendering-and-video-out.html#sona_video_formats"
  },
  {
   "name": "sona_skeleton_bone",
   "header": "sona.h",
   "section": "3.20 skeleton maps and VRM export (1.2)",
   "signature": "const char * sona_skeleton_bone(uint32_t skeleton, uint32_t joint);",
   "returns": "const char *",
   "params": [
    {
     "name": "skeleton",
     "type": "uint32_t"
    },
    {
     "name": "joint",
     "type": "uint32_t"
    }
   ],
   "comment": "The bone a joint is in that skeleton; NULL for a joint it has none for (shape, prop and special joints).",
   "doc": "The bone a joint is in a `sona_skeleton_kind` (`SONA_SKELETON_UNITY`, `_VRM`, `_VRM0`, `_UE4`, `_UE5`). `NULL` for a joint\nthat skeleton has no bone for (the shape, prop and special joints), past the last joint or for an unknown\nskeleton. A static string; any thread.",
   "page": "Skeleton maps and VRM export",
   "anchor": "https://360sona.com/devs/docs/reference/c/skeleton-maps-and-vrm-export.html#sona_skeleton_bone"
  },
  {
   "name": "sona_skeleton_joint",
   "header": "sona.h",
   "section": "3.20 skeleton maps and VRM export (1.2)",
   "signature": "int32_t sona_skeleton_joint(uint32_t skeleton, const char *bone);",
   "returns": "int32_t",
   "params": [
    {
     "name": "skeleton",
     "type": "uint32_t"
    },
    {
     "name": "bone",
     "type": "const char *"
    }
   ],
   "comment": "The joint a bone of that skeleton is, matched exactly; -1 when none.",
   "doc": "The joint a bone of that skeleton is, matched exactly; -1 when none.",
   "page": "Skeleton maps and VRM export",
   "anchor": "https://360sona.com/devs/docs/reference/c/skeleton-maps-and-vrm-export.html#sona_skeleton_joint"
  },
  {
   "name": "sona_vrm_expression_name",
   "header": "sona.h",
   "section": "3.20 skeleton maps and VRM export (1.2)",
   "signature": "const char * sona_vrm_expression_name(uint32_t expression);",
   "returns": "const char *",
   "params": [
    {
     "name": "expression",
     "type": "uint32_t"
    }
   ],
   "comment": "\"aa\" ... \"lookRight\"; NULL past the last",
   "doc": "The VRM 1.0 preset name of a `sona_vrm_expression` (`\"aa\"` ... `\"lookRight\"`); `NULL` past the last.",
   "page": "Skeleton maps and VRM export",
   "anchor": "https://360sona.com/devs/docs/reference/c/skeleton-maps-and-vrm-export.html#sona_vrm_expression_name"
  },
  {
   "name": "sona_vrm_face_default",
   "header": "sona.h",
   "section": "3.20 skeleton maps and VRM export (1.2)",
   "signature": "sona_result sona_vrm_face_default(uint32_t expression, sona_vrm_face *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "expression",
     "type": "uint32_t"
    },
    {
     "name": "out",
     "type": "sona_vrm_face *"
    }
   ],
   "comment": "",
   "doc": "The face an expression shows by default: a shape index per face part, in `sona_avatar_expression`'s order with\nleft meaning the avatar's own left, 255 for a part it leaves alone. `SONA_E_ARGUMENT` past the last expression.",
   "page": "Skeleton maps and VRM export",
   "anchor": "https://360sona.com/devs/docs/reference/c/skeleton-maps-and-vrm-export.html#sona_vrm_face_default"
  },
  {
   "name": "sona_export_defaults",
   "header": "sona.h",
   "section": "3.20 skeleton maps and VRM export (1.2)",
   "signature": "void sona_export_defaults(sona_export_options *o);",
   "returns": "void",
   "params": [
    {
     "name": "o",
     "type": "sona_export_options *"
    }
   ],
   "comment": "",
   "doc": "Sets `size`, VRM 1.0, Unity bone names, MToon, no flags, every string `NULL` and the most restrictive licence.",
   "page": "Skeleton maps and VRM export",
   "anchor": "https://360sona.com/devs/docs/reference/c/skeleton-maps-and-vrm-export.html#sona_export_defaults"
  },
  {
   "name": "sona_export_avatar",
   "header": "sona.h",
   "section": "3.20 skeleton maps and VRM export (1.2)",
   "signature": "sona_result sona_export_avatar(sona_avatar *a, const sona_export_options *o, uint8_t **out, size_t *out_len, sona_export_report *report);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "o",
     "type": "const sona_export_options *"
    },
    {
     "name": "out",
     "type": "uint8_t **"
    },
    {
     "name": "out_len",
     "type": "size_t *"
    },
    {
     "name": "report",
     "type": "sona_export_report *"
    }
   ],
   "comment": "The avatar as one binary glTF or VRM file, standing in the rig's T-pose with its body shape: bones without rotation or scale, the mesh in metres, facing +Z (VRM 0.x: -Z, as that version wants). The albedo of every part is flattened into one picture each; VRM adds the humanoid map, the expressions (face atlases moved by texture offsets), first-person and look-at settings and the meta. A clip's own held prop is left out; props attached with sona_avatar_prop_attach are in (SONA_EXPORT_NO_PROPS leaves them out). FBX is the same file as binary FBX 7.4; ROBLOX an FBX with R15 part names, no props, no clips and accessories left off. SONA_EXPORT_CLIPS: the clip the avatar plays and each layer's, as animations (GLB and FBX; SONA_E_ARGUMENT with VRM). Free *out with sona_free. report may be NULL. SONA_E_NOT_READY before READY.",
   "doc": "The avatar as one binary glTF, VRM 1.0 or VRM 0.x file in `*out` (free with `sona_free`). `o` `NULL`: the defaults;\nfields past `o->size` take their defaults. `report` may be `NULL`; when given, its `size` must be set, and only that\nmuch is written. Runs its slow parts on the ctx's workers; call it from the thread that calls `sona_update`.\n`SONA_E_NOT_READY` before READY, `SONA_E_DESTROYED`, `SONA_E_ARGUMENT` for a bad format, bone names, face table or\na `size` of 0, `SONA_E_MEMORY`.",
   "page": "Skeleton maps and VRM export",
   "anchor": "https://360sona.com/devs/docs/reference/c/skeleton-maps-and-vrm-export.html#sona_export_avatar"
  },
  {
   "name": "sona_print_defaults",
   "header": "sona.h",
   "section": "3.21 3D print export (1.2)",
   "signature": "void sona_print_defaults(sona_print_options *o);",
   "returns": "void",
   "params": [
    {
     "name": "o",
     "type": "sona_print_options *"
    }
   ],
   "comment": "",
   "doc": "`size` set, 120 mm tall, 1.2 mm walls, voxel from the wall, `close_mm` 0.6, a 3 mm base 4 mm round the feet in `0xff3c3c3c` (when `SONA_PRINT_BASE` is set), at most 24,000,000 grid points. NULL does nothing.",
   "page": "3D print export",
   "anchor": "https://360sona.com/devs/docs/reference/c/3d-print-export.html#sona_print_defaults"
  },
  {
   "name": "sona_print_avatars",
   "header": "sona.h",
   "section": "3.21 3D print export (1.2)",
   "signature": "sona_result sona_print_avatars(sona_avatar *const *avatars, uint32_t count, const sona_print_options *o, sona_print **out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "avatars",
     "type": "sona_avatar *const *"
    },
    {
     "name": "count",
     "type": "uint32_t"
    },
    {
     "name": "o",
     "type": "const sona_print_options *"
    },
    {
     "name": "out",
     "type": "sona_print **"
    }
   ],
   "comment": "One solid from count READY avatars, as posed by the last sona_update (all of one ctx). To print a clip frame: sona_avatar_play with from set to the time, then sona_avatar_stop and sona_update. NULL o: the defaults. SONA_E_NOT_READY when one is not READY, SONA_E_ARGUMENT for bad options or avatars of two ctxs, SONA_E_LIMIT when the figure needs more than max_voxels even at a coarser field, SONA_E_MEMORY.",
   "doc": "One solid from `count` READY avatars of one ctx, as posed by the last `sona_update`, in their placements. To print a clip frame: `sona_avatar_play` with `from` at the time, `sona_update`, `sona_avatar_stop`, `sona_update`. NULL `o`: the defaults. `SONA_E_NOT_READY`, `SONA_E_ARGUMENT` (NULL arguments, bad options, two ctxs), `SONA_E_NOT_FOUND` (nothing with area), `SONA_E_LIMIT` (no grid fits `max_voxels`), `SONA_E_MEMORY`.",
   "page": "3D print export",
   "anchor": "https://360sona.com/devs/docs/reference/c/3d-print-export.html#sona_print_avatars"
  },
  {
   "name": "sona_print_triangles",
   "header": "sona.h",
   "section": "3.21 3D print export (1.2)",
   "signature": "sona_result sona_print_triangles(sona_ctx *ctx, const float *positions, uint32_t vertex_count, const uint32_t *indices, uint32_t triangle_count, const uint32_t *colours, const sona_print_options *o, sona_print **out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "positions",
     "type": "const float *"
    },
    {
     "name": "vertex_count",
     "type": "uint32_t"
    },
    {
     "name": "indices",
     "type": "const uint32_t *"
    },
    {
     "name": "triangle_count",
     "type": "uint32_t"
    },
    {
     "name": "colours",
     "type": "const uint32_t *"
    },
    {
     "name": "o",
     "type": "const sona_print_options *"
    },
    {
     "name": "out",
     "type": "sona_print **"
    }
   ],
   "comment": "The same from any triangles: positions in metres in the SDK's frame (Y up, left-handed), colours 0xAARRGGBB per vertex (NULL: white). ctx may be NULL (malloc).",
   "doc": "The same from any triangles, in metres in the SDK's frame, any winding, colours 0xAARRGGBB per vertex or NULL. `ctx` may be NULL (malloc).",
   "page": "3D print export",
   "anchor": "https://360sona.com/devs/docs/reference/c/3d-print-export.html#sona_print_triangles"
  },
  {
   "name": "sona_print_get",
   "header": "sona.h",
   "section": "3.21 3D print export (1.2)",
   "signature": "sona_result sona_print_get(const sona_print *p, sona_print_mesh *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "p",
     "type": "const sona_print *"
    },
    {
     "name": "out",
     "type": "sona_print_mesh *"
    }
   ],
   "comment": "",
   "doc": "The solid: counts, shells, volume, area, positions, sRGB colours per vertex, indices (counter-clockwise from outside), bounds (`lo[2]` is 0, centred on x = y = 0) and the scale, wall and grid used. Pointers live as long as `p`. `SONA_E_ARGUMENT` when `out->size` is too small.",
   "page": "3D print export",
   "anchor": "https://360sona.com/devs/docs/reference/c/3d-print-export.html#sona_print_get"
  },
  {
   "name": "sona_print_encode",
   "header": "sona.h",
   "section": "3.21 3D print export (1.2)",
   "signature": "sona_result sona_print_encode(sona_print *p, uint32_t format, const uint8_t **out, size_t *out_len);",
   "returns": "sona_result",
   "params": [
    {
     "name": "p",
     "type": "sona_print *"
    },
    {
     "name": "format",
     "type": "uint32_t"
    },
    {
     "name": "out",
     "type": "const uint8_t **"
    },
    {
     "name": "out_len",
     "type": "size_t *"
    }
   ],
   "comment": "A file: SONA_PRINT_STL (binary) or SONA_PRINT_3MF (with a colour per vertex). The bytes live in p until the next sona_print_encode on it or sona_print_free.",
   "doc": "Binary STL, or 3MF with a colour per vertex (the materials extension's colour group). The bytes live in `p` until the next encode or `sona_print_free`. Deterministic.",
   "page": "3D print export",
   "anchor": "https://360sona.com/devs/docs/reference/c/3d-print-export.html#sona_print_encode"
  },
  {
   "name": "sona_print_free",
   "header": "sona.h",
   "section": "3.21 3D print export (1.2)",
   "signature": "void sona_print_free(sona_print *p);",
   "returns": "void",
   "params": [
    {
     "name": "p",
     "type": "sona_print *"
    }
   ],
   "comment": "",
   "doc": "NULL does nothing.",
   "page": "3D print export",
   "anchor": "https://360sona.com/devs/docs/reference/c/3d-print-export.html#sona_print_free"
  },
  {
   "name": "sona_print_check",
   "header": "sona.h",
   "section": "3.21 3D print export (1.2)",
   "signature": "sona_result sona_print_check(const float *positions, uint32_t vertex_count, const uint32_t *indices, uint32_t triangle_count, sona_print_report *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "positions",
     "type": "const float *"
    },
    {
     "name": "vertex_count",
     "type": "uint32_t"
    },
    {
     "name": "indices",
     "type": "const uint32_t *"
    },
    {
     "name": "triangle_count",
     "type": "uint32_t"
    },
    {
     "name": "out",
     "type": "sona_print_report *"
    }
   ],
   "comment": "Checks any triangle mesh (positions in any unit): edges, fans, orientation, volume and crossings. Pure.",
   "doc": "Checks any mesh: edges with one or more than two triangles, inconsistent winding, pinched vertices, degenerate and crossing triangles, shells, Euler characteristic, volume, area and bounds; `ok` is 1 when it would print as one closed solid per shell. Pure, no ctx.",
   "page": "3D print export",
   "anchor": "https://360sona.com/devs/docs/reference/c/3d-print-export.html#sona_print_check"
  },
  {
   "name": "sona_stock_clip_count",
   "header": "sona.h",
   "section": "3.22 the stock clip library and the procedural idle (1.2)",
   "signature": "uint32_t sona_stock_clip_count(void);",
   "returns": "uint32_t",
   "params": [],
   "comment": "Pure, no ctx. Clips are in id order. Each fills out up to out->size bytes; SONA_E_ARGUMENT when out is NULL or out->size is below 8, SONA_E_NOT_FOUND past the end or for an unknown id.",
   "doc": "The clips in the library: 100 (`SONA_STOCK_CLIP_COUNT`).",
   "page": "The stock clip library and the procedural idle",
   "anchor": "https://360sona.com/devs/docs/reference/c/stock-clips.html#sona_stock_clip_count"
  },
  {
   "name": "sona_stock_clip_at",
   "header": "sona.h",
   "section": "3.22 the stock clip library and the procedural idle (1.2)",
   "signature": "sona_result sona_stock_clip_at(uint32_t index, sona_stock_clip *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "index",
     "type": "uint32_t"
    },
    {
     "name": "out",
     "type": "sona_stock_clip *"
    }
   ],
   "comment": "",
   "doc": "The clip at index, in id order. `SONA_E_NOT_FOUND` past the end, `SONA_E_ARGUMENT` for a `NULL` out or a size below 8.",
   "page": "The stock clip library and the procedural idle",
   "anchor": "https://360sona.com/devs/docs/reference/c/stock-clips.html#sona_stock_clip_at"
  },
  {
   "name": "sona_stock_clip_get",
   "header": "sona.h",
   "section": "3.22 the stock clip library and the procedural idle (1.2)",
   "signature": "sona_result sona_stock_clip_get(uint32_t id, sona_stock_clip *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "id",
     "type": "uint32_t"
    },
    {
     "name": "out",
     "type": "sona_stock_clip *"
    }
   ],
   "comment": "",
   "doc": "The clip with this id (`SONA_STOCK_*`: bytes 4 to 7 of its asset id). `SONA_E_NOT_FOUND` for an unknown id.",
   "page": "The stock clip library and the procedural idle",
   "anchor": "https://360sona.com/devs/docs/reference/c/stock-clips.html#sona_stock_clip_get"
  },
  {
   "name": "sona_stock_clip_find",
   "header": "sona.h",
   "section": "3.22 the stock clip library and the procedural idle (1.2)",
   "signature": "uint32_t sona_stock_clip_find(const char *name);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "name",
     "type": "const char *"
    }
   ],
   "comment": "By name (\"wave\"), asset id (either case) or a key of sona_clip_get's table (\"GenericWave\"); 0 when none.",
   "doc": "A library name (`\"wave\"`), an asset id in either case or a `sona_clip_get` key (`\"GenericWave\"`); 0 when none.",
   "page": "The stock clip library and the procedural idle",
   "anchor": "https://360sona.com/devs/docs/reference/c/stock-clips.html#sona_stock_clip_find"
  },
  {
   "name": "sona_stock_clip_for_body",
   "header": "sona.h",
   "section": "3.22 the stock clip library and the procedural idle (1.2)",
   "signature": "uint32_t sona_stock_clip_for_body(uint32_t id, uint32_t body);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "id",
     "type": "uint32_t"
    },
    {
     "name": "body",
     "type": "uint32_t"
    }
   ],
   "comment": "The clip of id's family made for body (1 male, 2 female): its own variant, else one for both, else id.",
   "doc": "The clip of id's family made for body (1 male, 2 female): its own variant, else one for both, else id itself.",
   "page": "The stock clip library and the procedural idle",
   "anchor": "https://360sona.com/devs/docs/reference/c/stock-clips.html#sona_stock_clip_for_body"
  },
  {
   "name": "sona_stock_clips_tagged",
   "header": "sona.h",
   "section": "3.22 the stock clip library and the procedural idle (1.2)",
   "signature": "uint32_t sona_stock_clips_tagged(uint32_t all, uint32_t none, uint32_t body, uint32_t *ids, uint32_t cap);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "all",
     "type": "uint32_t"
    },
    {
     "name": "none",
     "type": "uint32_t"
    },
    {
     "name": "body",
     "type": "uint32_t"
    },
    {
     "name": "ids",
     "type": "uint32_t *"
    },
    {
     "name": "cap",
     "type": "uint32_t"
    }
   ],
   "comment": "Clips with every tag of all and none of none that suit body (0 any; 1 or 2: that body's and both bodies' clips), in id order. Returns how many match; writes up to cap ids (ids may be NULL with cap 0).",
   "doc": "Clips with every `SONA_CLIP_TAG_*` bit of all and none of none that suit body (0 any; 1 or 2: that body's clips and\nthe clips for both), in id order. Returns how many match and writes up to cap ids; ids may be `NULL` with cap 0.",
   "page": "The stock clip library and the procedural idle",
   "anchor": "https://360sona.com/devs/docs/reference/c/stock-clips.html#sona_stock_clips_tagged"
  },
  {
   "name": "sona_clip_tag_name",
   "header": "sona.h",
   "section": "3.22 the stock clip library and the procedural idle (1.2)",
   "signature": "const char * sona_clip_tag_name(uint32_t tag);",
   "returns": "const char *",
   "params": [
    {
     "name": "tag",
     "type": "uint32_t"
    }
   ],
   "comment": "one SONA_CLIP_TAG_* bit: \"idle\", ...; else NULL",
   "doc": "The name of one tag bit (`\"idle\"`, `\"travel\"`, ...); `NULL` for 0, several bits or an unknown bit.",
   "page": "The stock clip library and the procedural idle",
   "anchor": "https://360sona.com/devs/docs/reference/c/stock-clips.html#sona_clip_tag_name"
  },
  {
   "name": "sona_clip_tag_find",
   "header": "sona.h",
   "section": "3.22 the stock clip library and the procedural idle (1.2)",
   "signature": "uint32_t sona_clip_tag_find(const char *name);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "name",
     "type": "const char *"
    }
   ],
   "comment": "the bit for a tag name; 0 when none",
   "doc": "The bit for a tag name; 0 when none.",
   "page": "The stock clip library and the procedural idle",
   "anchor": "https://360sona.com/devs/docs/reference/c/stock-clips.html#sona_clip_tag_find"
  },
  {
   "name": "sona_avatar_play_stock",
   "header": "sona.h",
   "section": "3.22 the stock clip library and the procedural idle (1.2)",
   "signature": "sona_result sona_avatar_play_stock(sona_avatar *a, uint32_t id, const sona_play_options *opts, float fade_seconds);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "id",
     "type": "uint32_t"
    },
    {
     "name": "opts",
     "type": "const sona_play_options *"
    },
    {
     "name": "fade_seconds",
     "type": "float"
    }
   ],
   "comment": "sona_avatar_play (fade_seconds 0) or sona_avatar_crossfade of id's variant for the avatar's body. NULL opts: loop when the clip has SONA_CLIP_TAG_LOOP, speed 1, from 0.",
   "doc": "Plays id's variant for the avatar's body (`sona_stock_clip_for_body` with the manifest's gender) through\n`sona_avatar_play`, or `sona_avatar_crossfade` when fade_seconds is above 0. `NULL` opts: loop when the clip has\n`SONA_CLIP_TAG_LOOP`, speed 1, from 0. `SONA_E_NOT_FOUND` for an unknown id; otherwise what the play call returns.",
   "page": "The stock clip library and the procedural idle",
   "anchor": "https://360sona.com/devs/docs/reference/c/stock-clips.html#sona_avatar_play_stock"
  },
  {
   "name": "sona_idle_defaults",
   "header": "sona.h",
   "section": "3.22 the stock clip library and the procedural idle (1.2)",
   "signature": "void sona_idle_defaults(sona_idle_options *o);",
   "returns": "void",
   "params": [
    {
     "name": "o",
     "type": "sona_idle_options *"
    }
   ],
   "comment": "",
   "doc": "`size` set, `parts` `SONA_IDLE_ALL`, `seed` 0, `amount` 1, `face_px` 240.",
   "page": "The stock clip library and the procedural idle",
   "anchor": "https://360sona.com/devs/docs/reference/c/stock-clips.html#sona_idle_defaults"
  },
  {
   "name": "sona_avatar_idle",
   "header": "sona.h",
   "section": "3.22 the stock clip library and the procedural idle (1.2)",
   "signature": "sona_result sona_avatar_idle(sona_avatar *a, const sona_idle_options *o);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "o",
     "type": "const sona_idle_options *"
    }
   ],
   "comment": "NULL turns it off. SONA_E_ARGUMENT for a bad size, amount or face_px.",
   "doc": "Turns the procedural idle on with these options, or off for `NULL`. A seed of 0 is resolved from the ctx seed and\nthe avatar id. `SONA_E_ARGUMENT` for a size below 20, unknown parts, amount outside 0..2 or a negative or infinite\nface_px; `SONA_E_DESTROYED` for a removed avatar. Off, the avatar poses exactly as without it.",
   "page": "The stock clip library and the procedural idle",
   "anchor": "https://360sona.com/devs/docs/reference/c/stock-clips.html#sona_avatar_idle"
  },
  {
   "name": "sona_avatar_idle_get",
   "header": "sona.h",
   "section": "3.22 the stock clip library and the procedural idle (1.2)",
   "signature": "sona_result sona_avatar_idle_get(const sona_avatar *a, sona_idle_options *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "const sona_avatar *"
    },
    {
     "name": "out",
     "type": "sona_idle_options *"
    }
   ],
   "comment": "The options in use, seed resolved; parts 0 when off.",
   "doc": "The options in use, seed resolved; parts 0 when off.",
   "page": "The stock clip library and the procedural idle",
   "anchor": "https://360sona.com/devs/docs/reference/c/stock-clips.html#sona_avatar_idle_get"
  },
  {
   "name": "sona_avatar_idle_state",
   "header": "sona.h",
   "section": "3.22 the stock clip library and the procedural idle (1.2)",
   "signature": "sona_result sona_avatar_idle_state(const sona_avatar *a, sona_idle_state *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "const sona_avatar *"
    },
    {
     "name": "out",
     "type": "sona_idle_state *"
    }
   ],
   "comment": "What the idle gave the avatar's last pose; all 0 before one or when off.",
   "doc": "The channels the idle gave the avatar's last pose (before amount); all 0 before one or when off.",
   "page": "The stock clip library and the procedural idle",
   "anchor": "https://360sona.com/devs/docs/reference/c/stock-clips.html#sona_avatar_idle_state"
  },
  {
   "name": "sona_idle_sample",
   "header": "sona.h",
   "section": "3.22 the stock clip library and the procedural idle (1.2)",
   "signature": "sona_result sona_idle_sample(const sona_idle_options *o, double seconds, sona_idle_state *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "o",
     "type": "const sona_idle_options *"
    },
    {
     "name": "seconds",
     "type": "double"
    },
    {
     "name": "out",
     "type": "sona_idle_state *"
    }
   ],
   "comment": "Pure: the idle's channels at seconds for o->seed (0 is a seed here) and o->parts, before amount.",
   "doc": "Pure: the channels at seconds on the ctx clock for `o->seed` (0 is a seed here) and `o->parts`, before amount.\n`sona_avatar_idle_state` equals it at the clock of the last pose. `SONA_E_ARGUMENT` for a negative or infinite\ntime.",
   "page": "The stock clip library and the procedural idle",
   "anchor": "https://360sona.com/devs/docs/reference/c/stock-clips.html#sona_idle_sample"
  },
  {
   "name": "sona_ik_target_defaults",
   "header": "sona.h",
   "section": "3.23 inverse kinematics (1.2)",
   "signature": "void sona_ik_target_defaults(sona_ik_target *t);",
   "returns": "void",
   "params": [
    {
     "name": "t",
     "type": "sona_ik_target *"
    }
   ],
   "comment": "",
   "doc": "`size` set, no flags, position 0, rotation (0, 0, 0, 1), joint -1, weight 1, and the fade a default of 0.2 s. NULL is ignored.",
   "page": "Inverse kinematics",
   "anchor": "https://360sona.com/devs/docs/reference/c/inverse-kinematics.html#sona_ik_target_defaults"
  },
  {
   "name": "sona_avatar_ik_target",
   "header": "sona.h",
   "section": "3.23 inverse kinematics (1.2)",
   "signature": "sona_result sona_avatar_ik_target(sona_avatar *a, uint32_t limb, const sona_ik_target *t);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "limb",
     "type": "uint32_t"
    },
    {
     "name": "t",
     "type": "const sona_ik_target *"
    }
   ],
   "comment": "limb SONA_IK_LEFT_HAND .. SONA_IK_RIGHT_FOOT. NULL t: off at once. A foot target replaces planting for that foot. Call each frame for a moving target. SONA_E_ARGUMENT for a bad limb, size, flag, weight or joint, or a rotation that is not a quaternion.",
   "doc": "A hand puts its palm (with `SONA_IK_WRIST` its wrist) at `position`; a foot its ankle. Flags: `SONA_IK_ROTATION`\n(`rotation` is the hand's or foot's world orientation from the rest pose), `SONA_IK_POLE` (`pole` is a point the\nelbow or knee bends towards), `SONA_IK_RELATIVE` (position, rotation and pole are in the frame of `joint` of this\navatar), `SONA_IK_AVATAR_SPACE` (in avatar space, before the placement). `weight` 0..1 eases over `fade_seconds`.\nNULL `t`: off at once. A foot target replaces planting for that foot. `SONA_E_ARGUMENT` for a limb past 3, a small\n`size`, an unknown flag, a non-finite position or pole, a weight outside 0..1, a negative fade, a zero quaternion,\n`SONA_IK_RELATIVE` without a joint (or with `SONA_IK_AVATAR_SPACE`), or `SONA_IK_WRIST` on a foot.",
   "page": "Inverse kinematics",
   "anchor": "https://360sona.com/devs/docs/reference/c/inverse-kinematics.html#sona_avatar_ik_target"
  },
  {
   "name": "sona_ik_feet_defaults",
   "header": "sona.h",
   "section": "3.23 inverse kinematics (1.2)",
   "signature": "void sona_ik_feet_defaults(sona_ik_feet *o);",
   "returns": "void",
   "params": [
    {
     "name": "o",
     "type": "sona_ik_feet *"
    }
   ],
   "comment": "",
   "doc": "`SONA_IK_GROUND_PLANE` with the plane y = 0, weight 1, hips offset at most 0.45 m, tilt at most 35 degrees,\nand the smoothing a default of 0.1 s.",
   "page": "Inverse kinematics",
   "anchor": "https://360sona.com/devs/docs/reference/c/inverse-kinematics.html#sona_ik_feet_defaults"
  },
  {
   "name": "sona_avatar_ik_feet",
   "header": "sona.h",
   "section": "3.23 inverse kinematics (1.2)",
   "signature": "sona_result sona_avatar_ik_feet(sona_avatar *a, const sona_ik_feet *o);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "o",
     "type": "const sona_ik_feet *"
    }
   ],
   "comment": "NULL: off at once. SONA_E_ARGUMENT for a bad size, mode, plane, or CALLBACK without query.",
   "doc": "Plants the feet on the ground given by `ground`: `SONA_IK_GROUND_PLANE` (`plane`: n.x, n.y, n.z, d, world),\n`SONA_IK_GROUND_POINTS` (`sona_avatar_ik_ground` per foot) or `SONA_IK_GROUND_CALLBACK` (`query`, a downward ray\nthe core asks for each foot's heel and toes; it runs on the posing threads, at the same time for different\navatars, must be safe from any thread and must not call into sona). The hips move by up to `max_hips_offset`.\nNULL: off at once. `SONA_E_ARGUMENT` for a small `size`, another mode, a plane with no up component, a callback\nmode without `query`, or a weight, offset, tilt or smoothing out of range.",
   "page": "Inverse kinematics",
   "anchor": "https://360sona.com/devs/docs/reference/c/inverse-kinematics.html#sona_avatar_ik_feet"
  },
  {
   "name": "sona_avatar_ik_ground",
   "header": "sona.h",
   "section": "3.23 inverse kinematics (1.2)",
   "signature": "sona_result sona_avatar_ik_ground(sona_avatar *a, uint32_t foot, const float point[3], const float normal[3]);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "foot",
     "type": "uint32_t"
    },
    {
     "name": "point",
     "type": "const float [3]"
    },
    {
     "name": "normal",
     "type": "const float [3]"
    }
   ],
   "comment": "POINTS: the ground under one foot (SONA_IK_LEFT_FOOT or SONA_IK_RIGHT_FOOT), world point and normal, used from the next pose until changed. NULL point: no ground under that foot.",
   "doc": "`SONA_IK_GROUND_POINTS`: the world point and normal of the ground under `SONA_IK_LEFT_FOOT` or\n`SONA_IK_RIGHT_FOOT`, used from the next pose until changed. NULL `point`: no ground under that foot.\n`SONA_E_ARGUMENT` for another limb, a NULL or zero normal, or a non-finite value.",
   "page": "Inverse kinematics",
   "anchor": "https://360sona.com/devs/docs/reference/c/inverse-kinematics.html#sona_avatar_ik_ground"
  },
  {
   "name": "sona_ik_look_defaults",
   "header": "sona.h",
   "section": "3.23 inverse kinematics (1.2)",
   "signature": "void sona_ik_look_defaults(sona_ik_look *o);",
   "returns": "void",
   "params": [
    {
     "name": "o",
     "type": "sona_ik_look *"
    }
   ],
   "comment": "",
   "doc": "Its defaults are head and eyes, weight 1, yaw 70, up 35, down 45 degrees, smoothing by default 0.15 s, a turn rate of 360 degrees a second, eyes past 10.",
   "page": "Inverse kinematics",
   "anchor": "https://360sona.com/devs/docs/reference/c/inverse-kinematics.html#sona_ik_look_defaults"
  },
  {
   "name": "sona_avatar_ik_look",
   "header": "sona.h",
   "section": "3.23 inverse kinematics (1.2)",
   "signature": "sona_result sona_avatar_ik_look(sona_avatar *a, const sona_ik_look *o);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "o",
     "type": "const sona_ik_look *"
    }
   ],
   "comment": "NULL: off, easing back over smoothing. Call each frame for a moving target.",
   "doc": "Turns the chest, neck and head towards the world point `target` inside the limits, eased; the eyes take the rest\nthrough the face's look shapes when it has them. `SONA_IK_LOOK_HEAD` and `SONA_IK_LOOK_EYES` choose which. NULL:\noff, easing back. `SONA_E_ARGUMENT` for a small `size`, an unknown flag, a non-finite target, or a limit out of\nrange (yaw 0..135, up and down 0..89, eyes 0..90, speed above 0).",
   "page": "Inverse kinematics",
   "anchor": "https://360sona.com/devs/docs/reference/c/inverse-kinematics.html#sona_avatar_ik_look"
  },
  {
   "name": "sona_ik_limits_defaults",
   "header": "sona.h",
   "section": "3.23 inverse kinematics (1.2)",
   "signature": "void sona_ik_limits_defaults(sona_ik_limits *o);",
   "returns": "void",
   "params": [
    {
     "name": "o",
     "type": "sona_ik_limits *"
    }
   ],
   "comment": "",
   "doc": "Elbows 145, knees 150, wrists 75 swing and 80 twist, ankles 45 and 30 degrees, hips 120 forward, 25 behind, 45\nout and 25 in, shoulders 45 behind (held level) and 50 across, reach easing from 0.97, a 0.02 m body margin, the body checks\non.",
   "page": "Inverse kinematics",
   "anchor": "https://360sona.com/devs/docs/reference/c/inverse-kinematics.html#sona_ik_limits_defaults"
  },
  {
   "name": "sona_avatar_ik_limits",
   "header": "sona.h",
   "section": "3.23 inverse kinematics (1.2)",
   "signature": "sona_result sona_avatar_ik_limits(sona_avatar *a, const sona_ik_limits *o);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "o",
     "type": "const sona_ik_limits *"
    }
   ],
   "comment": "NULL: the defaults",
   "doc": "The joint limits for this avatar's solves. `SONA_IK_NO_BODY` turns off the checks that keep the limbs clear of the\ntorso, head and legs. Every limit is hard: a target past one is reached short, and a clip already past one is\nkept, never taken further. NULL: the defaults. `SONA_E_ARGUMENT` for a small `size`, an unknown flag or a value out\nof range (hips forward 0..150, behind 0..90 and the two together at most 180; out, in and the shoulders 0..90).",
   "page": "Inverse kinematics",
   "anchor": "https://360sona.com/devs/docs/reference/c/inverse-kinematics.html#sona_avatar_ik_limits"
  },
  {
   "name": "sona_avatar_ik_clear",
   "header": "sona.h",
   "section": "3.23 inverse kinematics (1.2)",
   "signature": "void sona_avatar_ik_clear(sona_avatar *a);",
   "returns": "void",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    }
   ],
   "comment": "every target, planting and look-at off at once",
   "doc": "Every target, the planting and the look-at off at once. The next pose is the clip's, bit for bit. NULL is ignored.",
   "page": "Inverse kinematics",
   "anchor": "https://360sona.com/devs/docs/reference/c/inverse-kinematics.html#sona_avatar_ik_clear"
  },
  {
   "name": "sona_avatar_ik_status",
   "header": "sona.h",
   "section": "3.23 inverse kinematics (1.2)",
   "signature": "sona_result sona_avatar_ik_status(const sona_avatar *a, sona_ik_status *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "const sona_avatar *"
    },
    {
     "name": "out",
     "type": "sona_ik_status *"
    }
   ],
   "comment": "SONA_E_NOT_READY before the avatar has been posed with IK on.",
   "doc": "What the last pose did: `active` (`1 << limb`, `SONA_IK_ACTIVE_FEET`, `SONA_IK_ACTIVE_LOOK`), each limb's\ndistance from its target in metres, what held it back (`SONA_IK_HIT_REACH`, `_BEND`, `_POLE`, `_BODY`,\n`_ROTATION`, `_GROUND`, `_SWING`), the hips' move, the head's turn from the clip and the eye shapes shown (255: the clip's).\nSet `out->size` first. `SONA_E_NOT_READY` before the avatar was posed with IK on; `SONA_E_ARGUMENT` for a small\n`size`.",
   "page": "Inverse kinematics",
   "anchor": "https://360sona.com/devs/docs/reference/c/inverse-kinematics.html#sona_avatar_ik_status"
  },
  {
   "name": "sona_ik_foot_lock_defaults",
   "header": "sona.h",
   "section": "3.23 inverse kinematics (1.2)",
   "signature": "void sona_ik_foot_lock_defaults(sona_ik_foot_lock *o);",
   "returns": "void",
   "params": [
    {
     "name": "o",
     "type": "sona_ik_foot_lock *"
    }
   ],
   "comment": "",
   "doc": "`size` set; `weight` 1, `max_slide` 0.25, `release_seconds` 0.15.",
   "page": "Inverse kinematics",
   "anchor": "https://360sona.com/devs/docs/reference/c/inverse-kinematics.html#sona_ik_foot_lock_defaults"
  },
  {
   "name": "sona_avatar_ik_foot_lock",
   "header": "sona.h",
   "section": "3.23 inverse kinematics (1.2)",
   "signature": "sona_result sona_avatar_ik_foot_lock(sona_avatar *a, const sona_ik_foot_lock *o);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "o",
     "type": "const sona_ik_foot_lock *"
    }
   ],
   "comment": "",
   "doc": "Foot locking: a foot the clip plants stays where it landed until the clip lifts the heel, so walk and run clips do not slide while the host moves the avatar no faster than the clip's feet travel. Pulled past `max_slide` it lets go. A foot target replaces it for that foot. NULL: off.",
   "page": "Inverse kinematics",
   "anchor": "https://360sona.com/devs/docs/reference/c/inverse-kinematics.html#sona_avatar_ik_foot_lock"
  },
  {
   "name": "sona_ik_spine_defaults",
   "header": "sona.h",
   "section": "3.23 inverse kinematics (1.2)",
   "signature": "void sona_ik_spine_defaults(sona_ik_spine *o);",
   "returns": "void",
   "params": [
    {
     "name": "o",
     "type": "sona_ik_spine *"
    }
   ],
   "comment": "",
   "doc": "`size` set; `weight` 1, `max_bend_deg` 35, `max_twist_deg` 40, `hips_share` 0.2.",
   "page": "Inverse kinematics",
   "anchor": "https://360sona.com/devs/docs/reference/c/inverse-kinematics.html#sona_ik_spine_defaults"
  },
  {
   "name": "sona_avatar_ik_spine",
   "header": "sona.h",
   "section": "3.23 inverse kinematics (1.2)",
   "signature": "sona_result sona_avatar_ik_spine(sona_avatar *a, const sona_ik_spine *o);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "o",
     "type": "const sona_ik_spine *"
    }
   ],
   "comment": "",
   "doc": "Spine assist: a hand target past the arm's reach bends and turns the spine, and the hips a little, towards it. NULL: off.",
   "page": "Inverse kinematics",
   "anchor": "https://360sona.com/devs/docs/reference/c/inverse-kinematics.html#sona_avatar_ik_spine"
  },
  {
   "name": "sona_ik_fingers_defaults",
   "header": "sona.h",
   "section": "3.23 inverse kinematics (1.2)",
   "signature": "void sona_ik_fingers_defaults(sona_ik_fingers *o);",
   "returns": "void",
   "params": [
    {
     "name": "o",
     "type": "sona_ik_fingers *"
    }
   ],
   "comment": "",
   "doc": "`size` set; `spread` 0, `weight` 1, `fade_seconds` 0.15.",
   "page": "Inverse kinematics",
   "anchor": "https://360sona.com/devs/docs/reference/c/inverse-kinematics.html#sona_ik_fingers_defaults"
  },
  {
   "name": "sona_avatar_ik_fingers",
   "header": "sona.h",
   "section": "3.23 inverse kinematics (1.2)",
   "signature": "sona_result sona_avatar_ik_fingers(sona_avatar *a, uint32_t hand, const sona_ik_fingers *o);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "hand",
     "type": "uint32_t"
    },
    {
     "name": "o",
     "type": "const sona_ik_fingers *"
    }
   ],
   "comment": "hand SONA_IK_LEFT_HAND or SONA_IK_RIGHT_HAND. NULL: back to the clip over fade_seconds.",
   "doc": "`hand` `SONA_IK_LEFT_HAND` or `SONA_IK_RIGHT_HAND`. NULL: back to the clip over fade_seconds.",
   "page": "Inverse kinematics",
   "anchor": "https://360sona.com/devs/docs/reference/c/inverse-kinematics.html#sona_avatar_ik_fingers"
  },
  {
   "name": "sona_ik_eyes_defaults",
   "header": "sona.h",
   "section": "3.23 inverse kinematics (1.2)",
   "signature": "void sona_ik_eyes_defaults(sona_ik_eyes *o);",
   "returns": "void",
   "params": [
    {
     "name": "o",
     "type": "sona_ik_eyes *"
    }
   ],
   "comment": "",
   "doc": "`size` set; `max_speed_deg` 400, `smoothing` 0.05, `lead_seconds` 0.08.",
   "page": "Inverse kinematics",
   "anchor": "https://360sona.com/devs/docs/reference/c/inverse-kinematics.html#sona_ik_eyes_defaults"
  },
  {
   "name": "sona_avatar_ik_eyes",
   "header": "sona.h",
   "section": "3.23 inverse kinematics (1.2)",
   "signature": "sona_result sona_avatar_ik_eyes(sona_avatar *a, const sona_ik_eyes *o);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "o",
     "type": "const sona_ik_eyes *"
    }
   ],
   "comment": "",
   "doc": "Smooth eye turns: the eyes move towards the look-at target at up to `max_speed_deg` a second and lead the head by `lead_seconds`. NULL: back to the plain look-at.",
   "page": "Inverse kinematics",
   "anchor": "https://360sona.com/devs/docs/reference/c/inverse-kinematics.html#sona_avatar_ik_eyes"
  },
  {
   "name": "sona_import_defaults",
   "header": "sona.h",
   "section": "3.24 imported clips (1.2)",
   "signature": "void sona_import_defaults(sona_import_options *o);",
   "returns": "void",
   "params": [
    {
     "name": "o",
     "type": "sona_import_options *"
    }
   ],
   "comment": "",
   "doc": "Zeroes the options and sets `size`.",
   "page": "Imported clips",
   "anchor": "https://360sona.com/devs/docs/reference/c/imported-clips.html#sona_import_defaults"
  },
  {
   "name": "sona_import_formats",
   "header": "sona.h",
   "section": "3.24 imported clips (1.2)",
   "signature": "uint32_t sona_import_formats(void);",
   "returns": "uint32_t",
   "params": [],
   "comment": "bit (1 << SONA_ANIM_*) per format this build reads",
   "doc": "`1 << SONA_ANIM_GLTF`, `_FBX` and `_BVH` for each format this build reads.",
   "page": "Imported clips",
   "anchor": "https://360sona.com/devs/docs/reference/c/imported-clips.html#sona_import_formats"
  },
  {
   "name": "sona_anim_file_load",
   "header": "sona.h",
   "section": "3.24 imported clips (1.2)",
   "signature": "sona_result sona_anim_file_load(const void *bytes, size_t len, const sona_import_options *opts, sona_anim_file **out, char *why, size_t why_cap);",
   "returns": "sona_result",
   "params": [
    {
     "name": "bytes",
     "type": "const void *"
    },
    {
     "name": "len",
     "type": "size_t"
    },
    {
     "name": "opts",
     "type": "const sona_import_options *"
    },
    {
     "name": "out",
     "type": "sona_anim_file **"
    },
    {
     "name": "why",
     "type": "char *"
    },
    {
     "name": "why_cap",
     "type": "size_t"
    }
   ],
   "comment": "",
   "doc": "Parses a clip file in memory, no ctx needed. `opts` may be NULL; its `format`, `map` and `flags` are used (the\nmapping `sona_anim_file_bone` reports). `SONA_E_CORRUPT`, `SONA_E_UNSUPPORTED` or `SONA_E_LIMIT` with the reason in\n`why`. A `.gltf` whose buffers are other files needs `sona_anim_file_open`.",
   "page": "Imported clips",
   "anchor": "https://360sona.com/devs/docs/reference/c/imported-clips.html#sona_anim_file_load"
  },
  {
   "name": "sona_anim_file_open",
   "header": "sona.h",
   "section": "3.24 imported clips (1.2)",
   "signature": "sona_result sona_anim_file_open(const char *path, const sona_import_options *opts, sona_anim_file **out, char *why, size_t why_cap);",
   "returns": "sona_result",
   "params": [
    {
     "name": "path",
     "type": "const char *"
    },
    {
     "name": "opts",
     "type": "const sona_import_options *"
    },
    {
     "name": "out",
     "type": "sona_anim_file **"
    },
    {
     "name": "why",
     "type": "char *"
    },
    {
     "name": "why_cap",
     "type": "size_t"
    }
   ],
   "comment": "From a path: a .gltf's own buffers next to it are read too.",
   "doc": "The same from a path (`SONA_E_IO` when it cannot be read). A BVH take is named after the file.",
   "page": "Imported clips",
   "anchor": "https://360sona.com/devs/docs/reference/c/imported-clips.html#sona_anim_file_open"
  },
  {
   "name": "sona_anim_file_free",
   "header": "sona.h",
   "section": "3.24 imported clips (1.2)",
   "signature": "void sona_anim_file_free(sona_anim_file *f);",
   "returns": "void",
   "params": [
    {
     "name": "f",
     "type": "sona_anim_file *"
    }
   ],
   "comment": "",
   "doc": "Imported clips do not need the file once `sona_clip_import` returned.",
   "page": "Imported clips",
   "anchor": "https://360sona.com/devs/docs/reference/c/imported-clips.html#sona_anim_file_free"
  },
  {
   "name": "sona_anim_file_takes",
   "header": "sona.h",
   "section": "3.24 imported clips (1.2)",
   "signature": "uint32_t sona_anim_file_takes(const sona_anim_file *f);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "f",
     "type": "const sona_anim_file *"
    }
   ],
   "comment": "",
   "doc": "How many takes (animations) the file holds.",
   "page": "Imported clips",
   "anchor": "https://360sona.com/devs/docs/reference/c/imported-clips.html#sona_anim_file_takes"
  },
  {
   "name": "sona_anim_file_take",
   "header": "sona.h",
   "section": "3.24 imported clips (1.2)",
   "signature": "const char * sona_anim_file_take(const sona_anim_file *f, uint32_t index, float *seconds);",
   "returns": "const char *",
   "params": [
    {
     "name": "f",
     "type": "const sona_anim_file *"
    },
    {
     "name": "index",
     "type": "uint32_t"
    },
    {
     "name": "seconds",
     "type": "float *"
    }
   ],
   "comment": "NULL past",
   "doc": "A take's name and length; `NULL` past the last.",
   "page": "Imported clips",
   "anchor": "https://360sona.com/devs/docs/reference/c/imported-clips.html#sona_anim_file_take"
  },
  {
   "name": "sona_anim_file_bones",
   "header": "sona.h",
   "section": "3.24 imported clips (1.2)",
   "signature": "uint32_t sona_anim_file_bones(const sona_anim_file *f);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "f",
     "type": "const sona_anim_file *"
    }
   ],
   "comment": "",
   "doc": "How many bones the file's skeleton has.",
   "page": "Imported clips",
   "anchor": "https://360sona.com/devs/docs/reference/c/imported-clips.html#sona_anim_file_bones"
  },
  {
   "name": "sona_anim_file_bone",
   "header": "sona.h",
   "section": "3.24 imported clips (1.2)",
   "signature": "const char * sona_anim_file_bone(const sona_anim_file *f, uint32_t index, int32_t *parent, int32_t *joint);",
   "returns": "const char *",
   "params": [
    {
     "name": "f",
     "type": "const sona_anim_file *"
    },
    {
     "name": "index",
     "type": "uint32_t"
    },
    {
     "name": "parent",
     "type": "int32_t *"
    },
    {
     "name": "joint",
     "type": "int32_t *"
    }
   ],
   "comment": "parent: a lower index or -1; joint: the avatar joint it drives, or -1. NULL past the last bone.",
   "doc": "A bone's name, its parent (a lower index, or -1) and the avatar joint it drives (-1 none). `NULL` past the last.",
   "page": "Imported clips",
   "anchor": "https://360sona.com/devs/docs/reference/c/imported-clips.html#sona_anim_file_bone"
  },
  {
   "name": "sona_clip_import",
   "header": "sona.h",
   "section": "3.24 imported clips (1.2)",
   "signature": "sona_result sona_clip_import(sona_ctx *ctx, const sona_anim_file *f, const sona_import_options *opts, sona_import_info *info);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "f",
     "type": "const sona_anim_file *"
    },
    {
     "name": "opts",
     "type": "const sona_import_options *"
    },
    {
     "name": "info",
     "type": "sona_import_info *"
    }
   ],
   "comment": "Retargets one take onto the rig and keeps it in ctx under its key, replacing an imported clip of that key (avatars playing the old one finish it). SONA_PENDING until the rig data has been read through the sources: call again after sona_update. SONA_E_ARGUMENT for a key a stock clip has (\"idle\", \"still\", \"prop\" included) or a take that does not exist, SONA_E_NOT_FOUND when no bone matches a joint (or the file has no animation), SONA_E_LIMIT past 1024 clips or past 11,814 frames (a 64 MiB frame table: 6.5 min at 30 fps, 98 s at 120; import part of the take with start and end, or a lower fps). info may be NULL.",
   "doc": "Retargets one take and keeps it under its key (replacing an imported clip of that key). `SONA_PENDING` until the\nrig data has been read: call again after `sona_update`. `SONA_E_ARGUMENT` for a stock key, an id, an unknown take or\na map entry naming no joint; `SONA_E_NOT_FOUND` when no bone matches a joint or the file has no animation;\n`SONA_E_LIMIT` past 1024 clips. `sona_last_error` has the reason.",
   "page": "Imported clips",
   "anchor": "https://360sona.com/devs/docs/reference/c/imported-clips.html#sona_clip_import"
  },
  {
   "name": "sona_clip_imported_count",
   "header": "sona.h",
   "section": "3.24 imported clips (1.2)",
   "signature": "uint32_t sona_clip_imported_count(const sona_ctx *ctx);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "ctx",
     "type": "const sona_ctx *"
    }
   ],
   "comment": "",
   "doc": "How many clips have been imported into the ctx.",
   "page": "Imported clips",
   "anchor": "https://360sona.com/devs/docs/reference/c/imported-clips.html#sona_clip_imported_count"
  },
  {
   "name": "sona_clip_imported_get",
   "header": "sona.h",
   "section": "3.24 imported clips (1.2)",
   "signature": "sona_result sona_clip_imported_get(const sona_ctx *ctx, uint32_t index, sona_import_info *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "const sona_ctx *"
    },
    {
     "name": "index",
     "type": "uint32_t"
    },
    {
     "name": "out",
     "type": "sona_import_info *"
    }
   ],
   "comment": "",
   "doc": "`SONA_E_NOT_FOUND` past the last.",
   "page": "Imported clips",
   "anchor": "https://360sona.com/devs/docs/reference/c/imported-clips.html#sona_clip_imported_get"
  },
  {
   "name": "sona_clip_imported_find",
   "header": "sona.h",
   "section": "3.24 imported clips (1.2)",
   "signature": "sona_result sona_clip_imported_find(const sona_ctx *ctx, const char *key, sona_import_info *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "const sona_ctx *"
    },
    {
     "name": "key",
     "type": "const char *"
    },
    {
     "name": "out",
     "type": "sona_import_info *"
    }
   ],
   "comment": "",
   "doc": "The imported clip with this key; `SONA_E_NOT_FOUND` when there is none.",
   "page": "Imported clips",
   "anchor": "https://360sona.com/devs/docs/reference/c/imported-clips.html#sona_clip_imported_find"
  },
  {
   "name": "sona_clip_imported_remove",
   "header": "sona.h",
   "section": "3.24 imported clips (1.2)",
   "signature": "sona_result sona_clip_imported_remove(sona_ctx *ctx, const char *key);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "key",
     "type": "const char *"
    }
   ],
   "comment": "SONA_E_NOT_FOUND",
   "doc": "Avatars playing it finish with their own reference; new plays of the key fail with `SONA_E_ARGUMENT`.",
   "page": "Imported clips",
   "anchor": "https://360sona.com/devs/docs/reference/c/imported-clips.html#sona_clip_imported_remove"
  },
  {
   "name": "sona_players_defaults",
   "header": "sona.h",
   "section": "3.24 imported clips (1.2)",
   "signature": "void sona_players_defaults(sona_players_config *c);",
   "returns": "void",
   "params": [
    {
     "name": "c",
     "type": "sona_players_config *"
    }
   ],
   "comment": "",
   "doc": "Zeroes the config and sets `size`; zero fields take the defaults (2048 looks, an interval of 600 s, 60 an hour, 4 at once, a timeout of 15 s). NULL does nothing.",
   "page": "Other players' avatars by id",
   "anchor": "https://360sona.com/devs/docs/reference/c/other-players-avatars-by-id.html#sona_players_defaults"
  },
  {
   "name": "sona_players_open",
   "header": "sona.h",
   "section": "3.24 imported clips (1.2)",
   "signature": "sona_result sona_players_open(const sona_players_config *c, sona_players **out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "c",
     "type": "const sona_players_config *"
    },
    {
     "name": "out",
     "type": "sona_players **"
    }
   ],
   "comment": "SONA_E_ARGUMENT for a bad config or a placeholder that is not a manifest; SONA_E_IO when cache_dir cannot be made. A cache file that does not decode is ignored (and replaced at the next write).",
   "doc": "Reads the cache file when `cache_dir` is set (a file that does not decode is ignored). `SONA_E_ARGUMENT` for a config with a small `size`, a host that is not `http(s)://` (release builds: `https://` or loopback `http://`), `in_flight` over 16, or a placeholder that is not a manifest; `SONA_E_IO` when `cache_dir` cannot be made; `SONA_E_UNSUPPORTED` with no HTTP layer.",
   "page": "Other players' avatars by id",
   "anchor": "https://360sona.com/devs/docs/reference/c/other-players-avatars-by-id.html#sona_players_open"
  },
  {
   "name": "sona_players_close",
   "header": "sona.h",
   "section": "3.24 imported clips (1.2)",
   "signature": "void sona_players_close(sona_players *p);",
   "returns": "void",
   "params": [
    {
     "name": "p",
     "type": "sona_players *"
    }
   ],
   "comment": "Writes the cache file; requests in flight are dropped.",
   "doc": "Writes the cache file when it changed; answers still in flight are dropped. NULL does nothing.",
   "page": "Other players' avatars by id",
   "anchor": "https://360sona.com/devs/docs/reference/c/other-players-avatars-by-id.html#sona_players_close"
  },
  {
   "name": "sona_players_watch",
   "header": "sona.h",
   "section": "3.24 imported clips (1.2)",
   "signature": "sona_result sona_players_watch(sona_players *p, const char *const *ids, uint32_t count, int32_t priority);",
   "returns": "sona_result",
   "params": [
    {
     "name": "p",
     "type": "sona_players *"
    },
    {
     "name": "ids",
     "type": "const char *const *"
    },
    {
     "name": "count",
     "type": "uint32_t"
    },
    {
     "name": "priority",
     "type": "int32_t"
    }
   ],
   "comment": "Watches ids (a lobby, a friends list, a leaderboard page) and returns at once: looks already known are there now, the rest are asked for by priority (higher first), then in the order watched, one request per distinct id. An id that is not an id becomes SONA_PLAYER_NONE without a request and the call returns SONA_E_ARGUMENT, the others watched all the same. SONA_E_LIMIT when the watched ids would pass max_players.",
   "doc": "Watches ids and returns at once; known looks are there now, the rest are asked by priority (higher first), then in the order first watched, one request per distinct id. `SONA_E_ARGUMENT` when an id is not an id (it becomes `SONA_PLAYER_NONE`; the others are watched), `SONA_E_LIMIT` past `max_players`.",
   "page": "Other players' avatars by id",
   "anchor": "https://360sona.com/devs/docs/reference/c/other-players-avatars-by-id.html#sona_players_watch"
  },
  {
   "name": "sona_players_unwatch",
   "header": "sona.h",
   "section": "3.24 imported clips (1.2)",
   "signature": "void sona_players_unwatch(sona_players *p, const char *const *ids, uint32_t count);",
   "returns": "void",
   "params": [
    {
     "name": "p",
     "type": "sona_players *"
    },
    {
     "name": "ids",
     "type": "const char *const *"
    },
    {
     "name": "count",
     "type": "uint32_t"
    }
   ],
   "comment": "Stops asking about ids; their looks stay cached. ids NULL: every id.",
   "doc": "Stops asking; looks stay cached. `ids` NULL: every id.",
   "page": "Other players' avatars by id",
   "anchor": "https://360sona.com/devs/docs/reference/c/other-players-avatars-by-id.html#sona_players_unwatch"
  },
  {
   "name": "sona_players_refresh",
   "header": "sona.h",
   "section": "3.24 imported clips (1.2)",
   "signature": "sona_result sona_players_refresh(sona_players *p, const char *const *ids, uint32_t count);",
   "returns": "sona_result",
   "params": [
    {
     "name": "p",
     "type": "sona_players *"
    },
    {
     "name": "ids",
     "type": "const char *const *"
    },
    {
     "name": "count",
     "type": "uint32_t"
    }
   ],
   "comment": "Asks again now (within per_hour and in_flight), however fresh. ids NULL: every watched id.",
   "doc": "Asks again now, inside the limits. `ids` NULL: every watched id. `SONA_E_NOT_FOUND` for an id not watched.",
   "page": "Other players' avatars by id",
   "anchor": "https://360sona.com/devs/docs/reference/c/other-players-avatars-by-id.html#sona_players_refresh"
  },
  {
   "name": "sona_players_update",
   "header": "sona.h",
   "section": "3.24 imported clips (1.2)",
   "signature": "uint32_t sona_players_update(sona_players *p);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "p",
     "type": "sona_players *"
    }
   ],
   "comment": "Each frame: takes answers, sends due requests, writes the cache file (at most every 2 s). Returns events queued.",
   "doc": "Each frame: takes answers, sends due requests, writes the cache file (at most every 2 s). Returns the events queued.",
   "page": "Other players' avatars by id",
   "anchor": "https://360sona.com/devs/docs/reference/c/other-players-avatars-by-id.html#sona_players_update"
  },
  {
   "name": "sona_players_poll",
   "header": "sona.h",
   "section": "3.24 imported clips (1.2)",
   "signature": "int sona_players_poll(sona_players *p, sona_player_event *out);",
   "returns": "int",
   "params": [
    {
     "name": "p",
     "type": "sona_players *"
    },
    {
     "name": "out",
     "type": "sona_player_event *"
    }
   ],
   "comment": "1 when an event was written to *out, 0 when there are none.",
   "doc": "1 when an event was written, 0 when there are none. `LOOK` when a look arrives or changes, `GONE` when it turns private or goes, `FAILED` once when checks start failing (`code`: `SONA_E_IO`, `SONA_E_LIMIT`, `SONA_E_GATE`, `SONA_E_CORRUPT`, `SONA_E_APP`).",
   "page": "Other players' avatars by id",
   "anchor": "https://360sona.com/devs/docs/reference/c/other-players-avatars-by-id.html#sona_players_poll"
  },
  {
   "name": "sona_players_look",
   "header": "sona.h",
   "section": "3.24 imported clips (1.2)",
   "signature": "sona_result sona_players_look(sona_players *p, const char *id, sona_player_look *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "p",
     "type": "sona_players *"
    },
    {
     "name": "id",
     "type": "const char *"
    },
    {
     "name": "out",
     "type": "sona_player_look *"
    }
   ],
   "comment": "The look to draw for an id, always filled (the placeholder when nothing is known). SONA_E_NOT_FOUND for an id never watched nor cached, SONA_E_ARGUMENT for one that is not an id.",
   "doc": "Always fills `out` with a look to draw (the placeholder when nothing is known). `SONA_E_NOT_FOUND` for an id never watched nor cached, `SONA_E_ARGUMENT` for one that is not an id.",
   "page": "Other players' avatars by id",
   "anchor": "https://360sona.com/devs/docs/reference/c/other-players-avatars-by-id.html#sona_players_look"
  },
  {
   "name": "sona_players_forget",
   "header": "sona.h",
   "section": "3.24 imported clips (1.2)",
   "signature": "sona_result sona_players_forget(sona_players *p, const char *id);",
   "returns": "sona_result",
   "params": [
    {
     "name": "p",
     "type": "sona_players *"
    },
    {
     "name": "id",
     "type": "const char *"
    }
   ],
   "comment": "Drops an id's look from memory and disk and stops watching it. SONA_E_NOT_FOUND when there was none.",
   "doc": "Drops the id's look from memory and, at the next write, from the cache file, and stops watching it. `SONA_E_NOT_FOUND` when there was none.",
   "page": "Other players' avatars by id",
   "anchor": "https://360sona.com/devs/docs/reference/c/other-players-avatars-by-id.html#sona_players_forget"
  },
  {
   "name": "sona_players_stats_get",
   "header": "sona.h",
   "section": "3.24 imported clips (1.2)",
   "signature": "sona_result sona_players_stats_get(const sona_players *p, sona_players_stats *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "p",
     "type": "const sona_players *"
    },
    {
     "name": "out",
     "type": "sona_players_stats *"
    }
   ],
   "comment": "",
   "doc": "Looks kept, ids watched, requests in flight and due, and counts since open: requests, changed, the same, 304s, gone, failed, read from disk, disk writes, waits for `per_hour`; `paused_until`.",
   "page": "Other players' avatars by id",
   "anchor": "https://360sona.com/devs/docs/reference/c/other-players-avatars-by-id.html#sona_players_stats_get"
  },
  {
   "name": "sona_players_placeholder",
   "header": "sona.h",
   "section": "3.24 imported clips (1.2)",
   "signature": "void sona_players_placeholder(uint8_t out[SONA_MANIFEST_BYTES]);",
   "returns": "void",
   "params": [
    {
     "name": "out",
     "type": "uint8_t [SONA_MANIFEST_BYTES]"
    }
   ],
   "comment": "The built-in placeholder: a faceless grey figure with nothing worn, the site's own mannequin.",
   "doc": "The built-in placeholder: the site's faceless grey mannequin, nothing worn.",
   "page": "Other players' avatars by id",
   "anchor": "https://360sona.com/devs/docs/reference/c/other-players-avatars-by-id.html#sona_players_placeholder"
  },
  {
   "name": "sona_maker_create",
   "header": "sona.h",
   "section": "3.26 making avatars in code: seeded random avatars, dress like, outfit rules (1.2)",
   "signature": "sona_result sona_maker_create(sona_ctx *ctx, const sona_catalogue *cat, sona_maker **out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "cat",
     "type": "const sona_catalogue *"
    },
    {
     "name": "out",
     "type": "sona_maker **"
    }
   ],
   "comment": "",
   "doc": "Indexes a catalogue's outfit rules once: candidate items per body and section, gender variants and matched sets ([sdk-native/makers.md](sdk-native/makers.md)). The maker never changes after this, so every call on it is safe from any number of threads at once. It reads the catalogue: free it before the catalogue. `ctx` may be NULL (malloc, codes only).",
   "page": "Making avatars in code",
   "anchor": "https://360sona.com/devs/docs/reference/c/making-avatars-in-code.html#sona_maker_create"
  },
  {
   "name": "sona_maker_free",
   "header": "sona.h",
   "section": "3.26 making avatars in code: seeded random avatars, dress like, outfit rules (1.2)",
   "signature": "void sona_maker_free(sona_maker *mk);",
   "returns": "void",
   "params": [
    {
     "name": "mk",
     "type": "sona_maker *"
    }
   ],
   "comment": "",
   "doc": "Frees the maker.",
   "page": "Making avatars in code",
   "anchor": "https://360sona.com/devs/docs/reference/c/making-avatars-in-code.html#sona_maker_free"
  },
  {
   "name": "sona_random_defaults",
   "header": "sona.h",
   "section": "3.26 making avatars in code: seeded random avatars, dress like, outfit rules (1.2)",
   "signature": "void sona_random_defaults(sona_random_options *o);",
   "returns": "void",
   "params": [
    {
     "name": "o",
     "type": "sona_random_options *"
    }
   ],
   "comment": "",
   "doc": "`size` set and everything else zero: the seed picks the body, any game, a new avatar, the palette's colours and every item available.",
   "page": "Making avatars in code",
   "anchor": "https://360sona.com/devs/docs/reference/c/making-avatars-in-code.html#sona_random_defaults"
  },
  {
   "name": "sona_make_random",
   "header": "sona.h",
   "section": "3.26 making avatars in code: seeded random avatars, dress like, outfit rules (1.2)",
   "signature": "sona_result sona_make_random(const sona_maker *mk, uint32_t seed, const sona_random_options *o, uint8_t out[SONA_MANIFEST_BYTES], sona_random_report *report);",
   "returns": "sona_result",
   "params": [
    {
     "name": "mk",
     "type": "const sona_maker *"
    },
    {
     "name": "seed",
     "type": "uint32_t"
    },
    {
     "name": "o",
     "type": "const sona_random_options *"
    },
    {
     "name": "out",
     "type": "uint8_t [SONA_MANIFEST_BYTES]"
    },
    {
     "name": "report",
     "type": "sona_random_report *"
    }
   ],
   "comment": "A new avatar from a seed: body, shape, colours, face, hair and an outfit with no clashes. The same seed, options and library give the same bytes. Picks are rendezvous hashes of (seed, section, item id): a newer catalogue moves a pick only where that item is gone or a new item outscores it, so most avatars survive a catalogue update. o may be NULL; report may be NULL. SONA_E_ARGUMENT: a body over 2, a style or palette out of range, or a base that does not parse or has no body while body is 0.",
   "doc": "A new avatar from a seed: body, shape, colours, face, hair and an outfit with no clashes. The same seed, options and library give the same bytes. Picks are rendezvous hashes of (seed, section, item id): a newer catalogue moves a pick only where that item is gone or a new item outscores it, so most avatars survive a catalogue update. o may be NULL; report may be NULL. `SONA_E_ARGUMENT`: a body over 2, a style or palette out of range, or a base that does not parse or has no body while body is 0.",
   "page": "Making avatars in code",
   "anchor": "https://360sona.com/devs/docs/reference/c/making-avatars-in-code.html#sona_make_random"
  },
  {
   "name": "sona_like_defaults",
   "header": "sona.h",
   "section": "3.26 making avatars in code: seeded random avatars, dress like, outfit rules (1.2)",
   "signature": "void sona_like_defaults(sona_like_options *o);",
   "returns": "void",
   "params": [
    {
     "name": "o",
     "type": "sona_like_options *"
    }
   ],
   "comment": "",
   "doc": "`size` set; `parts` clothes and props, `match` SIMILAR.",
   "page": "Making avatars in code",
   "anchor": "https://360sona.com/devs/docs/reference/c/making-avatars-in-code.html#sona_like_defaults"
  },
  {
   "name": "sona_make_dress_like",
   "header": "sona.h",
   "section": "3.26 making avatars in code: seeded random avatars, dress like, outfit rules (1.2)",
   "signature": "sona_result sona_make_dress_like(const sona_maker *mk, const uint8_t body[SONA_MANIFEST_BYTES], const uint8_t like[SONA_MANIFEST_BYTES], const sona_like_options *o, uint8_t out[SONA_MANIFEST_BYTES], sona_like_report *report);",
   "returns": "sona_result",
   "params": [
    {
     "name": "mk",
     "type": "const sona_maker *"
    },
    {
     "name": "body",
     "type": "const uint8_t [SONA_MANIFEST_BYTES]"
    },
    {
     "name": "like",
     "type": "const uint8_t [SONA_MANIFEST_BYTES]"
    },
    {
     "name": "o",
     "type": "const sona_like_options *"
    },
    {
     "name": "out",
     "type": "uint8_t [SONA_MANIFEST_BYTES]"
    },
    {
     "name": "report",
     "type": "sona_like_report *"
    }
   ],
   "comment": "out = body wearing like's parts, each item resolved for body's gender (sona_make_variant). out may be body. mk may be NULL: then only items both bodies wear, and custom items' pairs, come across. SONA_E_ARGUMENT when body has no known body; SONA_E_MANIFEST when either does not parse.",
   "doc": "`out` = body wearing like's parts, each item resolved for body's gender (`sona_make_variant`). out may be body. mk may be NULL: then only items both bodies wear, and custom items' pairs, come across. `SONA_E_ARGUMENT` when body has no known body; `SONA_E_MANIFEST` when either does not parse.",
   "page": "Making avatars in code",
   "anchor": "https://360sona.com/devs/docs/reference/c/making-avatars-in-code.html#sona_make_dress_like"
  },
  {
   "name": "sona_make_variant",
   "header": "sona.h",
   "section": "3.26 making avatars in code: seeded random avatars, dress like, outfit rules (1.2)",
   "signature": "uint32_t sona_make_variant(const sona_maker *mk, const sona_guid *item, uint32_t body, uint32_t match, sona_guid *out);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "mk",
     "type": "const sona_maker *"
    },
    {
     "name": "item",
     "type": "const sona_guid *"
    },
    {
     "name": "body",
     "type": "uint32_t"
    },
    {
     "name": "match",
     "type": "uint32_t"
    },
    {
     "name": "out",
     "type": "sona_guid *"
    }
   ],
   "comment": "The item body (1 or 2) wears for item: itself when it fits (KEPT), else its variant within match. Returns SONA_RESOLVED_*; DROPPED (out zeroed) when nothing fits.",
   "doc": "The item body (1 or 2) wears for item: itself when it fits (KEPT), else its variant within match. Returns `SONA_RESOLVED_`*; DROPPED (out zeroed) when nothing fits.",
   "page": "Making avatars in code",
   "anchor": "https://360sona.com/devs/docs/reference/c/making-avatars-in-code.html#sona_make_variant"
  },
  {
   "name": "sona_outfit_clash",
   "header": "sona.h",
   "section": "3.26 making avatars in code: seeded random avatars, dress like, outfit rules (1.2)",
   "signature": "uint32_t sona_outfit_clash(const sona_maker *mk, const sona_guid *a, const sona_guid *b, uint32_t *slots);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "mk",
     "type": "const sona_maker *"
    },
    {
     "name": "a",
     "type": "const sona_guid *"
    },
    {
     "name": "b",
     "type": "const sona_guid *"
    },
    {
     "name": "slots",
     "type": "uint32_t *"
    }
   ],
   "comment": "SONA_CLASH_* bits (0: they go together); slots (may be NULL) gets the slots they share. mk may be NULL (ids only). Two props share the prop slot: they stack only with SONA_EDIT_STACK_PROPS, up to four.",
   "doc": "`SONA_CLASH_`* bits (0: they go together); slots (may be NULL) gets the slots they share. mk may be NULL (ids only). Two props share the prop slot: they stack only with `SONA_EDIT_STACK_PROPS`, up to four.",
   "page": "Making avatars in code",
   "anchor": "https://360sona.com/devs/docs/reference/c/making-avatars-in-code.html#sona_outfit_clash"
  },
  {
   "name": "sona_outfit_conflicts",
   "header": "sona.h",
   "section": "3.26 making avatars in code: seeded random avatars, dress like, outfit rules (1.2)",
   "signature": "uint32_t sona_outfit_conflicts(const sona_maker *mk, const uint8_t manifest[SONA_MANIFEST_BYTES], const sona_guid *item, sona_guid *out, uint32_t cap);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "mk",
     "type": "const sona_maker *"
    },
    {
     "name": "manifest",
     "type": "const uint8_t [SONA_MANIFEST_BYTES]"
    },
    {
     "name": "item",
     "type": "const sona_guid *"
    },
    {
     "name": "out",
     "type": "sona_guid *"
    },
    {
     "name": "cap",
     "type": "uint32_t"
    }
   ],
   "comment": "What wearing item would take off manifest: up to cap ids into out; returns how many.",
   "doc": "What wearing item would take off manifest: up to cap ids into out; returns how many.",
   "page": "Making avatars in code",
   "anchor": "https://360sona.com/devs/docs/reference/c/making-avatars-in-code.html#sona_outfit_conflicts"
  },
  {
   "name": "sona_outfit_set_count",
   "header": "sona.h",
   "section": "3.26 making avatars in code: seeded random avatars, dress like, outfit rules (1.2)",
   "signature": "uint32_t sona_outfit_set_count(const sona_maker *mk);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "mk",
     "type": "const sona_maker *"
    }
   ],
   "comment": "",
   "doc": "How many matched sets (outfits sold as one) the maker knows.",
   "page": "Making avatars in code",
   "anchor": "https://360sona.com/devs/docs/reference/c/making-avatars-in-code.html#sona_outfit_set_count"
  },
  {
   "name": "sona_outfit_set_get",
   "header": "sona.h",
   "section": "3.26 making avatars in code: seeded random avatars, dress like, outfit rules (1.2)",
   "signature": "sona_result sona_outfit_set_get(const sona_maker *mk, uint32_t set, sona_outfit_set *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "mk",
     "type": "const sona_maker *"
    },
    {
     "name": "set",
     "type": "uint32_t"
    },
    {
     "name": "out",
     "type": "sona_outfit_set *"
    }
   ],
   "comment": "",
   "doc": "Set `set`: its item count, which bodies wear it, the sections it has items in and the slots it covers.",
   "page": "Making avatars in code",
   "anchor": "https://360sona.com/devs/docs/reference/c/making-avatars-in-code.html#sona_outfit_set_get"
  },
  {
   "name": "sona_outfit_set_of",
   "header": "sona.h",
   "section": "3.26 making avatars in code: seeded random avatars, dress like, outfit rules (1.2)",
   "signature": "int32_t sona_outfit_set_of(const sona_maker *mk, const sona_guid *item);",
   "returns": "int32_t",
   "params": [
    {
     "name": "mk",
     "type": "const sona_maker *"
    },
    {
     "name": "item",
     "type": "const sona_guid *"
    }
   ],
   "comment": "-1: in no set",
   "doc": "The matched set an item belongs to, or -1 when it is in none.",
   "page": "Making avatars in code",
   "anchor": "https://360sona.com/devs/docs/reference/c/making-avatars-in-code.html#sona_outfit_set_of"
  },
  {
   "name": "sona_outfit_set_items",
   "header": "sona.h",
   "section": "3.26 making avatars in code: seeded random avatars, dress like, outfit rules (1.2)",
   "signature": "uint32_t sona_outfit_set_items(const sona_maker *mk, uint32_t set, uint32_t body, uint32_t *indexes, uint32_t cap);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "mk",
     "type": "const sona_maker *"
    },
    {
     "name": "set",
     "type": "uint32_t"
    },
    {
     "name": "body",
     "type": "uint32_t"
    },
    {
     "name": "indexes",
     "type": "uint32_t *"
    },
    {
     "name": "cap",
     "type": "uint32_t"
    }
   ],
   "comment": "The set's items a body wears (0: every item), catalogue indexes in id order: up to cap; returns how many.",
   "doc": "The set's items a body wears (0: every item), catalogue indexes in id order: up to cap; returns how many.",
   "page": "Making avatars in code",
   "anchor": "https://360sona.com/devs/docs/reference/c/making-avatars-in-code.html#sona_outfit_set_items"
  },
  {
   "name": "sona_outfit_check",
   "header": "sona.h",
   "section": "3.26 making avatars in code: seeded random avatars, dress like, outfit rules (1.2)",
   "signature": "sona_result sona_outfit_check(const sona_maker *mk, const uint8_t manifest[SONA_MANIFEST_BYTES], sona_outfit_report *report, sona_outfit_issue *issues, uint32_t cap);",
   "returns": "sona_result",
   "params": [
    {
     "name": "mk",
     "type": "const sona_maker *"
    },
    {
     "name": "manifest",
     "type": "const uint8_t [SONA_MANIFEST_BYTES]"
    },
    {
     "name": "report",
     "type": "sona_outfit_report *"
    },
    {
     "name": "issues",
     "type": "sona_outfit_issue *"
    },
    {
     "name": "cap",
     "type": "uint32_t"
    }
   ],
   "comment": "Every issue of a manifest, up to cap into issues (may be NULL with cap 0), errors first. mk may be NULL: the catalogue's checks (UNKNOWN, NOT_OFFERED, bodies by the catalogue) are left out. SONA_E_MANIFEST: it does not parse.",
   "doc": "Every issue of a manifest, up to cap into issues (may be NULL with cap 0), errors first. mk may be NULL: the catalogue's checks (UNKNOWN, NOT_OFFERED, bodies by the catalogue) are left out. `SONA_E_MANIFEST`: it does not parse.",
   "page": "Making avatars in code",
   "anchor": "https://360sona.com/devs/docs/reference/c/making-avatars-in-code.html#sona_outfit_check"
  },
  {
   "name": "sona_outfit_fix",
   "header": "sona.h",
   "section": "3.26 making avatars in code: seeded random avatars, dress like, outfit rules (1.2)",
   "signature": "sona_result sona_outfit_fix(const sona_maker *mk, uint8_t manifest[SONA_MANIFEST_BYTES], sona_outfit_report *after);",
   "returns": "sona_result",
   "params": [
    {
     "name": "mk",
     "type": "const sona_maker *"
    },
    {
     "name": "manifest",
     "type": "uint8_t [SONA_MANIFEST_BYTES]"
    },
    {
     "name": "after",
     "type": "sona_outfit_report *"
    }
   ],
   "comment": "Fixes every error but NO_BODY in place: clashes go to the item worn last (as the editor), other-body items to their variants, duplicates and misplaced items out (a misplaced item that routes is worn where it belongs), missing slots to the body's defaults, a stale cache to the body's own; after (may be NULL) is the check after. SONA_E_ARGUMENT when the body is not known.",
   "doc": "Fixes every error but NO_BODY in place: clashes go to the item worn last (as the editor), other-body items to their variants, duplicates and misplaced items out (a misplaced item that routes is worn where it belongs), missing slots to the body's defaults, a stale cache to the body's own; after (may be NULL) is the check after. `SONA_E_ARGUMENT` when the body is not known.",
   "page": "Making avatars in code",
   "anchor": "https://360sona.com/devs/docs/reference/c/making-avatars-in-code.html#sona_outfit_fix"
  },
  {
   "name": "sona_outfit_issue_name",
   "header": "sona.h",
   "section": "3.26 making avatars in code: seeded random avatars, dress like, outfit rules (1.2)",
   "signature": "const char * sona_outfit_issue_name(uint32_t kind);",
   "returns": "const char *",
   "params": [
    {
     "name": "kind",
     "type": "uint32_t"
    }
   ],
   "comment": "\"clash\", ...; NULL past the last",
   "doc": "The name of a `SONA_OUTFIT_*` issue kind (\"clash\", ...); NULL past the last.",
   "page": "Making avatars in code",
   "anchor": "https://360sona.com/devs/docs/reference/c/making-avatars-in-code.html#sona_outfit_issue_name"
  },
  {
   "name": "sona_filter_create",
   "header": "sona.h",
   "section": "3.27 content filters (1.2)",
   "signature": "sona_result sona_filter_create(sona_ctx *ctx, const sona_catalogue *cat, sona_filter **out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "cat",
     "type": "const sona_catalogue *"
    },
    {
     "name": "out",
     "type": "sona_filter **"
    }
   ],
   "comment": "ctx may be NULL (malloc; errors only as codes); with one, its allocator and sona_last_error. cat may be NULL: then only id, slot, section (from the id) and source rules can match. The filter may outlive both.",
   "doc": "`ctx` may be NULL (malloc; errors only as codes); with one, its allocator and `sona_last_error`. cat may be NULL: then only id, slot, section (from the id) and source rules can match. The filter may outlive both.",
   "page": "Content filters",
   "anchor": "https://360sona.com/devs/docs/reference/c/content-filters.html#sona_filter_create"
  },
  {
   "name": "sona_filter_free",
   "header": "sona.h",
   "section": "3.27 content filters (1.2)",
   "signature": "void sona_filter_free(sona_filter *f);",
   "returns": "void",
   "params": [
    {
     "name": "f",
     "type": "sona_filter *"
    }
   ],
   "comment": "",
   "doc": "Frees the filter.",
   "page": "Content filters",
   "anchor": "https://360sona.com/devs/docs/reference/c/content-filters.html#sona_filter_free"
  },
  {
   "name": "sona_filter_reset",
   "header": "sona.h",
   "section": "3.27 content filters (1.2)",
   "signature": "sona_result sona_filter_reset(sona_filter *f);",
   "returns": "sona_result",
   "params": [
    {
     "name": "f",
     "type": "sona_filter *"
    }
   ],
   "comment": "every rule goes; tags stay",
   "doc": "Every rule goes; tags stay.",
   "page": "Content filters",
   "anchor": "https://360sona.com/devs/docs/reference/c/content-filters.html#sona_filter_reset"
  },
  {
   "name": "sona_filter_sections",
   "header": "sona.h",
   "section": "3.27 content filters (1.2)",
   "signature": "sona_result sona_filter_sections(sona_filter *f, uint32_t mode, uint32_t sections);",
   "returns": "sona_result",
   "params": [
    {
     "name": "f",
     "type": "sona_filter *"
    },
    {
     "name": "mode",
     "type": "uint32_t"
    },
    {
     "name": "sections",
     "type": "uint32_t"
    }
   ],
   "comment": "mode: SONA_CONTENT_ALLOW or _DENY. Each call adds to the rules. sections: bits (1u << sona_section). slots: AssetMask bits, an item matching when it covers any of them. sources: SONA_CONTENT_STOCK...",
   "doc": "Adds a rule on sections: bits (1u << `sona_section`). `mode` is `SONA_CONTENT_ALLOW` or `_DENY`; each call adds to the rules.",
   "page": "Content filters",
   "anchor": "https://360sona.com/devs/docs/reference/c/content-filters.html#sona_filter_sections"
  },
  {
   "name": "sona_filter_slots",
   "header": "sona.h",
   "section": "3.27 content filters (1.2)",
   "signature": "sona_result sona_filter_slots(sona_filter *f, uint32_t mode, uint32_t slots);",
   "returns": "sona_result",
   "params": [
    {
     "name": "f",
     "type": "sona_filter *"
    },
    {
     "name": "mode",
     "type": "uint32_t"
    },
    {
     "name": "slots",
     "type": "uint32_t"
    }
   ],
   "comment": "",
   "doc": "Adds a rule on slots (AssetMask bits): an item matches when it covers any of them. `mode` is `SONA_CONTENT_ALLOW` or `_DENY`.",
   "page": "Content filters",
   "anchor": "https://360sona.com/devs/docs/reference/c/content-filters.html#sona_filter_slots"
  },
  {
   "name": "sona_filter_sources",
   "header": "sona.h",
   "section": "3.27 content filters (1.2)",
   "signature": "sona_result sona_filter_sources(sona_filter *f, uint32_t mode, uint32_t sources);",
   "returns": "sona_result",
   "params": [
    {
     "name": "f",
     "type": "sona_filter *"
    },
    {
     "name": "mode",
     "type": "uint32_t"
    },
    {
     "name": "sources",
     "type": "uint32_t"
    }
   ],
   "comment": "",
   "doc": "Adds a rule on where items come from (`SONA_CONTENT_STOCK` and the other source bits). `mode` is `SONA_CONTENT_ALLOW` or `_DENY`.",
   "page": "Content filters",
   "anchor": "https://360sona.com/devs/docs/reference/c/content-filters.html#sona_filter_sources"
  },
  {
   "name": "sona_filter_game",
   "header": "sona.h",
   "section": "3.27 content filters (1.2)",
   "signature": "sona_result sona_filter_game(sona_filter *f, uint32_t mode, const char *game);",
   "returns": "sona_result",
   "params": [
    {
     "name": "f",
     "type": "sona_filter *"
    },
    {
     "name": "mode",
     "type": "uint32_t"
    },
    {
     "name": "game",
     "type": "const char *"
    }
   ],
   "comment": "A game as sona_catalogue_game names it (ASCII case folded). SONA_E_NOT_FOUND when no item has that game.",
   "doc": "A game as `sona_catalogue_game` names it (ASCII case folded). `SONA_E_NOT_FOUND` when no item has that game.",
   "page": "Content filters",
   "anchor": "https://360sona.com/devs/docs/reference/c/content-filters.html#sona_filter_game"
  },
  {
   "name": "sona_filter_tag",
   "header": "sona.h",
   "section": "3.27 content filters (1.2)",
   "signature": "sona_result sona_filter_tag(sona_filter *f, uint32_t mode, const char *tag);",
   "returns": "sona_result",
   "params": [
    {
     "name": "f",
     "type": "sona_filter *"
    },
    {
     "name": "mode",
     "type": "uint32_t"
    },
    {
     "name": "tag",
     "type": "const char *"
    }
   ],
   "comment": "A tag by name (\"weapon\", \"logo\", or one the host defined). SONA_E_NOT_FOUND for an unknown name.",
   "doc": "A tag by name (\"weapon\", \"logo\", or one the host defined). `SONA_E_NOT_FOUND` for an unknown name.",
   "page": "Content filters",
   "anchor": "https://360sona.com/devs/docs/reference/c/content-filters.html#sona_filter_tag"
  },
  {
   "name": "sona_filter_item",
   "header": "sona.h",
   "section": "3.27 content filters (1.2)",
   "signature": "sona_result sona_filter_item(sona_filter *f, uint32_t mode, const sona_guid *id);",
   "returns": "sona_result",
   "params": [
    {
     "name": "f",
     "type": "sona_filter *"
    },
    {
     "name": "mode",
     "type": "uint32_t"
    },
    {
     "name": "id",
     "type": "const sona_guid *"
    }
   ],
   "comment": "",
   "doc": "Adds a rule on one item by id. `mode` is `SONA_CONTENT_ALLOW` or `_DENY`.",
   "page": "Content filters",
   "anchor": "https://360sona.com/devs/docs/reference/c/content-filters.html#sona_filter_item"
  },
  {
   "name": "sona_filter_preset",
   "header": "sona.h",
   "section": "3.27 content filters (1.2)",
   "signature": "sona_result sona_filter_preset(sona_filter *f, uint32_t preset);",
   "returns": "sona_result",
   "params": [
    {
     "name": "f",
     "type": "sona_filter *"
    },
    {
     "name": "preset",
     "type": "uint32_t"
    }
   ],
   "comment": "",
   "doc": "Adds a preset's rules (`SONA_FILTER_PRESET_*`, listed in [sdk-native/filters.md](sdk-native/filters.md)).",
   "page": "Content filters",
   "anchor": "https://360sona.com/devs/docs/reference/c/content-filters.html#sona_filter_preset"
  },
  {
   "name": "sona_filter_load",
   "header": "sona.h",
   "section": "3.27 content filters (1.2)",
   "signature": "sona_result sona_filter_load(sona_filter *f, const char *json, size_t len, char *why, size_t why_cap);",
   "returns": "sona_result",
   "params": [
    {
     "name": "f",
     "type": "sona_filter *"
    },
    {
     "name": "json",
     "type": "const char *"
    },
    {
     "name": "len",
     "type": "size_t"
    },
    {
     "name": "why",
     "type": "char *"
    },
    {
     "name": "why_cap",
     "type": "size_t"
    }
   ],
   "comment": "Rules from JSON (filters.md): {\"preset\": [...], \"allow\": {...}, \"deny\": {...}, \"tags\": {...}, \"untag\": {...}}. All or nothing: on an error the filter is unchanged and why (may be NULL) says what was wrong.",
   "doc": "Rules from JSON (filters.md): {\"preset\": [...], \"allow\": {...}, \"deny\": {...}, \"tags\": {...}, \"untag\": {...}}. All or nothing: on an error the filter is unchanged and why (may be NULL) says what was wrong.",
   "page": "Content filters",
   "anchor": "https://360sona.com/devs/docs/reference/c/content-filters.html#sona_filter_load"
  },
  {
   "name": "sona_filter_tag_count",
   "header": "sona.h",
   "section": "3.27 content filters (1.2)",
   "signature": "uint32_t sona_filter_tag_count(const sona_filter *f);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "f",
     "type": "const sona_filter *"
    }
   ],
   "comment": "Tags. define: a new tag (a name of 1 to 31 bytes of a-z, 0-9 and '-'), or the index of the one of that name; SONA_E_LIMIT past 64. tag_set: puts a tag on an item or takes it off, for ids in the catalogue or not (the human tag pass). item_tags: the bits of an item's tags. tag_items: how many catalogue items carry a tag.",
   "doc": "How many tags the filter knows, built-in and host-defined.",
   "page": "Content filters",
   "anchor": "https://360sona.com/devs/docs/reference/c/content-filters.html#sona_filter_tag_count"
  },
  {
   "name": "sona_filter_tag_name",
   "header": "sona.h",
   "section": "3.27 content filters (1.2)",
   "signature": "const char * sona_filter_tag_name(const sona_filter *f, uint32_t tag);",
   "returns": "const char *",
   "params": [
    {
     "name": "f",
     "type": "const sona_filter *"
    },
    {
     "name": "tag",
     "type": "uint32_t"
    }
   ],
   "comment": "NULL past the last",
   "doc": "NULL past the last.",
   "page": "Content filters",
   "anchor": "https://360sona.com/devs/docs/reference/c/content-filters.html#sona_filter_tag_name"
  },
  {
   "name": "sona_filter_tag_find",
   "header": "sona.h",
   "section": "3.27 content filters (1.2)",
   "signature": "int32_t sona_filter_tag_find(const sona_filter *f, const char *name);",
   "returns": "int32_t",
   "params": [
    {
     "name": "f",
     "type": "const sona_filter *"
    },
    {
     "name": "name",
     "type": "const char *"
    }
   ],
   "comment": "-1 when unknown",
   "doc": "-1 when unknown.",
   "page": "Content filters",
   "anchor": "https://360sona.com/devs/docs/reference/c/content-filters.html#sona_filter_tag_find"
  },
  {
   "name": "sona_filter_tag_define",
   "header": "sona.h",
   "section": "3.27 content filters (1.2)",
   "signature": "sona_result sona_filter_tag_define(sona_filter *f, const char *name, uint32_t *out_tag);",
   "returns": "sona_result",
   "params": [
    {
     "name": "f",
     "type": "sona_filter *"
    },
    {
     "name": "name",
     "type": "const char *"
    },
    {
     "name": "out_tag",
     "type": "uint32_t *"
    }
   ],
   "comment": "",
   "doc": "A new tag (a name of 1 to 31 bytes of a-z, 0-9 and '-'), or the index of the one of that name. `SONA_E_LIMIT` past 64 tags.",
   "page": "Content filters",
   "anchor": "https://360sona.com/devs/docs/reference/c/content-filters.html#sona_filter_tag_define"
  },
  {
   "name": "sona_filter_tag_set",
   "header": "sona.h",
   "section": "3.27 content filters (1.2)",
   "signature": "sona_result sona_filter_tag_set(sona_filter *f, const sona_guid *id, uint32_t tag, int on);",
   "returns": "sona_result",
   "params": [
    {
     "name": "f",
     "type": "sona_filter *"
    },
    {
     "name": "id",
     "type": "const sona_guid *"
    },
    {
     "name": "tag",
     "type": "uint32_t"
    },
    {
     "name": "on",
     "type": "int"
    }
   ],
   "comment": "",
   "doc": "Puts a tag on an item (`on` 1) or takes it off (0), for ids in the catalogue or not.",
   "page": "Content filters",
   "anchor": "https://360sona.com/devs/docs/reference/c/content-filters.html#sona_filter_tag_set"
  },
  {
   "name": "sona_filter_item_tags",
   "header": "sona.h",
   "section": "3.27 content filters (1.2)",
   "signature": "uint64_t sona_filter_item_tags(const sona_filter *f, const sona_guid *id);",
   "returns": "uint64_t",
   "params": [
    {
     "name": "f",
     "type": "const sona_filter *"
    },
    {
     "name": "id",
     "type": "const sona_guid *"
    }
   ],
   "comment": "",
   "doc": "The bits of an item's tags (bit n is tag n).",
   "page": "Content filters",
   "anchor": "https://360sona.com/devs/docs/reference/c/content-filters.html#sona_filter_item_tags"
  },
  {
   "name": "sona_filter_tag_items",
   "header": "sona.h",
   "section": "3.27 content filters (1.2)",
   "signature": "uint32_t sona_filter_tag_items(const sona_filter *f, uint32_t tag);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "f",
     "type": "const sona_filter *"
    },
    {
     "name": "tag",
     "type": "uint32_t"
    }
   ],
   "comment": "",
   "doc": "How many catalogue items carry a tag.",
   "page": "Content filters",
   "anchor": "https://360sona.com/devs/docs/reference/c/content-filters.html#sona_filter_tag_items"
  },
  {
   "name": "sona_filter_allows",
   "header": "sona.h",
   "section": "3.27 content filters (1.2)",
   "signature": "int sona_filter_allows(const sona_filter *f, const sona_guid *id);",
   "returns": "int",
   "params": [
    {
     "name": "f",
     "type": "const sona_filter *"
    },
    {
     "name": "id",
     "type": "const sona_guid *"
    }
   ],
   "comment": "1 when the item is allowed; a NULL filter allows everything.",
   "doc": "1 when the item is allowed; a NULL filter allows everything.",
   "page": "Content filters",
   "anchor": "https://360sona.com/devs/docs/reference/c/content-filters.html#sona_filter_allows"
  },
  {
   "name": "sona_filter_check",
   "header": "sona.h",
   "section": "3.27 content filters (1.2)",
   "signature": "sona_result sona_filter_check(const sona_filter *f, const sona_guid *id, sona_filter_verdict *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "f",
     "type": "const sona_filter *"
    },
    {
     "name": "id",
     "type": "const sona_guid *"
    },
    {
     "name": "out",
     "type": "sona_filter_verdict *"
    }
   ],
   "comment": "",
   "doc": "Whether the item is allowed, and if not, which rule denied it (`SONA_CONTENT_BY_*`) and the item's tags.",
   "page": "Content filters",
   "anchor": "https://360sona.com/devs/docs/reference/c/content-filters.html#sona_filter_check"
  },
  {
   "name": "sona_filter_search",
   "header": "sona.h",
   "section": "3.27 content filters (1.2)",
   "signature": "sona_result sona_filter_search(const sona_filter *f, const sona_catalogue *cat, const sona_catalogue_query *q, uint32_t *out_indexes, uint32_t max, uint32_t *total);",
   "returns": "sona_result",
   "params": [
    {
     "name": "f",
     "type": "const sona_filter *"
    },
    {
     "name": "cat",
     "type": "const sona_catalogue *"
    },
    {
     "name": "q",
     "type": "const sona_catalogue_query *"
    },
    {
     "name": "out_indexes",
     "type": "uint32_t *"
    },
    {
     "name": "max",
     "type": "uint32_t"
    },
    {
     "name": "total",
     "type": "uint32_t *"
    }
   ],
   "comment": "sona_catalogue_search over cat, allowed items only (offset and total count allowed ones). Any catalogue works; items are matched by id.",
   "doc": "`sona_catalogue_search` over cat, allowed items only (offset and total count allowed ones). Any catalogue works; items are matched by id.",
   "page": "Content filters",
   "anchor": "https://360sona.com/devs/docs/reference/c/content-filters.html#sona_filter_search"
  },
  {
   "name": "sona_filter_allowed_count",
   "header": "sona.h",
   "section": "3.27 content filters (1.2)",
   "signature": "uint32_t sona_filter_allowed_count(const sona_filter *f);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "f",
     "type": "const sona_filter *"
    }
   ],
   "comment": "catalogue items allowed",
   "doc": "Catalogue items allowed.",
   "page": "Content filters",
   "anchor": "https://360sona.com/devs/docs/reference/c/content-filters.html#sona_filter_allowed_count"
  },
  {
   "name": "sona_filter_manifest",
   "header": "sona.h",
   "section": "3.27 content filters (1.2)",
   "signature": "sona_result sona_filter_manifest(const sona_filter *f, sona_manifest *m, sona_filter_report *report);",
   "returns": "sona_result",
   "params": [
    {
     "name": "f",
     "type": "const sona_filter *"
    },
    {
     "name": "m",
     "type": "sona_manifest *"
    },
    {
     "name": "report",
     "type": "sona_filter_report *"
    }
   ],
   "comment": "",
   "doc": "Takes every denied item off a manifest: worn items go back to the body's defaults, props are hidden. `report` (may be NULL) lists what changed.",
   "page": "Content filters",
   "anchor": "https://360sona.com/devs/docs/reference/c/content-filters.html#sona_filter_manifest"
  },
  {
   "name": "sona_filter_manifest_bytes",
   "header": "sona.h",
   "section": "3.27 content filters (1.2)",
   "signature": "sona_result sona_filter_manifest_bytes(const sona_filter *f, uint8_t manifest[SONA_MANIFEST_BYTES], sona_filter_report *report);",
   "returns": "sona_result",
   "params": [
    {
     "name": "f",
     "type": "const sona_filter *"
    },
    {
     "name": "manifest",
     "type": "uint8_t [SONA_MANIFEST_BYTES]"
    },
    {
     "name": "report",
     "type": "sona_filter_report *"
    }
   ],
   "comment": "The same on the 1000 bytes, in place; unchanged bytes when nothing is denied. SONA_E_MANIFEST for bad bytes.",
   "doc": "The same on the 1000 bytes, in place; unchanged bytes when nothing is denied. `SONA_E_MANIFEST` for bad bytes.",
   "page": "Content filters",
   "anchor": "https://360sona.com/devs/docs/reference/c/content-filters.html#sona_filter_manifest_bytes"
  },
  {
   "name": "sona_ctx_set_filter",
   "header": "sona.h",
   "section": "3.27 content filters (1.2)",
   "signature": "sona_result sona_ctx_set_filter(sona_ctx *ctx, const sona_filter *f);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "f",
     "type": "const sona_filter *"
    }
   ],
   "comment": "The ctx's filter: a copy of f (NULL takes it away), applied to an avatar when its manifest is read, whoever's it is (sona_avatar_add, headless renders); an avatar read before the change keeps what it wore until it is removed and added again. A preview of a denied item fails with SONA_E_NOT_FOUND. Pickers read it back with sona_ctx_filter: NULL when none; owned by the ctx and gone at the next sona_ctx_set_filter or sona_close.",
   "doc": "The ctx's filter: a copy of f (NULL takes it away), applied to an avatar when its manifest is read, whoever's it is (`sona_avatar_add`, headless renders); an avatar read before the change keeps what it wore until it is removed and added again. A preview of a denied item fails with `SONA_E_NOT_FOUND`. Pickers read it back with `sona_ctx_filter`: NULL when none; owned by the ctx and gone at the next `sona_ctx_set_filter` or `sona_close`.",
   "page": "Content filters",
   "anchor": "https://360sona.com/devs/docs/reference/c/content-filters.html#sona_ctx_set_filter"
  },
  {
   "name": "sona_ctx_filter",
   "header": "sona.h",
   "section": "3.27 content filters (1.2)",
   "signature": "const sona_filter * sona_ctx_filter(const sona_ctx *ctx);",
   "returns": "const sona_filter *",
   "params": [
    {
     "name": "ctx",
     "type": "const sona_ctx *"
    }
   ],
   "comment": "",
   "doc": "The ctx's filter as `sona_ctx_set_filter` left it: NULL when none; owned by the ctx and gone at the next `sona_ctx_set_filter` or `sona_close`.",
   "page": "Content filters",
   "anchor": "https://360sona.com/devs/docs/reference/c/content-filters.html#sona_ctx_filter"
  },
  {
   "name": "sona_avatar_filter_report",
   "header": "sona.h",
   "section": "3.27 content filters (1.2)",
   "signature": "sona_result sona_avatar_filter_report(const sona_avatar *a, sona_filter_report *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "const sona_avatar *"
    },
    {
     "name": "out",
     "type": "sona_filter_report *"
    }
   ],
   "comment": "What the ctx's filter changed on this avatar. SONA_E_NOT_READY before its manifest is read, SONA_E_NOT_FOUND when no filter was set then.",
   "doc": "What the ctx's filter changed on this avatar. `SONA_E_NOT_READY` before its manifest is read, `SONA_E_NOT_FOUND` when no filter was set then.",
   "page": "Content filters",
   "anchor": "https://360sona.com/devs/docs/reference/c/content-filters.html#sona_avatar_filter_report"
  },
  {
   "name": "sona_avatar_save_state",
   "header": "sona.h",
   "section": "3.28 avatar state, network sync and replays (1.2)",
   "signature": "sona_result sona_avatar_save_state(sona_avatar *a, uint32_t flags, uint8_t **out, size_t *out_len);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "flags",
     "type": "uint32_t"
    },
    {
     "name": "out",
     "type": "uint8_t **"
    },
    {
     "name": "out_len",
     "type": "size_t *"
    }
   ],
   "comment": "The blob, freed with sona_free. SONA_E_NOT_READY before READY.",
   "doc": "The blob of a READY avatar's state, freed with `sona_free`; `SONA_STATE_NO_LOOK` leaves the manifest out. `SONA_E_NOT_READY` before READY, `SONA_E_ARGUMENT` for an unknown flag.",
   "page": "Avatar state, network sync and replays",
   "anchor": "https://360sona.com/devs/docs/reference/c/state-sync-and-replays.html#sona_avatar_save_state"
  },
  {
   "name": "sona_avatar_load_state",
   "header": "sona.h",
   "section": "3.28 avatar state, network sync and replays (1.2)",
   "signature": "sona_result sona_avatar_load_state(sona_avatar *a, const void *blob, size_t len);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "blob",
     "type": "const void *"
    },
    {
     "name": "len",
     "type": "size_t"
    }
   ],
   "comment": "Puts a saved state on a. Before READY, and while a clip it needs is loading, the avatar holds still and the state goes on as soon as it can (sona_avatar_state_status). SONA_E_CORRUPT for bytes that are not a state, SONA_E_UNSUPPORTED for a newer format.",
   "doc": "Puts a saved state on `a` at the next `sona_update` once it is READY and the clips the state needs are loaded; until then the avatar holds still (`SONA_STATE_WAITING`). Afterwards the same updates give the same pose bits as the saved avatar would have. A look that differs is reported (`SONA_STATE_MISSING_LOOK`), not refused. `SONA_E_CORRUPT`, `SONA_E_UNSUPPORTED` for a newer format. Ends puppet mode.",
   "page": "Avatar state, network sync and replays",
   "anchor": "https://360sona.com/devs/docs/reference/c/state-sync-and-replays.html#sona_avatar_load_state"
  },
  {
   "name": "sona_avatar_add_state",
   "header": "sona.h",
   "section": "3.28 avatar state, network sync and replays (1.2)",
   "signature": "sona_result sona_avatar_add_state(sona_ctx *ctx, const void *blob, size_t len, const sona_add_options *opts, sona_avatar **out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "blob",
     "type": "const void *"
    },
    {
     "name": "len",
     "type": "size_t"
    },
    {
     "name": "opts",
     "type": "const sona_add_options *"
    },
    {
     "name": "out",
     "type": "sona_avatar **"
    }
   ],
   "comment": "A new avatar with the blob's look and state (opts: visibility and priority; NULL: the defaults). SONA_E_ARGUMENT for a blob saved with SONA_STATE_NO_LOOK.",
   "doc": "A new avatar with the blob's look, then `sona_avatar_load_state`. `opts` gives the visibility and priority (its clip is ignored). `SONA_E_ARGUMENT` for a blob without a look.",
   "page": "Avatar state, network sync and replays",
   "anchor": "https://360sona.com/devs/docs/reference/c/state-sync-and-replays.html#sona_avatar_add_state"
  },
  {
   "name": "sona_state_info_get",
   "header": "sona.h",
   "section": "3.28 avatar state, network sync and replays (1.2)",
   "signature": "sona_result sona_state_info_get(const void *blob, size_t len, sona_state_info *out, uint8_t manifest[SONA_MANIFEST_BYTES]);",
   "returns": "sona_result",
   "params": [
    {
     "name": "blob",
     "type": "const void *"
    },
    {
     "name": "len",
     "type": "size_t"
    },
    {
     "name": "out",
     "type": "sona_state_info *"
    },
    {
     "name": "manifest",
     "type": "uint8_t [SONA_MANIFEST_BYTES]"
    }
   ],
   "comment": "What a blob holds, without a ctx. manifest (may be NULL) gets the look when it has one.",
   "doc": "What a blob holds, without a ctx; `manifest` (may be NULL) gets the look when there is one.",
   "page": "Avatar state, network sync and replays",
   "anchor": "https://360sona.com/devs/docs/reference/c/state-sync-and-replays.html#sona_state_info_get"
  },
  {
   "name": "sona_avatar_state_status",
   "header": "sona.h",
   "section": "3.28 avatar state, network sync and replays (1.2)",
   "signature": "sona_result sona_avatar_state_status(const sona_avatar *a, sona_state_status *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "const sona_avatar *"
    },
    {
     "name": "out",
     "type": "sona_state_status *"
    }
   ],
   "comment": "",
   "doc": "`mode` (`SONA_STATE_LIVE`, `_WAITING`, `_PUPPET`), `pending` (a clip of the last state is still loading), `missing` (`SONA_STATE_MISSING_*` of the last state put on) and how many states were put on. All zero for an avatar the module never touched.",
   "page": "Avatar state, network sync and replays",
   "anchor": "https://360sona.com/devs/docs/reference/c/state-sync-and-replays.html#sona_avatar_state_status"
  },
  {
   "name": "sona_avatar_puppet",
   "header": "sona.h",
   "section": "3.28 avatar state, network sync and replays (1.2)",
   "signature": "sona_result sona_avatar_puppet(sona_avatar *a, int on);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "on",
     "type": "int"
    }
   ],
   "comment": "A puppet's clocks stand still: its clip, layers, fades, moves, IK smoothing and idle change only when a state is put on it (sona_net_drive, sona_replay_drive), so its pose is a function of that state alone. Turned off it plays on from the last state.",
   "doc": "A puppet's clocks stand still: its clip, layers, fades, moves, IK smoothing and idle change only when a state is put on it. `sona_net_drive` and `sona_replay_drive` make an avatar a puppet; off, it plays on from the last state.",
   "page": "Avatar state, network sync and replays",
   "anchor": "https://360sona.com/devs/docs/reference/c/state-sync-and-replays.html#sona_avatar_puppet"
  },
  {
   "name": "sona_net_defaults",
   "header": "sona.h",
   "section": "3.28 avatar state, network sync and replays (1.2)",
   "signature": "void sona_net_defaults(sona_net_options *o);",
   "returns": "void",
   "params": [
    {
     "name": "o",
     "type": "sona_net_options *"
    }
   ],
   "comment": "",
   "doc": "A rate of 30 ticks a second, 64 ticks of history, a full state after 30 ticks without an acknowledgement.",
   "page": "Avatar state, network sync and replays",
   "anchor": "https://360sona.com/devs/docs/reference/c/state-sync-and-replays.html#sona_net_defaults"
  },
  {
   "name": "sona_net_sender_create",
   "header": "sona.h",
   "section": "3.28 avatar state, network sync and replays (1.2)",
   "signature": "sona_result sona_net_sender_create(sona_ctx *ctx, const sona_net_options *o, sona_net_sender **out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "o",
     "type": "const sona_net_options *"
    },
    {
     "name": "out",
     "type": "sona_net_sender **"
    }
   ],
   "comment": "",
   "doc": "One stream's sending end. `o` may be NULL. `SONA_E_ARGUMENT` for a `tick_hz` of 0 or over 1000, or a `history` outside 8..1024.",
   "page": "Avatar state, network sync and replays",
   "anchor": "https://360sona.com/devs/docs/reference/c/state-sync-and-replays.html#sona_net_sender_create"
  },
  {
   "name": "sona_net_sender_destroy",
   "header": "sona.h",
   "section": "3.28 avatar state, network sync and replays (1.2)",
   "signature": "void sona_net_sender_destroy(sona_net_sender *s);",
   "returns": "void",
   "params": [
    {
     "name": "s",
     "type": "sona_net_sender *"
    }
   ],
   "comment": "",
   "doc": "Frees the sender.",
   "page": "Avatar state, network sync and replays",
   "anchor": "https://360sona.com/devs/docs/reference/c/state-sync-and-replays.html#sona_net_sender_destroy"
  },
  {
   "name": "sona_net_sender_look",
   "header": "sona.h",
   "section": "3.28 avatar state, network sync and replays (1.2)",
   "signature": "sona_result sona_net_sender_look(sona_net_sender *s, const char *id);",
   "returns": "sona_result",
   "params": [
    {
     "name": "s",
     "type": "sona_net_sender *"
    },
    {
     "name": "id",
     "type": "const char *"
    }
   ],
   "comment": "The look the stream names: NULL (default) sends the avatar's manifest, an id (1 to 63 bytes: a gamertag, a player id) sends that instead, for receivers that look avatars up themselves. A change goes out until acknowledged.",
   "doc": "NULL (the default): the stream sends the avatar's manifest, and again whenever it changes. An id of 1 to 63 bytes sends that instead. Either goes along until a packet carrying it is acknowledged.",
   "page": "Avatar state, network sync and replays",
   "anchor": "https://360sona.com/devs/docs/reference/c/state-sync-and-replays.html#sona_net_sender_look"
  },
  {
   "name": "sona_net_write",
   "header": "sona.h",
   "section": "3.28 avatar state, network sync and replays (1.2)",
   "signature": "sona_result sona_net_write(sona_net_sender *s, sona_avatar *a, uint32_t tick, uint8_t *out, size_t cap, size_t *len);",
   "returns": "sona_result",
   "params": [
    {
     "name": "s",
     "type": "sona_net_sender *"
    },
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "tick",
     "type": "uint32_t"
    },
    {
     "name": "out",
     "type": "uint8_t *"
    },
    {
     "name": "cap",
     "type": "size_t"
    },
    {
     "name": "len",
     "type": "size_t *"
    }
   ],
   "comment": "One packet: a's state at tick (ticks rise). SONA_E_LIMIT when cap is too small (*len: the bytes needed); SONA_E_NOT_READY before READY. 64 bytes hold a steady avatar; the first packet, with a manifest, about 1 KB.",
   "doc": "One packet of `a`'s state at `tick`, coded against the newest acknowledged tick (or full). Ticks rise (`SONA_E_ARGUMENT` otherwise). `SONA_E_LIMIT` when `cap` is too small, with `*len` the size needed; `SONA_E_NOT_READY` before READY.",
   "page": "Avatar state, network sync and replays",
   "anchor": "https://360sona.com/devs/docs/reference/c/state-sync-and-replays.html#sona_net_write"
  },
  {
   "name": "sona_net_ack",
   "header": "sona.h",
   "section": "3.28 avatar state, network sync and replays (1.2)",
   "signature": "void sona_net_ack(sona_net_sender *s, uint32_t tick);",
   "returns": "void",
   "params": [
    {
     "name": "s",
     "type": "sona_net_sender *"
    },
    {
     "name": "tick",
     "type": "uint32_t"
    }
   ],
   "comment": "The receiver has tick: later packets are coded against it.",
   "doc": "The receiver holds `tick`. Ticks the sender no longer keeps are ignored.",
   "page": "Avatar state, network sync and replays",
   "anchor": "https://360sona.com/devs/docs/reference/c/state-sync-and-replays.html#sona_net_ack"
  },
  {
   "name": "sona_net_receiver_create",
   "header": "sona.h",
   "section": "3.28 avatar state, network sync and replays (1.2)",
   "signature": "sona_result sona_net_receiver_create(sona_ctx *ctx, const sona_net_options *o, sona_net_receiver **out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "o",
     "type": "const sona_net_options *"
    },
    {
     "name": "out",
     "type": "sona_net_receiver **"
    }
   ],
   "comment": "",
   "doc": "One stream's receiving end. `o` may be NULL (the defaults).",
   "page": "Avatar state, network sync and replays",
   "anchor": "https://360sona.com/devs/docs/reference/c/state-sync-and-replays.html#sona_net_receiver_create"
  },
  {
   "name": "sona_net_receiver_destroy",
   "header": "sona.h",
   "section": "3.28 avatar state, network sync and replays (1.2)",
   "signature": "void sona_net_receiver_destroy(sona_net_receiver *r);",
   "returns": "void",
   "params": [
    {
     "name": "r",
     "type": "sona_net_receiver *"
    }
   ],
   "comment": "",
   "doc": "Frees the receiver.",
   "page": "Avatar state, network sync and replays",
   "anchor": "https://360sona.com/devs/docs/reference/c/state-sync-and-replays.html#sona_net_receiver_destroy"
  },
  {
   "name": "sona_net_read",
   "header": "sona.h",
   "section": "3.28 avatar state, network sync and replays (1.2)",
   "signature": "sona_result sona_net_read(sona_net_receiver *r, const void *packet, size_t len, uint32_t *ack);",
   "returns": "sona_result",
   "params": [
    {
     "name": "r",
     "type": "sona_net_receiver *"
    },
    {
     "name": "packet",
     "type": "const void *"
    },
    {
     "name": "len",
     "type": "size_t"
    },
    {
     "name": "ack",
     "type": "uint32_t *"
    }
   ],
   "comment": "Decodes one packet; *ack (may be NULL) is the tick to send back. Late and repeated packets are fine. SONA_E_NOT_FOUND: its baseline is no longer held (keep acknowledging; a full state follows), SONA_E_CORRUPT, SONA_E_UNSUPPORTED (a newer format).",
   "doc": "Decodes and keeps one packet; `*ack` is the tick to send back. Late and repeated packets are fine. `SONA_E_NOT_FOUND` when its baseline is no longer held, `SONA_E_CORRUPT`, `SONA_E_UNSUPPORTED`.",
   "page": "Avatar state, network sync and replays",
   "anchor": "https://360sona.com/devs/docs/reference/c/state-sync-and-replays.html#sona_net_read"
  },
  {
   "name": "sona_net_receiver_look",
   "header": "sona.h",
   "section": "3.28 avatar state, network sync and replays (1.2)",
   "signature": "sona_result sona_net_receiver_look(const sona_net_receiver *r, sona_net_look *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "r",
     "type": "const sona_net_receiver *"
    },
    {
     "name": "out",
     "type": "sona_net_look *"
    }
   ],
   "comment": "",
   "doc": "The newest look the stream carried: `kind` `SONA_NET_LOOK_MANIFEST` with `manifest`, `SONA_NET_LOOK_ID` with `id`, or `SONA_NET_LOOK_NONE` before one arrives; `version` rises with each change.",
   "page": "Avatar state, network sync and replays",
   "anchor": "https://360sona.com/devs/docs/reference/c/state-sync-and-replays.html#sona_net_receiver_look"
  },
  {
   "name": "sona_net_drive",
   "header": "sona.h",
   "section": "3.28 avatar state, network sync and replays (1.2)",
   "signature": "sona_result sona_net_drive(sona_net_receiver *r, sona_avatar *a, double tick);",
   "returns": "sona_result",
   "params": [
    {
     "name": "r",
     "type": "sona_net_receiver *"
    },
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "tick",
     "type": "double"
    }
   ],
   "comment": "Shows tick on a, which becomes a puppet: a whole tick that arrived shows its state; between two received ticks a blend of them; before the oldest held the oldest, past the newest the newest. SONA_E_NOT_READY before any state.",
   "doc": "Shows `tick` on `a`, which becomes a puppet: a held tick as it is, a fraction between two held ticks as their blend, before the oldest the oldest, past the newest the newest. `SONA_E_NOT_READY` before any state arrived.",
   "page": "Avatar state, network sync and replays",
   "anchor": "https://360sona.com/devs/docs/reference/c/state-sync-and-replays.html#sona_net_drive"
  },
  {
   "name": "sona_net_sender_stats",
   "header": "sona.h",
   "section": "3.28 avatar state, network sync and replays (1.2)",
   "signature": "sona_result sona_net_sender_stats(const sona_net_sender *s, sona_net_stats *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "s",
     "type": "const sona_net_sender *"
    },
    {
     "name": "out",
     "type": "sona_net_stats *"
    }
   ],
   "comment": "",
   "doc": "Packets and bytes written, those without a baseline (`full`), the last packet's size and the newest acknowledged tick.",
   "page": "Avatar state, network sync and replays",
   "anchor": "https://360sona.com/devs/docs/reference/c/state-sync-and-replays.html#sona_net_sender_stats"
  },
  {
   "name": "sona_net_receiver_stats",
   "header": "sona.h",
   "section": "3.28 avatar state, network sync and replays (1.2)",
   "signature": "sona_result sona_net_receiver_stats(const sona_net_receiver *r, sona_net_stats *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "r",
     "type": "const sona_net_receiver *"
    },
    {
     "name": "out",
     "type": "sona_net_stats *"
    }
   ],
   "comment": "",
   "doc": "Packets and bytes read, packets refused for want of a baseline (`full`), the newest and oldest ticks held.",
   "page": "Avatar state, network sync and replays",
   "anchor": "https://360sona.com/devs/docs/reference/c/state-sync-and-replays.html#sona_net_receiver_stats"
  },
  {
   "name": "sona_record_defaults",
   "header": "sona.h",
   "section": "3.28 avatar state, network sync and replays (1.2)",
   "signature": "void sona_record_defaults(sona_record_options *o);",
   "returns": "void",
   "params": [
    {
     "name": "o",
     "type": "sona_record_options *"
    }
   ],
   "comment": "",
   "doc": "A rate of 30 ticks a second, a keyframe every 30 ticks, everything kept.",
   "page": "Avatar state, network sync and replays",
   "anchor": "https://360sona.com/devs/docs/reference/c/state-sync-and-replays.html#sona_record_defaults"
  },
  {
   "name": "sona_recorder_create",
   "header": "sona.h",
   "section": "3.28 avatar state, network sync and replays (1.2)",
   "signature": "sona_result sona_recorder_create(sona_ctx *ctx, const sona_record_options *o, sona_recorder **out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "o",
     "type": "const sona_record_options *"
    },
    {
     "name": "out",
     "type": "sona_recorder **"
    }
   ],
   "comment": "",
   "doc": "`keep_seconds` above 0 keeps only about the last that many seconds (whole keyframe spans), for kill-cams.",
   "page": "Avatar state, network sync and replays",
   "anchor": "https://360sona.com/devs/docs/reference/c/state-sync-and-replays.html#sona_recorder_create"
  },
  {
   "name": "sona_recorder_destroy",
   "header": "sona.h",
   "section": "3.28 avatar state, network sync and replays (1.2)",
   "signature": "void sona_recorder_destroy(sona_recorder *r);",
   "returns": "void",
   "params": [
    {
     "name": "r",
     "type": "sona_recorder *"
    }
   ],
   "comment": "",
   "doc": "Frees the recorder and what it captured.",
   "page": "Avatar state, network sync and replays",
   "anchor": "https://360sona.com/devs/docs/reference/c/state-sync-and-replays.html#sona_recorder_destroy"
  },
  {
   "name": "sona_recorder_track",
   "header": "sona.h",
   "section": "3.28 avatar state, network sync and replays (1.2)",
   "signature": "sona_result sona_recorder_track(sona_recorder *r, sona_avatar *a, const char *name, uint32_t *track);",
   "returns": "sona_result",
   "params": [
    {
     "name": "r",
     "type": "sona_recorder *"
    },
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "name",
     "type": "const char *"
    },
    {
     "name": "track",
     "type": "uint32_t *"
    }
   ],
   "comment": "Records a from the next capture on; name (may be NULL, at most 63 bytes) goes into the file. At most 256 tracks.",
   "doc": "Records `a` from the next capture on, as track `*track`. At most 256 tracks; `name` at most 63 bytes.",
   "page": "Avatar state, network sync and replays",
   "anchor": "https://360sona.com/devs/docs/reference/c/state-sync-and-replays.html#sona_recorder_track"
  },
  {
   "name": "sona_recorder_capture",
   "header": "sona.h",
   "section": "3.28 avatar state, network sync and replays (1.2)",
   "signature": "sona_result sona_recorder_capture(sona_recorder *r, uint32_t tick);",
   "returns": "sona_result",
   "params": [
    {
     "name": "r",
     "type": "sona_recorder *"
    },
    {
     "name": "tick",
     "type": "uint32_t"
    }
   ],
   "comment": "Every track's state at tick (ticks rise). A track whose avatar is not READY, or was removed, is left out.",
   "doc": "Every track's state at `tick` (rising). A track whose avatar is not READY or was removed is left out of that capture.",
   "page": "Avatar state, network sync and replays",
   "anchor": "https://360sona.com/devs/docs/reference/c/state-sync-and-replays.html#sona_recorder_capture"
  },
  {
   "name": "sona_recorder_save",
   "header": "sona.h",
   "section": "3.28 avatar state, network sync and replays (1.2)",
   "signature": "sona_result sona_recorder_save(sona_recorder *r, uint8_t **out, size_t *out_len);",
   "returns": "sona_result",
   "params": [
    {
     "name": "r",
     "type": "sona_recorder *"
    },
    {
     "name": "out",
     "type": "uint8_t **"
    },
    {
     "name": "out_len",
     "type": "size_t *"
    }
   ],
   "comment": "The file's bytes, freed with sona_free.",
   "doc": "The file's bytes, freed with `sona_free`. Recording can go on after.",
   "page": "Avatar state, network sync and replays",
   "anchor": "https://360sona.com/devs/docs/reference/c/state-sync-and-replays.html#sona_recorder_save"
  },
  {
   "name": "sona_replay_open",
   "header": "sona.h",
   "section": "3.28 avatar state, network sync and replays (1.2)",
   "signature": "sona_result sona_replay_open(sona_ctx *ctx, const void *bytes, size_t len, sona_replay **out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "bytes",
     "type": "const void *"
    },
    {
     "name": "len",
     "type": "size_t"
    },
    {
     "name": "out",
     "type": "sona_replay **"
    }
   ],
   "comment": "",
   "doc": "Keeps a copy of the bytes. `SONA_E_CORRUPT`, `SONA_E_UNSUPPORTED` for a newer format.",
   "page": "Avatar state, network sync and replays",
   "anchor": "https://360sona.com/devs/docs/reference/c/state-sync-and-replays.html#sona_replay_open"
  },
  {
   "name": "sona_replay_close",
   "header": "sona.h",
   "section": "3.28 avatar state, network sync and replays (1.2)",
   "signature": "void sona_replay_close(sona_replay *p);",
   "returns": "void",
   "params": [
    {
     "name": "p",
     "type": "sona_replay *"
    }
   ],
   "comment": "",
   "doc": "Frees the replay.",
   "page": "Avatar state, network sync and replays",
   "anchor": "https://360sona.com/devs/docs/reference/c/state-sync-and-replays.html#sona_replay_close"
  },
  {
   "name": "sona_replay_info_get",
   "header": "sona.h",
   "section": "3.28 avatar state, network sync and replays (1.2)",
   "signature": "sona_result sona_replay_info_get(const sona_replay *p, sona_replay_info *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "p",
     "type": "const sona_replay *"
    },
    {
     "name": "out",
     "type": "sona_replay_info *"
    }
   ],
   "comment": "",
   "doc": "The replay's tracks, tick rate, first and last tick, the captures it holds and its length in seconds.",
   "page": "Avatar state, network sync and replays",
   "anchor": "https://360sona.com/devs/docs/reference/c/state-sync-and-replays.html#sona_replay_info_get"
  },
  {
   "name": "sona_replay_track",
   "header": "sona.h",
   "section": "3.28 avatar state, network sync and replays (1.2)",
   "signature": "sona_result sona_replay_track(const sona_replay *p, uint32_t track, uint8_t manifest[SONA_MANIFEST_BYTES], char name[64], float *from, float *to);",
   "returns": "sona_result",
   "params": [
    {
     "name": "p",
     "type": "const sona_replay *"
    },
    {
     "name": "track",
     "type": "uint32_t"
    },
    {
     "name": "manifest",
     "type": "uint8_t [SONA_MANIFEST_BYTES]"
    },
    {
     "name": "name",
     "type": "char [64]"
    },
    {
     "name": "from",
     "type": "float *"
    },
    {
     "name": "to",
     "type": "float *"
    }
   ],
   "comment": "A track's look, name and span in seconds from the replay's start (each may be NULL).",
   "doc": "A track's look, name and span in seconds from the replay's start; each output may be NULL.",
   "page": "Avatar state, network sync and replays",
   "anchor": "https://360sona.com/devs/docs/reference/c/state-sync-and-replays.html#sona_replay_track"
  },
  {
   "name": "sona_replay_drive",
   "header": "sona.h",
   "section": "3.28 avatar state, network sync and replays (1.2)",
   "signature": "sona_result sona_replay_drive(sona_replay *p, uint32_t track, sona_avatar *a, double seconds);",
   "returns": "sona_result",
   "params": [
    {
     "name": "p",
     "type": "sona_replay *"
    },
    {
     "name": "track",
     "type": "uint32_t"
    },
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "seconds",
     "type": "double"
    }
   ],
   "comment": "Shows track at seconds from the replay's start on a, which becomes a puppet. Any order; outside the track's span it shows its first or last state.",
   "doc": "Shows the track at `seconds` from the replay's start on `a`, which becomes a puppet, blending the two frames around it. Any order: the same time always shows the same pose bits.",
   "page": "Avatar state, network sync and replays",
   "anchor": "https://360sona.com/devs/docs/reference/c/state-sync-and-replays.html#sona_replay_drive"
  },
  {
   "name": "sona_lighting_defaults",
   "header": "sona.h",
   "section": "3.12e lighting and shadows (1.2)",
   "signature": "void sona_lighting_defaults(sona_lighting *l);",
   "returns": "void",
   "params": [
    {
     "name": "l",
     "type": "sona_lighting *"
    }
   ],
   "comment": "",
   "doc": "`size` set; `ambient` 0, `environment` 1, `specular` 1, `rim` 1, `shadow` FIT, `shadow_size` 2048, `shadow_strength` 1, `shadow_ambient` 0.5, `shadow_bias` 0.03, `ground_y` 0, `ground_opacity` 0.6.",
   "page": "Lighting and shadows",
   "anchor": "https://360sona.com/devs/docs/reference/c/lighting-and-shadows.html#sona_lighting_defaults"
  },
  {
   "name": "sona_renderer_set_lighting",
   "header": "sona.h",
   "section": "3.12e lighting and shadows (1.2)",
   "signature": "sona_result sona_renderer_set_lighting(sona_renderer *r, const sona_lighting *l);",
   "returns": "sona_result",
   "params": [
    {
     "name": "r",
     "type": "sona_renderer *"
    },
    {
     "name": "l",
     "type": "const sona_lighting *"
    }
   ],
   "comment": "From the next draw. NULL: no lighting, the original look again. SONA_E_ARGUMENT for a size that is not sizeof(sona_lighting), a value out of range, an unknown flag or mode, a zero key direction with shadows on, or a matrix that is not orthographic.",
   "doc": "From the next draw. NULL: no lighting, the original look again. `SONA_E_ARGUMENT` for a size that is not sizeof(`sona_lighting`), a value out of range, an unknown flag or mode, a zero key direction with shadows on, or a matrix that is not orthographic.",
   "page": "Lighting and shadows",
   "anchor": "https://360sona.com/devs/docs/reference/c/lighting-and-shadows.html#sona_renderer_set_lighting"
  },
  {
   "name": "sona_renderer_lighting",
   "header": "sona.h",
   "section": "3.12e lighting and shadows (1.2)",
   "signature": "sona_result sona_renderer_lighting(const sona_renderer *r, sona_lighting *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "r",
     "type": "const sona_renderer *"
    },
    {
     "name": "out",
     "type": "sona_lighting *"
    }
   ],
   "comment": "What is set; SONA_E_NOT_FOUND when none is.",
   "doc": "What is set; `SONA_E_NOT_FOUND` when none is.",
   "page": "Lighting and shadows",
   "anchor": "https://360sona.com/devs/docs/reference/c/lighting-and-shadows.html#sona_renderer_lighting"
  },
  {
   "name": "sona_draw_lit",
   "header": "sona.h",
   "section": "3.12e lighting and shadows (1.2)",
   "signature": "sona_result sona_draw_lit(sona_renderer *r, const sona_view *view, const sona_target *target, const sona_draw_options *opts, const sona_lighting *l);",
   "returns": "sona_result",
   "params": [
    {
     "name": "r",
     "type": "sona_renderer *"
    },
    {
     "name": "view",
     "type": "const sona_view *"
    },
    {
     "name": "target",
     "type": "const sona_target *"
    },
    {
     "name": "opts",
     "type": "const sona_draw_options *"
    },
    {
     "name": "l",
     "type": "const sona_lighting *"
    }
   ],
   "comment": "sona_draw and sona_snapshot with l in place of the renderer's lighting for this one frame (one per view of a split screen); l NULL: the renderer's own. The checks of sona_renderer_set_lighting.",
   "doc": "`sona_draw` and `sona_snapshot` with l in place of the renderer's lighting for this one frame (one per view of a split screen); l NULL: the renderer's own. The checks of `sona_renderer_set_lighting`.",
   "page": "Lighting and shadows",
   "anchor": "https://360sona.com/devs/docs/reference/c/lighting-and-shadows.html#sona_draw_lit"
  },
  {
   "name": "sona_snapshot_lit",
   "header": "sona.h",
   "section": "3.12e lighting and shadows (1.2)",
   "signature": "sona_result sona_snapshot_lit(sona_renderer *r, const sona_view *view, uint32_t width, uint32_t height, const sona_draw_options *opts, const sona_lighting *l, uint8_t *rgba_out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "r",
     "type": "sona_renderer *"
    },
    {
     "name": "view",
     "type": "const sona_view *"
    },
    {
     "name": "width",
     "type": "uint32_t"
    },
    {
     "name": "height",
     "type": "uint32_t"
    },
    {
     "name": "opts",
     "type": "const sona_draw_options *"
    },
    {
     "name": "l",
     "type": "const sona_lighting *"
    },
    {
     "name": "rgba_out",
     "type": "uint8_t *"
    }
   ],
   "comment": "",
   "doc": "`sona_snapshot` with `l` in place of the renderer's lighting for this one picture; `l` NULL: the renderer's own. The checks of `sona_renderer_set_lighting`.",
   "page": "Lighting and shadows",
   "anchor": "https://360sona.com/devs/docs/reference/c/lighting-and-shadows.html#sona_snapshot_lit"
  },
  {
   "name": "sona_environment_defaults",
   "header": "sona.h",
   "section": "3.12e lighting and shadows (1.2)",
   "signature": "void sona_environment_defaults(sona_environment *e);",
   "returns": "void",
   "params": [
    {
     "name": "e",
     "type": "sona_environment *"
    }
   ],
   "comment": "",
   "doc": "`size` set; `kind` BUILTIN, `skin_red` 1.2 (the built-in's).",
   "page": "Lighting and shadows",
   "anchor": "https://360sona.com/devs/docs/reference/c/lighting-and-shadows.html#sona_environment_defaults"
  },
  {
   "name": "sona_renderer_set_environment",
   "header": "sona.h",
   "section": "3.12e lighting and shadows (1.2)",
   "signature": "sona_result sona_renderer_set_environment(sona_renderer *r, const sona_environment *e);",
   "returns": "sona_result",
   "params": [
    {
     "name": "r",
     "type": "sona_renderer *"
    },
    {
     "name": "e",
     "type": "const sona_environment *"
    }
   ],
   "comment": "From the next lit draw. NULL: the built-in cube. SONA_E_ARGUMENT for a bad size, kind or cube.",
   "doc": "From the next lit draw. NULL: the built-in cube. `SONA_E_ARGUMENT` for a bad size, kind or cube.",
   "page": "Lighting and shadows",
   "anchor": "https://360sona.com/devs/docs/reference/c/lighting-and-shadows.html#sona_renderer_set_environment"
  },
  {
   "name": "sona_environment_irradiance",
   "header": "sona.h",
   "section": "3.12e lighting and shadows (1.2)",
   "signature": "sona_result sona_environment_irradiance(const sona_environment *e, float out_sh[27]);",
   "returns": "sona_result",
   "params": [
    {
     "name": "e",
     "type": "const sona_environment *"
    },
    {
     "name": "out_sh",
     "type": "float [27]"
    }
   ],
   "comment": "The irradiance the shader evaluates for e (cube projected, convolved with the cosine lobe, divided by pi), in the basis above: a host lights its own scene the same way with it. SONA_E_ARGUMENT as above and for BUILTIN.",
   "doc": "The irradiance the shader evaluates for e (cube projected, convolved with the cosine lobe, divided by pi), in the basis above: a host lights its own scene the same way with it. `SONA_E_ARGUMENT` as above and for BUILTIN.",
   "page": "Lighting and shadows",
   "anchor": "https://360sona.com/devs/docs/reference/c/lighting-and-shadows.html#sona_environment_irradiance"
  },
  {
   "name": "sona_renderer_set_host_shadow",
   "header": "sona.h",
   "section": "3.12e lighting and shadows (1.2)",
   "signature": "sona_result sona_renderer_set_host_shadow(sona_renderer *r, const sona_host_shadow *s);",
   "returns": "sona_result",
   "params": [
    {
     "name": "r",
     "type": "sona_renderer *"
    },
    {
     "name": "s",
     "type": "const sona_host_shadow *"
    }
   ],
   "comment": "NULL: none. SONA_E_UNSUPPORTED on a backend without it (Metal), SONA_E_ARGUMENT for a bad size or handle.",
   "doc": "NULL: none. `SONA_E_UNSUPPORTED` on a backend without it (Metal), `SONA_E_ARGUMENT` for a bad size or handle.",
   "page": "Lighting and shadows",
   "anchor": "https://360sona.com/devs/docs/reference/c/lighting-and-shadows.html#sona_renderer_set_host_shadow"
  },
  {
   "name": "sona_renderer_shadow_map",
   "header": "sona.h",
   "section": "3.12e lighting and shadows (1.2)",
   "signature": "sona_result sona_renderer_shadow_map(const sona_renderer *r, sona_shadow_map *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "r",
     "type": "const sona_renderer *"
    },
    {
     "name": "out",
     "type": "sona_shadow_map *"
    }
   ],
   "comment": "SONA_E_NOT_FOUND before a lit frame with shadows; SONA_E_UNSUPPORTED on a backend without it.",
   "doc": "`SONA_E_NOT_FOUND` before a lit frame with shadows; `SONA_E_UNSUPPORTED` on a backend without it.",
   "page": "Lighting and shadows",
   "anchor": "https://360sona.com/devs/docs/reference/c/lighting-and-shadows.html#sona_renderer_shadow_map"
  },
  {
   "name": "sona_style_defaults",
   "header": "sona.h",
   "section": "3.12f art styles (1.2)",
   "signature": "void sona_style_defaults(sona_style *s);",
   "returns": "void",
   "params": [
    {
     "name": "s",
     "type": "sona_style *"
    }
   ],
   "comment": "The original look, no outline, and the defaults above for every parameter; set kind and flags after.",
   "doc": "`size` set, the original look, no flags, 3 bands, shade 0.55, highlight 0.35, a 2 px outline in `0xff141414`, silhouette colour `0xff1e2430`. NULL does nothing.",
   "page": "Art styles",
   "anchor": "https://360sona.com/devs/docs/reference/c/art-styles.html#sona_style_defaults"
  },
  {
   "name": "sona_avatar_set_style",
   "header": "sona.h",
   "section": "3.12f art styles (1.2)",
   "signature": "sona_result sona_avatar_set_style(sona_avatar *a, const sona_style *s);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "s",
     "type": "const sona_style *"
    }
   ],
   "comment": "The avatar's own style, from the next frame; NULL (or the original look without an outline) clears it, and the renderer's style applies again. SONA_E_ARGUMENT for a size, kind, flag (OVERRIDE included), parameter out of range or reserved word not zero; nothing changes then.",
   "doc": "The avatar's own style from the next frame; NULL, or the original look without an outline, clears it. `SONA_E_ARGUMENT` for a parameter out of range, an unknown kind or flag, `SONA_STYLE_OVERRIDE`, a non-zero reserved word or a `size` below `sizeof(sona_style)`; nothing changes then.",
   "page": "Art styles",
   "anchor": "https://360sona.com/devs/docs/reference/c/art-styles.html#sona_avatar_set_style"
  },
  {
   "name": "sona_avatar_style",
   "header": "sona.h",
   "section": "3.12f art styles (1.2)",
   "signature": "sona_result sona_avatar_style(const sona_avatar *a, sona_style *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "const sona_avatar *"
    },
    {
     "name": "out",
     "type": "sona_style *"
    }
   ],
   "comment": "The avatar's own style, or sona_style_defaults when it has none.",
   "doc": "The avatar's own style, or `sona_style_defaults` when it has none.",
   "page": "Art styles",
   "anchor": "https://360sona.com/devs/docs/reference/c/art-styles.html#sona_avatar_style"
  },
  {
   "name": "sona_renderer_set_style",
   "header": "sona.h",
   "section": "3.12f art styles (1.2)",
   "signature": "sona_result sona_renderer_set_style(sona_renderer *r, const sona_style *s);",
   "returns": "sona_result",
   "params": [
    {
     "name": "r",
     "type": "sona_renderer *"
    },
    {
     "name": "s",
     "type": "const sona_style *"
    }
   ],
   "comment": "The style of every avatar this renderer draws that has none of its own (with SONA_STYLE_OVERRIDE, of every avatar), from the next sona_draw or sona_snapshot. NULL clears it. SONA_E_ARGUMENT as sona_avatar_set_style; SONA_E_UNSUPPORTED (nothing changes) on a backend that draws no styles, unless s is NULL or the original look with no flags (both clear it). While the device is lost (before sona_renderer_reset) a Vulkan or GL renderer keeps the style.",
   "doc": "The style of every avatar this renderer draws that has none of its own (with `SONA_STYLE_OVERRIDE`, of every avatar), from the next `sona_draw` or `sona_snapshot`. NULL, or the original look with no flags, clears it. `SONA_E_UNSUPPORTED` (nothing changes) on a backend without styles; `SONA_E_ARGUMENT` as `sona_avatar_set_style`.",
   "page": "Art styles",
   "anchor": "https://360sona.com/devs/docs/reference/c/art-styles.html#sona_renderer_set_style"
  },
  {
   "name": "sona_renderer_style",
   "header": "sona.h",
   "section": "3.12f art styles (1.2)",
   "signature": "sona_result sona_renderer_style(const sona_renderer *r, sona_style *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "r",
     "type": "const sona_renderer *"
    },
    {
     "name": "out",
     "type": "sona_style *"
    }
   ],
   "comment": "The renderer's style (sona_style_defaults when none). SONA_E_UNSUPPORTED, with out set to the defaults, when its backend draws no styles: then no style shows, the avatars' own included.",
   "doc": "The renderer's style, or the defaults when none. `SONA_E_UNSUPPORTED`, with `out` the defaults, when its backend draws no styles.",
   "page": "Art styles",
   "anchor": "https://360sona.com/devs/docs/reference/c/art-styles.html#sona_renderer_style"
  },
  {
   "name": "sona_placeholder_defaults",
   "header": "sona.h",
   "section": "3.8d loading placeholders (1.2)",
   "signature": "void sona_placeholder_defaults(sona_placeholder_options *o);",
   "returns": "void",
   "params": [
    {
     "name": "o",
     "type": "sona_placeholder_options *"
    }
   ],
   "comment": "",
   "doc": "`size` set; `delay_seconds` 0 (never a hole), `appear_seconds` 0.2, `reveal_seconds` 0.4, `failed_seconds` 2, `tint` 0.16, 0.19, 0.25 (a cool grey), `failed_tint` 0.25, 0.15, 0.15 (a muted red), `glow` 0.5.",
   "page": "Loading placeholders",
   "anchor": "https://360sona.com/devs/docs/reference/c/loading-placeholders.html#sona_placeholder_defaults"
  },
  {
   "name": "sona_placeholder_set",
   "header": "sona.h",
   "section": "3.8d loading placeholders (1.2)",
   "signature": "sona_result sona_placeholder_set(sona_ctx *ctx, const sona_placeholder_options *o);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "o",
     "type": "const sona_placeholder_options *"
    }
   ],
   "comment": "NULL: the defaults. SONA_E_ARGUMENT for a size that is not the struct's, a negative or non-finite time (each at most 60 s), a colour outside 0..1 or reserved words that are not zero. Takes effect at the next sona_update.",
   "doc": "NULL: the defaults. `SONA_E_ARGUMENT` for a size that is not the struct's, a negative or non-finite time (each has a limit of 60 s), a colour outside 0..1 or reserved words that are not zero. Takes effect at the next `sona_update`.",
   "page": "Loading placeholders",
   "anchor": "https://360sona.com/devs/docs/reference/c/loading-placeholders.html#sona_placeholder_set"
  },
  {
   "name": "sona_placeholder_get",
   "header": "sona.h",
   "section": "3.8d loading placeholders (1.2)",
   "signature": "sona_result sona_placeholder_get(const sona_ctx *ctx, sona_placeholder_options *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "const sona_ctx *"
    },
    {
     "name": "out",
     "type": "sona_placeholder_options *"
    }
   ],
   "comment": "SONA_E_NOT_FOUND while placeholders are off (out still gets the options last set, or the defaults).",
   "doc": "`SONA_E_NOT_FOUND` while placeholders are off (out still gets the options last set, or the defaults).",
   "page": "Loading placeholders",
   "anchor": "https://360sona.com/devs/docs/reference/c/loading-placeholders.html#sona_placeholder_get"
  },
  {
   "name": "sona_placeholder_off",
   "header": "sona.h",
   "section": "3.8d loading placeholders (1.2)",
   "signature": "sona_result sona_placeholder_off(sona_ctx *ctx);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    }
   ],
   "comment": "figures shown now fade out over appear_seconds",
   "doc": "Figures shown now fade out over appear_seconds.",
   "page": "Loading placeholders",
   "anchor": "https://360sona.com/devs/docs/reference/c/loading-placeholders.html#sona_placeholder_off"
  },
  {
   "name": "sona_avatar_placeholder",
   "header": "sona.h",
   "section": "3.8d loading placeholders (1.2)",
   "signature": "sona_result sona_avatar_placeholder(sona_avatar *a, int32_t mode);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "mode",
     "type": "int32_t"
    }
   ],
   "comment": "Per avatar: -1 follows the ctx (the default), 0 never, 1 always (with the ctx's options, or the defaults).",
   "doc": "Per avatar: -1 follows the ctx (the default), 0 never, 1 always (with the ctx's options, or the defaults).",
   "page": "Loading placeholders",
   "anchor": "https://360sona.com/devs/docs/reference/c/loading-placeholders.html#sona_avatar_placeholder"
  },
  {
   "name": "sona_avatar_placeholder_info",
   "header": "sona.h",
   "section": "3.8d loading placeholders (1.2)",
   "signature": "sona_result sona_avatar_placeholder_info(const sona_avatar *a, sona_placeholder_info *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "const sona_avatar *"
    },
    {
     "name": "out",
     "type": "sona_placeholder_info *"
    }
   ],
   "comment": "",
   "doc": "The avatar's figure at the last `sona_update`: its phase, opacity, height, which figure (male, female or neutral), whether it plays the avatar's clip, the seconds since the avatar was added and whether it is drawn as a sprite.",
   "page": "Loading placeholders",
   "anchor": "https://360sona.com/devs/docs/reference/c/loading-placeholders.html#sona_avatar_placeholder_info"
  },
  {
   "name": "sona_placeholder_stats_get",
   "header": "sona.h",
   "section": "3.8d loading placeholders (1.2)",
   "signature": "void sona_placeholder_stats_get(const sona_ctx *ctx, sona_placeholder_stats *out);",
   "returns": "void",
   "params": [
    {
     "name": "ctx",
     "type": "const sona_ctx *"
    },
    {
     "name": "out",
     "type": "sona_placeholder_stats *"
    }
   ],
   "comment": "",
   "doc": "Figures in view at the last `sona_update` (by phase, and how many as sprites), how many were posed and the time that took, and the figure draws of the last `sona_draw` or `sona_snapshot`.",
   "page": "Loading placeholders",
   "anchor": "https://360sona.com/devs/docs/reference/c/loading-placeholders.html#sona_placeholder_stats_get"
  },
  {
   "name": "sona_avatar_add_waiting",
   "header": "sona.h",
   "section": "3.8d loading placeholders (1.2)",
   "signature": "sona_result sona_avatar_add_waiting(sona_ctx *ctx, const sona_add_options *opts, sona_avatar **out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "opts",
     "type": "const sona_add_options *"
    },
    {
     "name": "out",
     "type": "sona_avatar **"
    }
   ],
   "comment": "An avatar whose manifest is not known yet, as for a player joining before their profile arrives. It stays QUEUED and shows the neutral figure (with placeholders on) until sona_avatar_set_manifest gives it its manifest, once; then it loads as if it had been added with it. Placement, play, layers and the rest work on it as on any avatar. sona_avatar_set_manifest: SONA_E_ARGUMENT for an avatar not added waiting or already given one. A bad manifest fails the avatar later with SONA_E_MANIFEST, as sona_avatar_add.",
   "doc": "An avatar whose manifest is not known, as for a player joining before their profile arrives. It stays QUEUED and shows the neutral figure (with placeholders on) until `sona_avatar_set_manifest` gives it its manifest, once; then it loads as if it had been added with it. Placement, play, layers and the rest work on it as on any avatar. `sona_avatar_set_manifest`: `SONA_E_ARGUMENT` for an avatar not added waiting or already given one. A bad manifest fails the avatar later with `SONA_E_MANIFEST`, as `sona_avatar_add`.",
   "page": "Loading placeholders",
   "anchor": "https://360sona.com/devs/docs/reference/c/loading-placeholders.html#sona_avatar_add_waiting"
  },
  {
   "name": "sona_avatar_set_manifest",
   "header": "sona.h",
   "section": "3.8d loading placeholders (1.2)",
   "signature": "sona_result sona_avatar_set_manifest(sona_avatar *a, const uint8_t manifest[SONA_MANIFEST_BYTES]);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "manifest",
     "type": "const uint8_t [SONA_MANIFEST_BYTES]"
    }
   ],
   "comment": "",
   "doc": "Gives an avatar added with `sona_avatar_add_waiting` its manifest, once; it then loads as if it had been added with it. `SONA_E_ARGUMENT` for an avatar not added waiting or already given one.",
   "page": "Loading placeholders",
   "anchor": "https://360sona.com/devs/docs/reference/c/loading-placeholders.html#sona_avatar_set_manifest"
  },
  {
   "name": "sona_avatar_set_manifest_base64",
   "header": "sona.h",
   "section": "3.8d loading placeholders (1.2)",
   "signature": "sona_result sona_avatar_set_manifest_base64(sona_avatar *a, const char *b64);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "b64",
     "type": "const char *"
    }
   ],
   "comment": "",
   "doc": "`sona_avatar_set_manifest` with the manifest as base64 text.",
   "page": "Loading placeholders",
   "anchor": "https://360sona.com/devs/docs/reference/c/loading-placeholders.html#sona_avatar_set_manifest_base64"
  },
  {
   "name": "sona_renderer_overlay",
   "header": "sona.h",
   "section": "3.29 overlays: a picture over the frame (Phase 4b)",
   "signature": "sona_result sona_renderer_overlay(sona_renderer *r, const sona_overlay *o);",
   "returns": "sona_result",
   "params": [
    {
     "name": "r",
     "type": "sona_renderer *"
    },
    {
     "name": "o",
     "type": "const sona_overlay *"
    }
   ],
   "comment": "Sets r's overlay for every sona_draw that follows, until the next call. o NULL takes it away (its texture is kept for the next one of the same size). After sona_renderer_reset or a lost device, set it again. SONA_E_ARGUMENT for a bad size or stride, a dirty rectangle outside the picture, or no rgba; SONA_E_LIMIT past the largest texture.",
   "doc": "Sets r's overlay for every `sona_draw` that follows, until the next call. o NULL takes it away (its texture is kept for the next one of the same size). After `sona_renderer_reset` or a lost device, set it again. `SONA_E_ARGUMENT` for a bad size or stride, a dirty rectangle outside the picture, or no rgba; `SONA_E_LIMIT` past the largest texture.",
   "page": "Overlays",
   "anchor": "https://360sona.com/devs/docs/reference/c/overlays.html#sona_renderer_overlay"
  },
  {
   "name": "sona_renderer_underlay",
   "header": "sona.h",
   "section": "3.29 overlays: a picture over the frame (Phase 4b)",
   "signature": "sona_result sona_renderer_underlay(sona_renderer *r, const sona_overlay *o);",
   "returns": "sona_result",
   "params": [
    {
     "name": "r",
     "type": "sona_renderer *"
    },
    {
     "name": "o",
     "type": "const sona_overlay *"
    }
   ],
   "comment": "1.x: a picture behind the avatars, as a page's backdrop behind a clear canvas: drawn first in the main pass at o->rect (w or h 0: the whole target), opaque (alpha is ignored), for every sona_draw and sona_snapshot until the next call; NULL takes it away. The frame's bloom runs over it as over the avatars. Its pixels are sRGB, uploaded when the revision changes (dirty is ignored). SONA_E_UNSUPPORTED where the backend has none (GL and Vulkan have it): the frame's clear shows instead. Otherwise as sona_renderer_overlay.",
   "doc": "A picture behind the avatars, as a page's backdrop behind a clear canvas: drawn first in the main pass at o->rect (w or h 0: the whole target), for every `sona_draw` and `sona_snapshot` until the next call; NULL takes it away. The frame's bloom runs over it as over the avatars. The editor draws 360sona.com's stage gradient this way. GL and Vulkan have it; on the other backends it returns `SONA_E_UNSUPPORTED` and the frame's clear shows.",
   "page": "Overlays",
   "anchor": "https://360sona.com/devs/docs/reference/c/overlays.html#sona_renderer_underlay"
  },
  {
   "name": "sona_screen_theme_defaults",
   "header": "sona.h",
   "section": "3.30 player screens: the quick creator and the wardrobe picker (Phase 4b)",
   "signature": "void sona_screen_theme_defaults(sona_screen_theme *t, uint32_t preset);",
   "returns": "void",
   "params": [
    {
     "name": "t",
     "type": "sona_screen_theme *"
    },
    {
     "name": "preset",
     "type": "uint32_t"
    }
   ],
   "comment": "SONA_THEME_DARK, ...",
   "doc": "`SONA_THEME_DARK`, `SONA_THEME_LIGHT` (the editor module's own palettes) or `SONA_THEME_CONTRAST` (black, white and yellow, with `SONA_THEME_HIGH_CONTRAST` set). `size` set, scale 1, corner 10.",
   "page": "Player screens: the quick creator and the wardrobe picker",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-screens.html#sona_screen_theme_defaults"
  },
  {
   "name": "sona_quick_defaults",
   "header": "sona.h",
   "section": "3.30 player screens: the quick creator and the wardrobe picker (Phase 4b)",
   "signature": "void sona_quick_defaults(sona_quick_options *o);",
   "returns": "void",
   "params": [
    {
     "name": "o",
     "type": "sona_quick_options *"
    }
   ],
   "comment": "",
   "doc": "`size` set, seed 1, 8 looks, both bodies, no flags. Set `catalogue` before opening.",
   "page": "Player screens: the quick creator and the wardrobe picker",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-screens.html#sona_quick_defaults"
  },
  {
   "name": "sona_quick_open",
   "header": "sona.h",
   "section": "3.30 player screens: the quick creator and the wardrobe picker (Phase 4b)",
   "signature": "sona_result sona_quick_open(sona_ctx *ctx, const sona_quick_options *o, sona_screen **out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "o",
     "type": "const sona_quick_options *"
    },
    {
     "name": "out",
     "type": "sona_screen **"
    }
   ],
   "comment": "The quick creator. SONA_E_ARGUMENT without a catalogue, SONA_E_NOT_FOUND when the catalogue (after the filter) has no hair, top, bottom or shoes for a body it needs. Looks start building at once.",
   "doc": "The quick creator; its eight looks start building at once, hidden from `sona_draw`. `SONA_E_ARGUMENT` without a catalogue, for `looks` outside 2..8 or `body` over 2; `SONA_E_NOT_FOUND` when the catalogue after the filter has no hair, clothes or shoes for a body it needs.",
   "page": "Player screens: the quick creator and the wardrobe picker",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-screens.html#sona_quick_open"
  },
  {
   "name": "sona_quick_look",
   "header": "sona.h",
   "section": "3.30 player screens: the quick creator and the wardrobe picker (Phase 4b)",
   "signature": "sona_result sona_quick_look(const sona_quick_options *o, uint32_t shuffle, uint32_t index, uint8_t manifest[SONA_MANIFEST_BYTES]);",
   "returns": "sona_result",
   "params": [
    {
     "name": "o",
     "type": "const sona_quick_options *"
    },
    {
     "name": "shuffle",
     "type": "uint32_t"
    },
    {
     "name": "index",
     "type": "uint32_t"
    },
    {
     "name": "manifest",
     "type": "uint8_t [SONA_MANIFEST_BYTES]"
    }
   ],
   "comment": "Look number index (0 based) of the set o's seed makes, without a screen. shuffle counts the X presses (0 for the first set). It is the manifest the screen shows unless the screen re-rolled that look because its ctx's sources lacked one of its items; a filter that keeps only what the sources hold leaves nothing to re-roll.",
   "doc": "Look `index` of the set the seed and `shuffle` (X presses so far) make, without a screen or a ctx: the same bytes the screen shows. A screen re-rolls a look whose items are missing from the sources; that one then differs. The editor module's `look` hook takes it in one line (the guide shows it).",
   "page": "Player screens: the quick creator and the wardrobe picker",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-screens.html#sona_quick_look"
  },
  {
   "name": "sona_wardrobe_defaults",
   "header": "sona.h",
   "section": "3.30 player screens: the quick creator and the wardrobe picker (Phase 4b)",
   "signature": "void sona_wardrobe_defaults(sona_wardrobe_options *o);",
   "returns": "void",
   "params": [
    {
     "name": "o",
     "type": "sona_wardrobe_options *"
    }
   ],
   "comment": "",
   "doc": "`size` set, `flags` `SONA_WARDROBE_STOCK`. Set `manifest` and `catalogue` before opening.",
   "page": "Player screens: the quick creator and the wardrobe picker",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-screens.html#sona_wardrobe_defaults"
  },
  {
   "name": "sona_wardrobe_open",
   "header": "sona.h",
   "section": "3.30 player screens: the quick creator and the wardrobe picker (Phase 4b)",
   "signature": "sona_result sona_wardrobe_open(sona_ctx *ctx, const sona_wardrobe_options *o, sona_screen **out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "o",
     "type": "const sona_wardrobe_options *"
    },
    {
     "name": "out",
     "type": "sona_screen **"
    }
   ],
   "comment": "The wardrobe picker. SONA_E_ARGUMENT without a manifest or catalogue, SONA_E_MANIFEST for a bad manifest.",
   "doc": "The wardrobe picker on the player's manifest. Its lists, outfits and names are copied. Only clothes change. `SONA_E_ARGUMENT` without a manifest or catalogue (or a count without its array), `SONA_E_MANIFEST` for a manifest that does not parse.",
   "page": "Player screens: the quick creator and the wardrobe picker",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-screens.html#sona_wardrobe_open"
  },
  {
   "name": "sona_screen_destroy",
   "header": "sona.h",
   "section": "3.30 player screens: the quick creator and the wardrobe picker (Phase 4b)",
   "signature": "void sona_screen_destroy(sona_screen *s);",
   "returns": "void",
   "params": [
    {
     "name": "s",
     "type": "sona_screen *"
    }
   ],
   "comment": "removes its avatars",
   "doc": "Removes the screen's avatars from the ctx and frees it. NULL does nothing.",
   "page": "Player screens: the quick creator and the wardrobe picker",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-screens.html#sona_screen_destroy"
  },
  {
   "name": "sona_screen_kind",
   "header": "sona.h",
   "section": "3.30 player screens: the quick creator and the wardrobe picker (Phase 4b)",
   "signature": "uint32_t sona_screen_kind(const sona_screen *s);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "s",
     "type": "const sona_screen *"
    }
   ],
   "comment": "",
   "doc": "`SONA_SCREEN_KIND_QUICK` or `SONA_SCREEN_KIND_WARDROBE`; 0 for NULL.",
   "page": "Player screens: the quick creator and the wardrobe picker",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-screens.html#sona_screen_kind"
  },
  {
   "name": "sona_screen_layout",
   "header": "sona.h",
   "section": "3.30 player screens: the quick creator and the wardrobe picker (Phase 4b)",
   "signature": "sona_result sona_screen_layout(sona_screen *s, uint32_t width, uint32_t height);",
   "returns": "sona_result",
   "params": [
    {
     "name": "s",
     "type": "sona_screen *"
    },
    {
     "name": "width",
     "type": "uint32_t"
    },
    {
     "name": "height",
     "type": "uint32_t"
    }
   ],
   "comment": "The host's size in pixels: a wide layout when width >= height, a tall one (phones) otherwise. Default 1280 x 720.",
   "doc": "The host's size in pixels, 64 to 16384 a side: a wide layout when `width >= height`, a tall one otherwise. Default 1280 x 720. May change at any time.",
   "page": "Player screens: the quick creator and the wardrobe picker",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-screens.html#sona_screen_layout"
  },
  {
   "name": "sona_screen_set_theme",
   "header": "sona.h",
   "section": "3.30 player screens: the quick creator and the wardrobe picker (Phase 4b)",
   "signature": "sona_result sona_screen_set_theme(sona_screen *s, const sona_screen_theme *t);",
   "returns": "sona_result",
   "params": [
    {
     "name": "s",
     "type": "sona_screen *"
    },
    {
     "name": "t",
     "type": "const sona_screen_theme *"
    }
   ],
   "comment": "",
   "doc": "Copies the theme; the next nodes use it.",
   "page": "Player screens: the quick creator and the wardrobe picker",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-screens.html#sona_screen_set_theme"
  },
  {
   "name": "sona_screen_input",
   "header": "sona.h",
   "section": "3.30 player screens: the quick creator and the wardrobe picker (Phase 4b)",
   "signature": "sona_result sona_screen_input(sona_screen *s, const sona_screen_event *in);",
   "returns": "sona_result",
   "params": [
    {
     "name": "s",
     "type": "sona_screen *"
    },
    {
     "name": "in",
     "type": "const sona_screen_event *"
    }
   ],
   "comment": "",
   "doc": "One event: `SONA_INPUT_PRESS` and `_RELEASE` of a `sona_screen_action`, pointer moves, presses and releases, scrolls, and the turn axis. Held directions and tabs repeat by themselves (after a set 0.36 s, then every 0.085 s) until released. `SONA_E_ARGUMENT` for a bad event; a finished screen ignores input.",
   "page": "Player screens: the quick creator and the wardrobe picker",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-screens.html#sona_screen_input"
  },
  {
   "name": "sona_screen_update",
   "header": "sona.h",
   "section": "3.30 player screens: the quick creator and the wardrobe picker (Phase 4b)",
   "signature": "sona_screen_status sona_screen_update(sona_screen *s, double dt_seconds);",
   "returns": "sona_screen_status",
   "params": [
    {
     "name": "s",
     "type": "sona_screen *"
    },
    {
     "name": "dt_seconds",
     "type": "double"
    }
   ],
   "comment": "Advances repeats, turning and the screen's avatars (call it after sona_update each frame) and says where the player is. A finished screen keeps answering its status.",
   "doc": "Repeats, turning, the screen's avatars (a rebuilt one replaces the shown one when READY) and the screen's own timers. Call it after `sona_update`. Returns `SONA_SCREEN_RUNNING`, `_DONE`, `_CANCELLED` or `_FINE_TUNE`, and keeps returning a finished status. NULL: `_CANCELLED`.",
   "page": "Player screens: the quick creator and the wardrobe picker",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-screens.html#sona_screen_update"
  },
  {
   "name": "sona_screen_nodes",
   "header": "sona.h",
   "section": "3.30 player screens: the quick creator and the wardrobe picker (Phase 4b)",
   "signature": "uint32_t sona_screen_nodes(sona_screen *s, sona_screen_node *out, uint32_t cap);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "s",
     "type": "sona_screen *"
    },
    {
     "name": "out",
     "type": "sona_screen_node *"
    },
    {
     "name": "cap",
     "type": "uint32_t"
    }
   ],
   "comment": "Up to cap nodes into out (may be NULL); returns how many there are.",
   "doc": "What to draw, in paint order, with roles, states, boxes in pixels, text and spoken labels; writes up to `cap` (`out` may be NULL) and returns how many there are. Strings live until the next call on the screen.",
   "page": "Player screens: the quick creator and the wardrobe picker",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-screens.html#sona_screen_nodes"
  },
  {
   "name": "sona_screen_announcement",
   "header": "sona.h",
   "section": "3.30 player screens: the quick creator and the wardrobe picker (Phase 4b)",
   "signature": "int sona_screen_announcement(sona_screen *s, char *out, size_t cap);",
   "returns": "int",
   "params": [
    {
     "name": "s",
     "type": "sona_screen *"
    },
    {
     "name": "out",
     "type": "char *"
    },
    {
     "name": "cap",
     "type": "size_t"
    }
   ],
   "comment": "The next thing a screen reader should say (focus moves, values, what changed), oldest first: 1 when written.",
   "doc": "The oldest thing a screen reader should say (eight are kept): 1 when one was written (cut at `cap`), 0 when none.",
   "page": "Player screens: the quick creator and the wardrobe picker",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-screens.html#sona_screen_announcement"
  },
  {
   "name": "sona_screen_result",
   "header": "sona.h",
   "section": "3.30 player screens: the quick creator and the wardrobe picker (Phase 4b)",
   "signature": "sona_result sona_screen_result(const sona_screen *s, uint8_t manifest[SONA_MANIFEST_BYTES]);",
   "returns": "sona_result",
   "params": [
    {
     "name": "s",
     "type": "const sona_screen *"
    },
    {
     "name": "manifest",
     "type": "uint8_t [SONA_MANIFEST_BYTES]"
    }
   ],
   "comment": "The avatar the player has now: the look picked (with its change), or the dressed avatar. Before a pick the quick creator answers SONA_E_NOT_READY.",
   "doc": "The avatar the player has now. The quick creator answers `SONA_E_NOT_READY` before a pick; a cancelled wardrobe answers the manifest it opened with.",
   "page": "Player screens: the quick creator and the wardrobe picker",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-screens.html#sona_screen_result"
  },
  {
   "name": "sona_screen_stats_get",
   "header": "sona.h",
   "section": "3.30 player screens: the quick creator and the wardrobe picker (Phase 4b)",
   "signature": "void sona_screen_stats_get(const sona_screen *s, sona_screen_stats *out);",
   "returns": "void",
   "params": [
    {
     "name": "s",
     "type": "const sona_screen *"
    },
    {
     "name": "out",
     "type": "sona_screen_stats *"
    }
   ],
   "comment": "",
   "doc": "Presses (repeats not counted), taps, changes, shuffles, focus moves, the seconds from open to finish and the presses of each action.",
   "page": "Player screens: the quick creator and the wardrobe picker",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-screens.html#sona_screen_stats_get"
  },
  {
   "name": "sona_screen_owns",
   "header": "sona.h",
   "section": "3.30 player screens: the quick creator and the wardrobe picker (Phase 4b)",
   "signature": "int sona_screen_owns(const sona_screen *s, const sona_avatar *a);",
   "returns": "int",
   "params": [
    {
     "name": "s",
     "type": "const sona_screen *"
    },
    {
     "name": "a",
     "type": "const sona_avatar *"
    }
   ],
   "comment": "1 when a belongs to the screen (its READY and FAILED events reach sona_poll_event like any avatar's).",
   "doc": "1 when `a` is one of the screen's avatars, for hosts that read `sona_poll_event`.",
   "page": "Player screens: the quick creator and the wardrobe picker",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-screens.html#sona_screen_owns"
  },
  {
   "name": "sona_screen_view_avatar",
   "header": "sona.h",
   "section": "3.30 player screens: the quick creator and the wardrobe picker (Phase 4b)",
   "signature": "sona_avatar * sona_screen_view_avatar(const sona_screen *s, int32_t view);",
   "returns": "sona_avatar *",
   "params": [
    {
     "name": "s",
     "type": "const sona_screen *"
    },
    {
     "name": "view",
     "type": "int32_t"
    }
   ],
   "comment": "Views: the avatar a LOOK, ITEM or VIEW node shows. NULL while it has none; it may change from frame to frame (a rebuilt look stays on the old avatar until the new one is READY).",
   "doc": "The avatar a node's `view` shows now, or NULL. It may change between frames.",
   "page": "Player screens: the quick creator and the wardrobe picker",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-screens.html#sona_screen_view_avatar"
  },
  {
   "name": "sona_screen_view_camera",
   "header": "sona.h",
   "section": "3.30 player screens: the quick creator and the wardrobe picker (Phase 4b)",
   "signature": "sona_result sona_screen_view_camera(sona_screen *s, int32_t view, uint32_t width, uint32_t height, sona_view *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "s",
     "type": "sona_screen *"
    },
    {
     "name": "view",
     "type": "int32_t"
    },
    {
     "name": "width",
     "type": "uint32_t"
    },
    {
     "name": "height",
     "type": "uint32_t"
    },
    {
     "name": "out",
     "type": "sona_view *"
    }
   ],
   "comment": "Its camera for a width x height picture, for drawing with the data API. SONA_E_NOT_READY before READY.",
   "doc": "The view's camera for a `width` x `height` picture (the figure fills the height, turned by the player), for hosts that draw through the data API. `SONA_E_NOT_READY` before READY.",
   "page": "Player screens: the quick creator and the wardrobe picker",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-screens.html#sona_screen_view_camera"
  },
  {
   "name": "sona_screen_view_draw",
   "header": "sona.h",
   "section": "3.30 player screens: the quick creator and the wardrobe picker (Phase 4b)",
   "signature": "sona_result sona_screen_view_draw(sona_renderer *r, sona_screen *s, int32_t view, const sona_target *target, const sona_draw_options *opts);",
   "returns": "sona_result",
   "params": [
    {
     "name": "r",
     "type": "sona_renderer *"
    },
    {
     "name": "s",
     "type": "sona_screen *"
    },
    {
     "name": "view",
     "type": "int32_t"
    },
    {
     "name": "target",
     "type": "const sona_target *"
    },
    {
     "name": "opts",
     "type": "const sona_draw_options *"
    }
   ],
   "comment": "sona_draw and sona_snapshot of that view alone. SONA_E_NOT_READY while it has nothing ready to draw.",
   "doc": "`sona_draw` of that view alone into `target`. `SONA_E_NOT_READY` while it has nothing to draw.",
   "page": "Player screens: the quick creator and the wardrobe picker",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-screens.html#sona_screen_view_draw"
  },
  {
   "name": "sona_screen_view_snapshot",
   "header": "sona.h",
   "section": "3.30 player screens: the quick creator and the wardrobe picker (Phase 4b)",
   "signature": "sona_result sona_screen_view_snapshot(sona_renderer *r, sona_screen *s, int32_t view, uint32_t width, uint32_t height, const sona_draw_options *opts, uint8_t *rgba_out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "r",
     "type": "sona_renderer *"
    },
    {
     "name": "s",
     "type": "sona_screen *"
    },
    {
     "name": "view",
     "type": "int32_t"
    },
    {
     "name": "width",
     "type": "uint32_t"
    },
    {
     "name": "height",
     "type": "uint32_t"
    },
    {
     "name": "opts",
     "type": "const sona_draw_options *"
    },
    {
     "name": "rgba_out",
     "type": "uint8_t *"
    }
   ],
   "comment": "",
   "doc": "`sona_snapshot` of that view alone, straight RGBA8.",
   "page": "Player screens: the quick creator and the wardrobe picker",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-screens.html#sona_screen_view_snapshot"
  },
  {
   "name": "sona_pick_defaults",
   "header": "sona.h",
   "section": "3.31 picking (1.2)",
   "signature": "void sona_pick_defaults(sona_pick_options *o);",
   "returns": "void",
   "params": [
    {
     "name": "o",
     "type": "sona_pick_options *"
    }
   ],
   "comment": "",
   "doc": "`size` set, everything else 0: visible avatars in view, front faces, the alpha test, props, no distance limit. NULL does nothing.",
   "page": "Picking",
   "anchor": "https://360sona.com/devs/docs/reference/c/picking.html#sona_pick_defaults"
  },
  {
   "name": "sona_view_ray",
   "header": "sona.h",
   "section": "3.31 picking (1.2)",
   "signature": "sona_result sona_view_ray(const sona_view *v, double x, double y, float origin[3], float dir[3]);",
   "returns": "sona_result",
   "params": [
    {
     "name": "v",
     "type": "const sona_view *"
    },
    {
     "name": "x",
     "type": "double"
    },
    {
     "name": "y",
     "type": "double"
    },
    {
     "name": "origin",
     "type": "float [3]"
    },
    {
     "name": "dir",
     "type": "float [3]"
    }
   ],
   "comment": "The ray through the point (x, y) of the view's picture, in pixels from its top left (a pixel's centre is + 0.5): origin on the near plane, dir of length 1. Pure. SONA_E_ARGUMENT for a view with no size.",
   "doc": "The ray through the point (x, y) of the view's picture, in pixels from its top left (a pixel's centre is + 0.5): `origin` on the near plane, `dir` of length 1. Pure. `SONA_E_ARGUMENT` for a view with no size or a NULL pointer.",
   "page": "Picking",
   "anchor": "https://360sona.com/devs/docs/reference/c/picking.html#sona_view_ray"
  },
  {
   "name": "sona_pick_ray",
   "header": "sona.h",
   "section": "3.31 picking (1.2)",
   "signature": "sona_result sona_pick_ray(sona_ctx *ctx, const float origin[3], const float dir[3], const sona_pick_options *o, sona_pick_hit *hit);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "origin",
     "type": "const float [3]"
    },
    {
     "name": "dir",
     "type": "const float [3]"
    },
    {
     "name": "o",
     "type": "const sona_pick_options *"
    },
    {
     "name": "hit",
     "type": "sona_pick_hit *"
    }
   ],
   "comment": "The nearest hit. SONA_OK with *hit set, SONA_E_NOT_FOUND when the ray hits nothing. o may be NULL (defaults). Sprites are met as the last sona_update's view faces them.",
   "doc": "The nearest hit. `SONA_OK` with `*hit` set, `SONA_E_NOT_FOUND` when nothing is hit (`*hit` then has `size` set and `mesh`, `prop` and `joint` at -1). `o` may be NULL. `dir` need not be unit length; `distance` is in metres along it. Sprites are met as the last `sona_update`'s view faces them. `SONA_E_ARGUMENT` for a zero or non-finite ray, a `size` too small, a negative `max_distance` or `ignore_count` without `ignore`.",
   "page": "Picking",
   "anchor": "https://360sona.com/devs/docs/reference/c/picking.html#sona_pick_ray"
  },
  {
   "name": "sona_pick_screen",
   "header": "sona.h",
   "section": "3.31 picking (1.2)",
   "signature": "sona_result sona_pick_screen(sona_ctx *ctx, const sona_view *v, double x, double y, const sona_pick_options *o, sona_pick_hit *hit);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "v",
     "type": "const sona_view *"
    },
    {
     "name": "x",
     "type": "double"
    },
    {
     "name": "y",
     "type": "double"
    },
    {
     "name": "o",
     "type": "const sona_pick_options *"
    },
    {
     "name": "hit",
     "type": "sona_pick_hit *"
    }
   ],
   "comment": "sona_view_ray then sona_pick_ray, with the sprites facing this view.",
   "doc": "`sona_view_ray` then `sona_pick_ray`, with the sprites facing this view.",
   "page": "Picking",
   "anchor": "https://360sona.com/devs/docs/reference/c/picking.html#sona_pick_screen"
  },
  {
   "name": "sona_pick_ray_all",
   "header": "sona.h",
   "section": "3.31 picking (1.2)",
   "signature": "uint32_t sona_pick_ray_all(sona_ctx *ctx, const float origin[3], const float dir[3], const sona_pick_options *o, sona_pick_hit *out, uint32_t cap);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "origin",
     "type": "const float [3]"
    },
    {
     "name": "dir",
     "type": "const float [3]"
    },
    {
     "name": "o",
     "type": "const sona_pick_options *"
    },
    {
     "name": "out",
     "type": "sona_pick_hit *"
    },
    {
     "name": "cap",
     "type": "uint32_t"
    }
   ],
   "comment": "Every avatar the ray hits, each at its nearest hit, nearest first. Returns how many avatars it hits; writes up to cap of them.",
   "doc": "Every avatar the ray hits, each at its nearest hit, nearest first. Returns how many avatars it hits and writes up to `cap` of them (`cap` 0 and `out` NULL only count). 0 on a bad argument.",
   "page": "Picking",
   "anchor": "https://360sona.com/devs/docs/reference/c/picking.html#sona_pick_ray_all"
  },
  {
   "name": "sona_avatar_pick",
   "header": "sona.h",
   "section": "3.31 picking (1.2)",
   "signature": "sona_result sona_avatar_pick(sona_avatar *a, const float origin[3], const float dir[3], const sona_pick_options *o, sona_pick_hit *hit);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "origin",
     "type": "const float [3]"
    },
    {
     "name": "dir",
     "type": "const float [3]"
    },
    {
     "name": "o",
     "type": "const sona_pick_options *"
    },
    {
     "name": "hit",
     "type": "sona_pick_hit *"
    }
   ],
   "comment": "The ray against one avatar (its hidden and culled flags and o->ignore do not apply).",
   "doc": "The ray against one avatar; its hidden and culled flags and `o->ignore` do not apply. `SONA_E_NOT_READY` before it is READY and posed, `SONA_E_DESTROYED` once removed.",
   "page": "Picking",
   "anchor": "https://360sona.com/devs/docs/reference/c/picking.html#sona_avatar_pick"
  },
  {
   "name": "sona_region_name",
   "header": "sona.h",
   "section": "3.31 picking (1.2)",
   "signature": "const char * sona_region_name(uint32_t region);",
   "returns": "const char *",
   "params": [
    {
     "name": "region",
     "type": "uint32_t"
    }
   ],
   "comment": "\"head\", \"leftHand\", ...; NULL past the last",
   "doc": "`\"none\"`, `\"head\"`, `\"neck\"`, `\"torso\"`, `\"hips\"`, `\"leftArm\"`, `\"rightArm\"`, `\"leftHand\"`, `\"rightHand\"`, `\"leftLeg\"`, `\"rightLeg\"`, `\"leftFoot\"`, `\"rightFoot\"`; NULL past the last.",
   "page": "Picking",
   "anchor": "https://360sona.com/devs/docs/reference/c/picking.html#sona_region_name"
  },
  {
   "name": "sona_pick_gpu",
   "header": "sona.h",
   "section": "3.31 picking (1.2)",
   "signature": "sona_result sona_pick_gpu(sona_renderer *r, const sona_view *v, double x, double y, const sona_pick_options *o, sona_pick_hit *hit);",
   "returns": "sona_result",
   "params": [
    {
     "name": "r",
     "type": "sona_renderer *"
    },
    {
     "name": "v",
     "type": "const sona_view *"
    },
    {
     "name": "x",
     "type": "double"
    },
    {
     "name": "y",
     "type": "double"
    },
    {
     "name": "o",
     "type": "const sona_pick_options *"
    },
    {
     "name": "hit",
     "type": "sona_pick_hit *"
    }
   ],
   "comment": "The GPU id buffer (Vulkan, GL, GLES, D3D11, D3D12, Metal and Xenos; SONA_E_UNSUPPORTED elsewhere). The avatars whose sphere the ray meets are drawn once more with an id per draw into a small target of their own around the point, read back (on Vulkan this submits on the device's queue and waits, as sona_snapshot does), and the hit is finished on the CPU on the one mesh found. Sprite avatars are tested on the CPU and the nearer hit wins.",
   "doc": "The pick through the id buffer: the avatars whose sphere the ray meets are drawn once more, each draw writing its index, into a one-pixel target of the pass's own under a projection of that pixel; the backend reads it back (on Vulkan this submits on the device's queue and waits, as `sona_snapshot` does) and the hit is finished on the CPU on the one mesh found (`SONA_PICK_HIT_GPU` set). Sprite avatars are picked on the CPU and the nearer hit wins. `SONA_E_UNSUPPORTED` on D3D11, D3D12, Metal and Xenos. With `SONA_PICK_BOUNDS` it is the CPU pick.",
   "page": "Picking",
   "anchor": "https://360sona.com/devs/docs/reference/c/picking.html#sona_pick_gpu"
  },
  {
   "name": "sona_pick_gpu_ids",
   "header": "sona.h",
   "section": "3.31 picking (1.2)",
   "signature": "sona_result sona_pick_gpu_ids(sona_renderer *r, const sona_view *v, uint32_t x, uint32_t y, uint32_t w, uint32_t h, const sona_pick_options *o, uint32_t *avatar_ids, uint16_t *meshes);",
   "returns": "sona_result",
   "params": [
    {
     "name": "r",
     "type": "sona_renderer *"
    },
    {
     "name": "v",
     "type": "const sona_view *"
    },
    {
     "name": "x",
     "type": "uint32_t"
    },
    {
     "name": "y",
     "type": "uint32_t"
    },
    {
     "name": "w",
     "type": "uint32_t"
    },
    {
     "name": "h",
     "type": "uint32_t"
    },
    {
     "name": "o",
     "type": "const sona_pick_options *"
    },
    {
     "name": "avatar_ids",
     "type": "uint32_t *"
    },
    {
     "name": "meshes",
     "type": "uint16_t *"
    }
   ],
   "comment": "The id buffer of the region (x, y, w, h) of the view's picture: per pixel, row 0 at the top, the avatar id drawn there (0: none) and, when meshes is not NULL, its mesh index + 1. At most 4096 x 4096 pixels.",
   "doc": "The id buffer of the region (x, y, w, h) of the view's picture, at most 4096 x 4096 and inside the view: per pixel, row 0 at the top, the avatar id drawn there (0: none) and, when `meshes` is not NULL, its mesh index + 1. Every drawable avatar in the region is drawn, sprite avatars as their meshes in their held pose. For selection outlines and editors.",
   "page": "Picking",
   "anchor": "https://360sona.com/devs/docs/reference/c/picking.html#sona_pick_gpu_ids"
  },
  {
   "name": "sona_prop_part_defaults",
   "header": "sona.h",
   "section": "3.32 props: held and worn objects (1.3)",
   "signature": "void sona_prop_part_defaults(sona_prop_part *p);",
   "returns": "void",
   "params": [
    {
     "name": "p",
     "type": "sona_prop_part *"
    }
   ],
   "comment": "",
   "doc": "`size` set; `colour` 0xffffffff.",
   "page": "Props: held and worn objects",
   "anchor": "https://360sona.com/devs/docs/reference/c/props-held-and-worn-objects.html#sona_prop_part_defaults"
  },
  {
   "name": "sona_prop_load_defaults",
   "header": "sona.h",
   "section": "3.32 props: held and worn objects (1.3)",
   "signature": "void sona_prop_load_defaults(sona_prop_load_options *o);",
   "returns": "void",
   "params": [
    {
     "name": "o",
     "type": "sona_prop_load_options *"
    }
   ],
   "comment": "",
   "doc": "`size` set; `scale` 1.",
   "page": "Props: held and worn objects",
   "anchor": "https://360sona.com/devs/docs/reference/c/props-held-and-worn-objects.html#sona_prop_load_defaults"
  },
  {
   "name": "sona_prop_mesh_create",
   "header": "sona.h",
   "section": "3.32 props: held and worn objects (1.3)",
   "signature": "sona_result sona_prop_mesh_create(sona_ctx *ctx, const sona_prop_part *parts, uint32_t count, sona_prop_mesh **out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "parts",
     "type": "const sona_prop_part *"
    },
    {
     "name": "count",
     "type": "uint32_t"
    },
    {
     "name": "out",
     "type": "sona_prop_mesh **"
    }
   ],
   "comment": "A mesh from the host's triangles; the data is copied. SONA_E_ARGUMENT for a bad part, SONA_E_LIMIT past 64 parts.",
   "doc": "A mesh from the host's triangles; the data is copied. `SONA_E_ARGUMENT` for a bad part, `SONA_E_LIMIT` past 64 parts.",
   "page": "Props: held and worn objects",
   "anchor": "https://360sona.com/devs/docs/reference/c/props-held-and-worn-objects.html#sona_prop_mesh_create"
  },
  {
   "name": "sona_prop_mesh_load",
   "header": "sona.h",
   "section": "3.32 props: held and worn objects (1.3)",
   "signature": "sona_result sona_prop_mesh_load(sona_ctx *ctx, const void *bytes, size_t len, const sona_prop_load_options *o, sona_prop_mesh **out, char *why, size_t why_cap);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "bytes",
     "type": "const void *"
    },
    {
     "name": "len",
     "type": "size_t"
    },
    {
     "name": "o",
     "type": "const sona_prop_load_options *"
    },
    {
     "name": "out",
     "type": "sona_prop_mesh **"
    },
    {
     "name": "why",
     "type": "char *"
    },
    {
     "name": "why_cap",
     "type": "size_t"
    }
   ],
   "comment": "A glTF 2.0 file (.glb, or .gltf with its buffers embedded) as a prop: every triangle primitive of the scene's nodes, their transforms applied, one part per primitive with its base colour (factor, texture, vertex colours), alpha mode BLEND as transparent, +Y up, z negated into the avatar's left-handed space (the same mirror as the glTF export and the clip importer). Skins and morph targets are ignored (the bind pose is drawn). Images are PNG or JPEG. why (may be NULL) gets the reason for a refusal: SONA_E_CORRUPT, SONA_E_UNSUPPORTED (this build reads no glTF), SONA_E_LIMIT (a primitive over 65536 vertices or 64 parts), SONA_E_NOT_FOUND (no triangles). o may be NULL.",
   "doc": "A glTF 2.0 file (.glb, or .gltf with its buffers embedded) as a prop: every triangle primitive of the scene's nodes, their transforms applied, one part per primitive with its base colour (factor, texture, vertex colours), alpha mode BLEND as transparent, +Y up, z negated into the avatar's left-handed space (the same mirror as the glTF export and the clip importer). Skins and morph targets are ignored (the bind pose is drawn). Images are PNG or JPEG. why (may be NULL) gets the reason for a refusal: `SONA_E_CORRUPT`, `SONA_E_UNSUPPORTED` (this build reads no glTF), `SONA_E_LIMIT` (a primitive over 65536 vertices or 64 parts), `SONA_E_NOT_FOUND` (no triangles). o may be NULL.",
   "page": "Props: held and worn objects",
   "anchor": "https://360sona.com/devs/docs/reference/c/props-held-and-worn-objects.html#sona_prop_mesh_load"
  },
  {
   "name": "sona_prop_mesh_open",
   "header": "sona.h",
   "section": "3.32 props: held and worn objects (1.3)",
   "signature": "sona_result sona_prop_mesh_open(sona_ctx *ctx, const char *path, const sona_prop_load_options *o, sona_prop_mesh **out, char *why, size_t why_cap);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "path",
     "type": "const char *"
    },
    {
     "name": "o",
     "type": "const sona_prop_load_options *"
    },
    {
     "name": "out",
     "type": "sona_prop_mesh **"
    },
    {
     "name": "why",
     "type": "char *"
    },
    {
     "name": "why_cap",
     "type": "size_t"
    }
   ],
   "comment": "The same from a path (UTF-8): a .gltf's buffers and images next to it are read too. SONA_E_IO when it cannot be read.",
   "doc": "The same from a path (UTF-8): a .gltf's buffers and images next to it are read too. `SONA_E_IO` when it cannot be read.",
   "page": "Props: held and worn objects",
   "anchor": "https://360sona.com/devs/docs/reference/c/props-held-and-worn-objects.html#sona_prop_mesh_open"
  },
  {
   "name": "sona_prop_mesh_stock",
   "header": "sona.h",
   "section": "3.32 props: held and worn objects (1.3)",
   "signature": "sona_result sona_prop_mesh_stock(sona_ctx *ctx, const char *item_id, sona_prop_mesh **out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "item_id",
     "type": "const char *"
    },
    {
     "name": "out",
     "type": "sona_prop_mesh **"
    }
   ],
   "comment": "A stock prop item (a carryable: mask 0x1000, such as the pets of sona_prop_pet) with its own skeleton and clip, read through the ctx's sources like a worn item. Returns at once; sona_prop_mesh_state is SONA_PENDING until it has loaded. It can be attached meanwhile and is drawn once it is ready. Attached with SONA_PROP_JOINT_AUTO it sits as the site's held props do: in the hand its clip grips it in at its grip frame, or, for one no hand holds (most pets), where its clip puts it beside the avatar. SONA_E_ARGUMENT for an id that is not a prop item.",
   "doc": "A stock prop item (a carryable: mask 0x1000, such as the pets of `sona_prop_pet`) with its own skeleton and clip, read through the ctx's sources like a worn item. Returns at once; `sona_prop_mesh_state` is `SONA_PENDING` until it has loaded. It can be attached meanwhile and is drawn once it is ready. Attached with `SONA_PROP_JOINT_AUTO` it sits as the site's held props do: in the hand its clip grips it in at its grip frame, or, for one no hand holds (most pets), where its clip puts it beside the avatar. `SONA_E_ARGUMENT` for an id that is not a prop item.",
   "page": "Props: held and worn objects",
   "anchor": "https://360sona.com/devs/docs/reference/c/props-held-and-worn-objects.html#sona_prop_mesh_stock"
  },
  {
   "name": "sona_prop_mesh_state",
   "header": "sona.h",
   "section": "3.32 props: held and worn objects (1.3)",
   "signature": "sona_result sona_prop_mesh_state(const sona_prop_mesh *m);",
   "returns": "sona_result",
   "params": [
    {
     "name": "m",
     "type": "const sona_prop_mesh *"
    }
   ],
   "comment": "SONA_OK, SONA_PENDING, or why it failed (SONA_E_NOT_FOUND: no source has it).",
   "doc": "`SONA_OK`, `SONA_PENDING`, or why it failed (`SONA_E_NOT_FOUND`: no source has it).",
   "page": "Props: held and worn objects",
   "anchor": "https://360sona.com/devs/docs/reference/c/props-held-and-worn-objects.html#sona_prop_mesh_state"
  },
  {
   "name": "sona_prop_mesh_release",
   "header": "sona.h",
   "section": "3.32 props: held and worn objects (1.3)",
   "signature": "void sona_prop_mesh_release(sona_prop_mesh *m);",
   "returns": "void",
   "params": [
    {
     "name": "m",
     "type": "sona_prop_mesh *"
    }
   ],
   "comment": "The host's reference goes; avatars it is attached to keep it until they detach it.",
   "doc": "The host's reference goes; avatars it is attached to keep it until they detach it.",
   "page": "Props: held and worn objects",
   "anchor": "https://360sona.com/devs/docs/reference/c/props-held-and-worn-objects.html#sona_prop_mesh_release"
  },
  {
   "name": "sona_prop_mesh_info_get",
   "header": "sona.h",
   "section": "3.32 props: held and worn objects (1.3)",
   "signature": "sona_result sona_prop_mesh_info_get(const sona_prop_mesh *m, sona_prop_mesh_info *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "m",
     "type": "const sona_prop_mesh *"
    },
    {
     "name": "out",
     "type": "sona_prop_mesh_info *"
    }
   ],
   "comment": "SONA_PENDING (only kind and item set) until the mesh is ready.",
   "doc": "`SONA_PENDING` (only kind and item set) until the mesh is ready.",
   "page": "Props: held and worn objects",
   "anchor": "https://360sona.com/devs/docs/reference/c/props-held-and-worn-objects.html#sona_prop_mesh_info_get"
  },
  {
   "name": "sona_prop_mesh_data",
   "header": "sona.h",
   "section": "3.32 props: held and worn objects (1.3)",
   "signature": "sona_result sona_prop_mesh_data(const sona_prop_mesh *m, sona_prop_data *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "m",
     "type": "const sona_prop_mesh *"
    },
    {
     "name": "out",
     "type": "sona_prop_data *"
    }
   ],
   "comment": "SONA_PENDING until ready",
   "doc": "`SONA_PENDING` until ready.",
   "page": "Props: held and worn objects",
   "anchor": "https://360sona.com/devs/docs/reference/c/props-held-and-worn-objects.html#sona_prop_mesh_data"
  },
  {
   "name": "sona_prop_attach_defaults",
   "header": "sona.h",
   "section": "3.32 props: held and worn objects (1.3)",
   "signature": "void sona_prop_attach_defaults(sona_prop_attach *o);",
   "returns": "void",
   "params": [
    {
     "name": "o",
     "type": "sona_prop_attach *"
    }
   ],
   "comment": "",
   "doc": "`size` set; `position` 0, `rotation` 0 0 0 1, `scale` 1, `hand_weight` 1, `fade_seconds` 0.2, `speed` 1.",
   "page": "Props: held and worn objects",
   "anchor": "https://360sona.com/devs/docs/reference/c/props-held-and-worn-objects.html#sona_prop_attach_defaults"
  },
  {
   "name": "sona_avatar_prop_attach",
   "header": "sona.h",
   "section": "3.32 props: held and worn objects (1.3)",
   "signature": "sona_result sona_avatar_prop_attach(sona_avatar *a, sona_prop_mesh *m, const sona_prop_attach *o, uint32_t *id);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "m",
     "type": "sona_prop_mesh *"
    },
    {
     "name": "o",
     "type": "const sona_prop_attach *"
    },
    {
     "name": "id",
     "type": "uint32_t *"
    }
   ],
   "comment": "Attaches m to the avatar (READY or not; a prop on an avatar that is not READY waits for it). *id (may be NULL) names it on this avatar from then on. The hand, when set, takes that hand's IK target (sona_avatar_ik_target) while the prop has it. NULL o: defaults. SONA_E_LIMIT past SONA_PROP_MAX; SONA_E_ARGUMENT for a bad size, flag, joint, hand, quaternion or scale, or a mesh of another ctx.",
   "doc": "Attaches m to the avatar (READY or not; a prop on an avatar that is not READY waits for it). *id (may be NULL) names it on this avatar from then on. The hand, when set, takes that hand's IK target (`sona_avatar_ik_target`) while the prop has it. NULL o: defaults. `SONA_E_LIMIT` past `SONA_PROP_MAX`; `SONA_E_ARGUMENT` for a bad size, flag, joint, hand, quaternion or scale, or a mesh of another ctx.",
   "page": "Props: held and worn objects",
   "anchor": "https://360sona.com/devs/docs/reference/c/props-held-and-worn-objects.html#sona_avatar_prop_attach"
  },
  {
   "name": "sona_avatar_prop_set",
   "header": "sona.h",
   "section": "3.32 props: held and worn objects (1.3)",
   "signature": "sona_result sona_avatar_prop_set(sona_avatar *a, uint32_t id, const sona_prop_attach *o);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "id",
     "type": "uint32_t"
    },
    {
     "name": "o",
     "type": "const sona_prop_attach *"
    }
   ],
   "comment": "New placement, flags or hand for an attached prop (each frame for one that moves on the joint).",
   "doc": "New placement, flags or hand for an attached prop (each frame for one that moves on the joint).",
   "page": "Props: held and worn objects",
   "anchor": "https://360sona.com/devs/docs/reference/c/props-held-and-worn-objects.html#sona_avatar_prop_set"
  },
  {
   "name": "sona_avatar_prop_swap",
   "header": "sona.h",
   "section": "3.32 props: held and worn objects (1.3)",
   "signature": "sona_result sona_avatar_prop_swap(sona_avatar *a, uint32_t id, sona_prop_mesh *m);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "id",
     "type": "uint32_t"
    },
    {
     "name": "m",
     "type": "sona_prop_mesh *"
    }
   ],
   "comment": "Another mesh in the same place: a sword for a stick, an item for a placeholder. The prop clock starts again.",
   "doc": "Another mesh in the same place: a sword for a stick, an item for a placeholder. The prop clock starts again.",
   "page": "Props: held and worn objects",
   "anchor": "https://360sona.com/devs/docs/reference/c/props-held-and-worn-objects.html#sona_avatar_prop_swap"
  },
  {
   "name": "sona_avatar_prop_get",
   "header": "sona.h",
   "section": "3.32 props: held and worn objects (1.3)",
   "signature": "sona_result sona_avatar_prop_get(const sona_avatar *a, uint32_t id, sona_prop_attach *out, sona_prop_mesh **mesh);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "const sona_avatar *"
    },
    {
     "name": "id",
     "type": "uint32_t"
    },
    {
     "name": "out",
     "type": "sona_prop_attach *"
    },
    {
     "name": "mesh",
     "type": "sona_prop_mesh **"
    }
   ],
   "comment": "What the prop was attached with, and its mesh (either may be NULL). SONA_E_NOT_FOUND for an id it does not have.",
   "doc": "What the prop was attached with, and its mesh (either may be NULL). `SONA_E_NOT_FOUND` for an id it does not have.",
   "page": "Props: held and worn objects",
   "anchor": "https://360sona.com/devs/docs/reference/c/props-held-and-worn-objects.html#sona_avatar_prop_get"
  },
  {
   "name": "sona_avatar_prop_detach",
   "header": "sona.h",
   "section": "3.32 props: held and worn objects (1.3)",
   "signature": "sona_result sona_avatar_prop_detach(sona_avatar *a, uint32_t id);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "id",
     "type": "uint32_t"
    }
   ],
   "comment": "Takes the prop off at once (its hand's IK target eases off). SONA_E_NOT_FOUND for an id it does not have.",
   "doc": "Takes the prop off at once (its hand's IK target eases off). `SONA_E_NOT_FOUND` for an id it does not have.",
   "page": "Props: held and worn objects",
   "anchor": "https://360sona.com/devs/docs/reference/c/props-held-and-worn-objects.html#sona_avatar_prop_detach"
  },
  {
   "name": "sona_avatar_prop_detach_all",
   "header": "sona.h",
   "section": "3.32 props: held and worn objects (1.3)",
   "signature": "void sona_avatar_prop_detach_all(sona_avatar *a);",
   "returns": "void",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    }
   ],
   "comment": "",
   "doc": "Takes every prop off the avatar at once.",
   "page": "Props: held and worn objects",
   "anchor": "https://360sona.com/devs/docs/reference/c/props-held-and-worn-objects.html#sona_avatar_prop_detach_all"
  },
  {
   "name": "sona_avatar_prop_list",
   "header": "sona.h",
   "section": "3.32 props: held and worn objects (1.3)",
   "signature": "uint32_t sona_avatar_prop_list(const sona_avatar *a, uint32_t *ids, uint32_t max);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "a",
     "type": "const sona_avatar *"
    },
    {
     "name": "ids",
     "type": "uint32_t *"
    },
    {
     "name": "max",
     "type": "uint32_t"
    }
   ],
   "comment": "The ids of the avatar's props in attach order: writes up to max (ids may be NULL), returns how many it has.",
   "doc": "The ids of the avatar's props in attach order: writes up to max (ids may be NULL), returns how many it has.",
   "page": "Props: held and worn objects",
   "anchor": "https://360sona.com/devs/docs/reference/c/props-held-and-worn-objects.html#sona_avatar_prop_list"
  },
  {
   "name": "sona_avatar_prop_frame",
   "header": "sona.h",
   "section": "3.32 props: held and worn objects (1.3)",
   "signature": "sona_result sona_avatar_prop_frame(const sona_avatar *a, uint32_t id, sona_prop_frame *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "const sona_avatar *"
    },
    {
     "name": "id",
     "type": "uint32_t"
    },
    {
     "name": "out",
     "type": "sona_prop_frame *"
    }
   ],
   "comment": "",
   "doc": "Where an attached prop is this frame: the joint it is on, the time into its own clip, its frame in the world and in avatar space, how far the second hand is from its point on the prop (metres), and the palette of a skinned prop, valid until the next `sona_update`.",
   "page": "Props: held and worn objects",
   "anchor": "https://360sona.com/devs/docs/reference/c/props-held-and-worn-objects.html#sona_avatar_prop_frame"
  },
  {
   "name": "sona_avatar_prop_vertices",
   "header": "sona.h",
   "section": "3.32 props: held and worn objects (1.3)",
   "signature": "sona_result sona_avatar_prop_vertices(sona_avatar *a, uint32_t id, uint32_t mesh, uint32_t space, float *positions, float *normals, size_t stride_floats);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "id",
     "type": "uint32_t"
    },
    {
     "name": "mesh",
     "type": "uint32_t"
    },
    {
     "name": "space",
     "type": "uint32_t"
    },
    {
     "name": "positions",
     "type": "float *"
    },
    {
     "name": "normals",
     "type": "float *"
    },
    {
     "name": "stride_floats",
     "type": "size_t"
    }
   ],
   "comment": "sona_pose_vertices for one of the prop's meshes (sona_prop_data.meshes): CPU skinning, SONA_SPACE_AVATAR or _WORLD. SONA_E_NOT_READY before it has been posed with a ready mesh.",
   "doc": "`sona_pose_vertices` for one of the prop's meshes (`sona_prop_data`.meshes): CPU skinning, `SONA_SPACE_AVATAR` or _WORLD. `SONA_E_NOT_READY` before it has been posed with a ready mesh.",
   "page": "Props: held and worn objects",
   "anchor": "https://360sona.com/devs/docs/reference/c/props-held-and-worn-objects.html#sona_avatar_prop_vertices"
  },
  {
   "name": "sona_prop_pet_count",
   "header": "sona.h",
   "section": "3.32 props: held and worn objects (1.3)",
   "signature": "uint32_t sona_prop_pet_count(void);",
   "returns": "uint32_t",
   "params": [],
   "comment": "The catalogue's pets, as the site's pet mode lists them (server/pets.json): stock prop items that are animals or creature companions, for sona_prop_mesh_stock.",
   "doc": "How many of the catalogue's pets there are: stock prop items that are animals or creature companions, as the site's pet mode lists them, for `sona_prop_mesh_stock`.",
   "page": "Props: held and worn objects",
   "anchor": "https://360sona.com/devs/docs/reference/c/props-held-and-worn-objects.html#sona_prop_pet_count"
  },
  {
   "name": "sona_prop_pet",
   "header": "sona.h",
   "section": "3.32 props: held and worn objects (1.3)",
   "signature": "sona_result sona_prop_pet(uint32_t index, sona_guid *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "index",
     "type": "uint32_t"
    },
    {
     "name": "out",
     "type": "sona_guid *"
    }
   ],
   "comment": "SONA_E_ARGUMENT past the last",
   "doc": "`SONA_E_ARGUMENT` past the last.",
   "page": "Props: held and worn objects",
   "anchor": "https://360sona.com/devs/docs/reference/c/props-held-and-worn-objects.html#sona_prop_pet"
  },
  {
   "name": "sona_prop_is_pet",
   "header": "sona.h",
   "section": "3.32 props: held and worn objects (1.3)",
   "signature": "int sona_prop_is_pet(const char *item_id);",
   "returns": "int",
   "params": [
    {
     "name": "item_id",
     "type": "const char *"
    }
   ],
   "comment": "",
   "doc": "1 when the item id is one of the pets.",
   "page": "Props: held and worn objects",
   "anchor": "https://360sona.com/devs/docs/reference/c/props-held-and-worn-objects.html#sona_prop_is_pet"
  },
  {
   "name": "sona_ragdoll_defaults",
   "header": "sona.h",
   "section": "3.33 physics-ready avatars: colliders, joint limits and the ragdoll handoff (1.2)",
   "signature": "void sona_ragdoll_defaults(sona_ragdoll_options *o);",
   "returns": "void",
   "params": [
    {
     "name": "o",
     "type": "sona_ragdoll_options *"
    }
   ],
   "comment": "",
   "doc": "`size` set; `coverage` 0.9.",
   "page": "Ragdolls",
   "anchor": "https://360sona.com/devs/docs/reference/c/ragdolls.html#sona_ragdoll_defaults"
  },
  {
   "name": "sona_avatar_ragdoll",
   "header": "sona.h",
   "section": "3.33 physics-ready avatars: colliders, joint limits and the ragdoll handoff (1.2)",
   "signature": "sona_result sona_avatar_ragdoll(sona_avatar *a, const sona_ragdoll_options *o, sona_ragdoll_body *out, uint32_t cap, uint32_t *count);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "o",
     "type": "const sona_ragdoll_options *"
    },
    {
     "name": "out",
     "type": "sona_ragdoll_body *"
    },
    {
     "name": "cap",
     "type": "uint32_t"
    },
    {
     "name": "count",
     "type": "uint32_t *"
    }
   ],
   "comment": "Fits the bodies to the avatar as it is now (its rig, body shape and outfit) and writes up to cap of them; count (may be NULL) gets SONA_RAGDOLL_BODIES. The same avatar and options give the same bits. From this call on, each pose keeps the bodies' last two transforms for sona_avatar_ragdoll_state. SONA_E_NOT_READY before the avatar is READY and posed; SONA_E_ARGUMENT for a bad size, flag, mass or coverage.",
   "doc": "Fits the bodies to the avatar as it is now (its rig, body shape and outfit) and writes up to cap of them; count (may be NULL) gets `SONA_RAGDOLL_BODIES`. The same avatar and options give the same bits. From this call on, each pose keeps the bodies' last two transforms for `sona_avatar_ragdoll_state`. `SONA_E_NOT_READY` before the avatar is READY and posed; `SONA_E_ARGUMENT` for a bad size, flag, mass or coverage.",
   "page": "Ragdolls",
   "anchor": "https://360sona.com/devs/docs/reference/c/ragdolls.html#sona_avatar_ragdoll"
  },
  {
   "name": "sona_avatar_ragdoll_state",
   "header": "sona.h",
   "section": "3.33 physics-ready avatars: colliders, joint limits and the ragdoll handoff (1.2)",
   "signature": "sona_result sona_avatar_ragdoll_state(const sona_avatar *a, sona_ragdoll_state *out, uint32_t cap, uint32_t *count);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "const sona_avatar *"
    },
    {
     "name": "out",
     "type": "sona_ragdoll_state *"
    },
    {
     "name": "cap",
     "type": "uint32_t"
    },
    {
     "name": "count",
     "type": "uint32_t *"
    }
   ],
   "comment": "The bodies at the last pose, with velocities from the last two poses (on the scene clock; zero until there have been two). For the host's bodies when it takes over. SONA_E_NOT_READY before sona_avatar_ragdoll.",
   "doc": "The bodies at the last pose, with velocities from the last two poses (on the scene clock; zero until there have been two). For the host's bodies when it takes over. `SONA_E_NOT_READY` before `sona_avatar_ragdoll`.",
   "page": "Ragdolls",
   "anchor": "https://360sona.com/devs/docs/reference/c/ragdolls.html#sona_avatar_ragdoll_state"
  },
  {
   "name": "sona_avatar_ragdoll_drive",
   "header": "sona.h",
   "section": "3.33 physics-ready avatars: colliders, joint limits and the ragdoll handoff (1.2)",
   "signature": "sona_result sona_avatar_ragdoll_drive(sona_avatar *a, const sona_ragdoll_state *bodies, uint32_t count, float weight, uint32_t flags);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "bodies",
     "type": "const sona_ragdoll_state *"
    },
    {
     "name": "count",
     "type": "uint32_t"
    },
    {
     "name": "weight",
     "type": "float"
    },
    {
     "name": "flags",
     "type": "uint32_t"
    }
   ],
   "comment": "",
   "doc": "The host's simulated bodies onto the avatar: from the next pose it draws them, until released. `count` is `SONA_RAGDOLL_BODIES`; velocities are not read. `weight` 0..1 blends from the clip's pose (0.3: a hit reaction); every joint between bodies (fingers, toes, the neck, the face) keeps its clip pose relative to its body. Call it after each physics step. `SONA_RAGDOLL_KEEP_LENGTHS`: only the bodies' turns and the hips' position are taken, so the bones keep their lengths. `SONA_E_ARGUMENT` for a bad count, weight or flag, or a body that is not finite.",
   "page": "Ragdolls",
   "anchor": "https://360sona.com/devs/docs/reference/c/ragdolls.html#sona_avatar_ragdoll_drive"
  },
  {
   "name": "sona_avatar_ragdoll_release",
   "header": "sona.h",
   "section": "3.33 physics-ready avatars: colliders, joint limits and the ragdoll handoff (1.2)",
   "signature": "sona_result sona_avatar_ragdoll_release(sona_avatar *a, float blend_seconds);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "blend_seconds",
     "type": "float"
    }
   ],
   "comment": "Back to the animation: the last drawn ragdoll pose stays where it is in the world and blends into the clip's pose over blend_seconds (smoothstep; 0: at once), turn by turn down the body, so limbs stay joined. Play the get-up clip and move the placement to sona_ragdoll_info's getup_position and getup_turn_deg first.",
   "doc": "Back to the animation: the last drawn ragdoll pose stays where it is in the world and blends into the clip's pose over blend_seconds (smoothstep; 0: at once), turn by turn down the body, so limbs stay joined. Play the get-up clip and move the placement to `sona_ragdoll_info`'s getup_position and getup_turn_deg first.",
   "page": "Ragdolls",
   "anchor": "https://360sona.com/devs/docs/reference/c/ragdolls.html#sona_avatar_ragdoll_release"
  },
  {
   "name": "sona_avatar_ragdoll_info",
   "header": "sona.h",
   "section": "3.33 physics-ready avatars: colliders, joint limits and the ragdoll handoff (1.2)",
   "signature": "sona_result sona_avatar_ragdoll_info(const sona_avatar *a, sona_ragdoll_info *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "const sona_avatar *"
    },
    {
     "name": "out",
     "type": "sona_ragdoll_info *"
    }
   ],
   "comment": "SONA_E_NOT_READY before the avatar has been posed since sona_avatar_ragdoll.",
   "doc": "`SONA_E_NOT_READY` before the avatar has been posed since `sona_avatar_ragdoll`.",
   "page": "Ragdolls",
   "anchor": "https://360sona.com/devs/docs/reference/c/ragdolls.html#sona_avatar_ragdoll_info"
  },
  {
   "name": "sona_avatar_ragdoll_clear",
   "header": "sona.h",
   "section": "3.33 physics-ready avatars: colliders, joint limits and the ragdoll handoff (1.2)",
   "signature": "void sona_avatar_ragdoll_clear(sona_avatar *a);",
   "returns": "void",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    }
   ],
   "comment": "off at once: no tracking, no drive, no blend",
   "doc": "Off at once: no tracking, no drive, no blend.",
   "page": "Ragdolls",
   "anchor": "https://360sona.com/devs/docs/reference/c/ragdolls.html#sona_avatar_ragdoll_clear"
  },
  {
   "name": "sona_avatar_ragdoll_motors",
   "header": "sona.h",
   "section": "3.33 physics-ready avatars: colliders, joint limits and the ragdoll handoff (1.2)",
   "signature": "sona_result sona_avatar_ragdoll_motors(const sona_avatar *a, sona_ragdoll_motor *out, uint32_t cap, uint32_t *count);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "const sona_avatar *"
    },
    {
     "name": "out",
     "type": "sona_ragdoll_motor *"
    },
    {
     "name": "cap",
     "type": "uint32_t"
    },
    {
     "name": "count",
     "type": "uint32_t *"
    }
   ],
   "comment": "The targets of the last pose, velocities from the last two (zero until there have been two). count (may be NULL) gets SONA_RAGDOLL_BODIES. SONA_E_NOT_READY before sona_avatar_ragdoll. The stock get-up clips are \"getup_back\" and \"getup_front\" (https://360sona.com/devs/docs/guides/physics.html, \"Getting up\").",
   "doc": "The targets of the last pose, velocities from the last two (zero until there have been two). count (may be NULL) gets `SONA_RAGDOLL_BODIES`. `SONA_E_NOT_READY` before `sona_avatar_ragdoll`. The stock get-up clips are \"getup_back\" and \"getup_front\" ([physics guide](sdk-native/physics.md), \"Getting up\").",
   "page": "Ragdolls",
   "anchor": "https://360sona.com/devs/docs/reference/c/ragdolls.html#sona_avatar_ragdoll_motors"
  },
  {
   "name": "sona_sway_defaults",
   "header": "sona.h",
   "section": "3.34 hair and cloth sway (1.2)",
   "signature": "void sona_sway_defaults(sona_sway *o);",
   "returns": "void",
   "params": [
    {
     "name": "o",
     "type": "sona_sway *"
    }
   ],
   "comment": "",
   "doc": "Parts `SONA_SWAY_DEFAULT`, medium quality, stiffness and damping 0.5, wind scale 1, 48 minimum pixels.",
   "page": "Hair and cloth sway",
   "anchor": "https://360sona.com/devs/docs/reference/c/hair-and-cloth-sway.html#sona_sway_defaults"
  },
  {
   "name": "sona_avatar_sway",
   "header": "sona.h",
   "section": "3.34 hair and cloth sway (1.2)",
   "signature": "sona_result sona_avatar_sway(sona_avatar *a, const sona_sway *o);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "o",
     "type": "const sona_sway *"
    }
   ],
   "comment": "NULL: off, the avatar draws its items' own meshes again. A change of parts re-skins at once; READY or not, it applies from the next update (and to every later build). SONA_E_ARGUMENT for a bad size, part, quality or value out of range.",
   "doc": "Turns sway on with these options, before or after READY (it applies to every later build too). A change of parts\nre-skins at once and bumps `build_version`. NULL turns it off: the items' own meshes again. `SONA_E_ARGUMENT` for a\nsmall `size`, no part or an unknown one, a quality past `SONA_SWAY_HIGH`, stiffness or damping outside 0..1, a wind\nscale outside 0..100 or negative minimum pixels; `SONA_E_DESTROYED` for an avatar being removed.",
   "page": "Hair and cloth sway",
   "anchor": "https://360sona.com/devs/docs/reference/c/hair-and-cloth-sway.html#sona_avatar_sway"
  },
  {
   "name": "sona_avatar_sway_reset",
   "header": "sona.h",
   "section": "3.34 hair and cloth sway (1.2)",
   "signature": "void sona_avatar_sway_reset(sona_avatar *a);",
   "returns": "void",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    }
   ],
   "comment": "Back to the modelled shape at the next pose, at rest (after a teleport or a cut). Jumps of over a metre between poses do this by themselves.",
   "doc": "Back to the modelled shape, at rest, at the next pose. NULL is ignored.",
   "page": "Hair and cloth sway",
   "anchor": "https://360sona.com/devs/docs/reference/c/hair-and-cloth-sway.html#sona_avatar_sway_reset"
  },
  {
   "name": "sona_sway_world_defaults",
   "header": "sona.h",
   "section": "3.34 hair and cloth sway (1.2)",
   "signature": "void sona_sway_world_defaults(sona_sway_world *w);",
   "returns": "void",
   "params": [
    {
     "name": "w",
     "type": "sona_sway_world *"
    }
   ],
   "comment": "",
   "doc": "Gravity 0 -9.81 0, no wind, gust 0.35 with a period of 1.5 s.",
   "page": "Hair and cloth sway",
   "anchor": "https://360sona.com/devs/docs/reference/c/hair-and-cloth-sway.html#sona_sway_world_defaults"
  },
  {
   "name": "sona_sway_world_set",
   "header": "sona.h",
   "section": "3.34 hair and cloth sway (1.2)",
   "signature": "sona_result sona_sway_world_set(sona_ctx *ctx, const sona_sway_world *w);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "w",
     "type": "const sona_sway_world *"
    }
   ],
   "comment": "NULL: the defaults",
   "doc": "The gravity and wind every swaying avatar of the ctx feels from its next pose; resting avatars are posed again. NULL:\nthe defaults. `SONA_E_ARGUMENT` for a small `size`, a gust outside 0..1, gust seconds outside 0.05..600, gravity over\n1000 or wind over 100 on an axis, or a value that is not finite.",
   "page": "Hair and cloth sway",
   "anchor": "https://360sona.com/devs/docs/reference/c/hair-and-cloth-sway.html#sona_sway_world_set"
  },
  {
   "name": "sona_avatar_sway_info",
   "header": "sona.h",
   "section": "3.34 hair and cloth sway (1.2)",
   "signature": "sona_result sona_avatar_sway_info(sona_avatar *a, sona_sway_info *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "out",
     "type": "sona_sway_info *"
    }
   ],
   "comment": "SONA_E_NOT_READY before READY. With sway off: parts as found, meshes 0.",
   "doc": "What sways (`parts`, `meshes`, `chains`, `nodes`, `vertices`) and what the last pose did (`steps`, `resting`,\n`max_offset` in metres). With sway off: `parts` as found in what it wears, the rest 0. `SONA_E_NOT_READY` before\nREADY.",
   "page": "Hair and cloth sway",
   "anchor": "https://360sona.com/devs/docs/reference/c/hair-and-cloth-sway.html#sona_avatar_sway_info"
  },
  {
   "name": "sona_avatar_sway_mesh_parts",
   "header": "sona.h",
   "section": "3.34 hair and cloth sway (1.2)",
   "signature": "uint32_t sona_avatar_sway_mesh_parts(const sona_avatar *a, uint32_t mesh);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "a",
     "type": "const sona_avatar *"
    },
    {
     "name": "mesh",
     "type": "uint32_t"
    }
   ],
   "comment": "The SONA_SWAY_* kinds one of sona_pose's meshes sways with (0: none, or a bad index).",
   "doc": "The `SONA_SWAY_*` kinds one of `sona_pose`'s meshes sways with; 0 for one that does not, a bad index, or an avatar\nwith sway off or not READY.",
   "page": "Hair and cloth sway",
   "anchor": "https://360sona.com/devs/docs/reference/c/hair-and-cloth-sway.html#sona_avatar_sway_mesh_parts"
  },
  {
   "name": "sona_seat_defaults",
   "header": "sona.h",
   "section": "3.35 two-avatar interactions and seats (1.2)",
   "signature": "void sona_seat_defaults(sona_seat *s, uint32_t kind);",
   "returns": "void",
   "params": [
    {
     "name": "s",
     "type": "sona_seat *"
    },
    {
     "name": "kind",
     "type": "uint32_t"
    }
   ],
   "comment": "",
   "doc": "`size` set and a seat of that kind: `height` 0.45 (0 for GROUND), `depth` 0.45 (unlimited for GROUND), `width` 0.5 for a chair, 1.4 for a bench and unlimited on the ground.",
   "page": "Two-avatar interactions and seats",
   "anchor": "https://360sona.com/devs/docs/reference/c/two-avatar-interactions-and-seats.html#sona_seat_defaults"
  },
  {
   "name": "sona_interaction_defaults",
   "header": "sona.h",
   "section": "3.35 two-avatar interactions and seats (1.2)",
   "signature": "void sona_interaction_defaults(sona_interaction_desc *d, uint32_t kind);",
   "returns": "void",
   "params": [
    {
     "name": "d",
     "type": "sona_interaction_desc *"
    },
    {
     "name": "kind",
     "type": "uint32_t"
    }
   ],
   "comment": "Sets size, kind, the kind's timings (high five 0.8, 0.15, 0.7 s; handshake 0.9, 1.6, 0.8; hug 1.1, 2.5, 1.0; hold hands 0.8, 0, 0.6; sit 1.3, 0, 1.4) and a default seat.",
   "doc": "Sets size, kind, the kind's default timings in seconds (high five 0.8, 0.15, 0.7; handshake 0.9, 1.6, 0.8; hug 1.1, 2.5, 1.0; hold hands 0.8, 0, 0.6; sit 1.3, 0, 1.4) and a default seat.",
   "page": "Two-avatar interactions and seats",
   "anchor": "https://360sona.com/devs/docs/reference/c/two-avatar-interactions-and-seats.html#sona_interaction_defaults"
  },
  {
   "name": "sona_interaction_layout",
   "header": "sona.h",
   "section": "3.35 two-avatar interactions and seats (1.2)",
   "signature": "sona_result sona_interaction_layout(const sona_interaction_desc *d, sona_interaction_plan *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "d",
     "type": "const sona_interaction_desc *"
    },
    {
     "name": "out",
     "type": "sona_interaction_plan *"
    }
   ],
   "comment": "SONA_E_ARGUMENT for a bad desc (sizes, kind, flags, timings, a missing or repeated avatar, a seat too narrow for two), SONA_E_NOT_READY until both avatars are READY, and for SIT SONA_PENDING until the stock sit clip has been read (the call asks the sources for it; call again). Owner thread only, like sona_interaction_start: it measures both bodies (a few milliseconds) and may read the clip into the ctx.",
   "doc": "`SONA_E_ARGUMENT` for a bad desc (sizes, kind, flags, timings, a missing or repeated avatar, a seat too narrow for two), `SONA_E_NOT_READY` until both avatars are READY, and for SIT `SONA_PENDING` until the stock sit clip has been read (the call asks the sources for it; call again). Owner thread only, like `sona_interaction_start`: it measures both bodies (a few milliseconds) and may read the clip into the ctx.",
   "page": "Two-avatar interactions and seats",
   "anchor": "https://360sona.com/devs/docs/reference/c/two-avatar-interactions-and-seats.html#sona_interaction_layout"
  },
  {
   "name": "sona_interaction_start",
   "header": "sona.h",
   "section": "3.35 two-avatar interactions and seats (1.2)",
   "signature": "sona_result sona_interaction_start(sona_ctx *ctx, const sona_interaction_desc *d, sona_interaction **out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "d",
     "type": "const sona_interaction_desc *"
    },
    {
     "name": "out",
     "type": "sona_interaction **"
    }
   ],
   "comment": "Starts it: the avatars are placed (eased over the first part of the start phase when they are near), their clips started together and their IK targets driven from now on. An avatar in another running interaction is refused (SONA_E_ARGUMENT); SONA_E_LIMIT when the ctx holds 64, finished ones included: an interaction is freed only by sona_interaction_remove (or sona_close), so a handle stays valid until the host removes it.",
   "doc": "Starts it: the avatars are placed (eased over the first part of the start phase when they are near), their clips started together and their IK targets driven from now on. An avatar in another running interaction is refused (`SONA_E_ARGUMENT`); `SONA_E_LIMIT` when the ctx holds 64, finished ones included: an interaction is freed only by `sona_interaction_remove` (or `sona_close`), so a handle stays valid until the host removes it.",
   "page": "Two-avatar interactions and seats",
   "anchor": "https://360sona.com/devs/docs/reference/c/two-avatar-interactions-and-seats.html#sona_interaction_start"
  },
  {
   "name": "sona_interaction_end",
   "header": "sona.h",
   "section": "3.35 two-avatar interactions and seats (1.2)",
   "signature": "sona_result sona_interaction_end(sona_interaction *it);",
   "returns": "sona_result",
   "params": [
    {
     "name": "it",
     "type": "sona_interaction *"
    }
   ],
   "comment": "Begins the end phase now (a hold of 0 waits for this). No effect once ending.",
   "doc": "Begins the end phase now (a hold of 0 waits for this). No effect once ending.",
   "page": "Two-avatar interactions and seats",
   "anchor": "https://360sona.com/devs/docs/reference/c/two-avatar-interactions-and-seats.html#sona_interaction_end"
  },
  {
   "name": "sona_interaction_move",
   "header": "sona.h",
   "section": "3.35 two-avatar interactions and seats (1.2)",
   "signature": "sona_result sona_interaction_move(sona_interaction *it, const float position[3], float turn_deg);",
   "returns": "sona_result",
   "params": [
    {
     "name": "it",
     "type": "sona_interaction *"
    },
    {
     "name": "position",
     "type": "const float [3]"
    },
    {
     "name": "turn_deg",
     "type": "float"
    }
   ],
   "comment": "Moves the place (and the seat with it) while it runs, for a pair walking hand in hand; contacts follow.",
   "doc": "Moves the place (and the seat with it) while it runs, for a pair walking hand in hand; contacts follow.",
   "page": "Two-avatar interactions and seats",
   "anchor": "https://360sona.com/devs/docs/reference/c/two-avatar-interactions-and-seats.html#sona_interaction_move"
  },
  {
   "name": "sona_interaction_remove",
   "header": "sona.h",
   "section": "3.35 two-avatar interactions and seats (1.2)",
   "signature": "void sona_interaction_remove(sona_interaction *it);",
   "returns": "void",
   "params": [
    {
     "name": "it",
     "type": "sona_interaction *"
    }
   ],
   "comment": "Stops at once and frees it: its IK targets go, the avatars stay where they are and keep their clip.",
   "doc": "Stops at once and frees it: its IK targets go, the avatars stay where they are and keep their clip.",
   "page": "Two-avatar interactions and seats",
   "anchor": "https://360sona.com/devs/docs/reference/c/two-avatar-interactions-and-seats.html#sona_interaction_remove"
  },
  {
   "name": "sona_interaction_status_get",
   "header": "sona.h",
   "section": "3.35 two-avatar interactions and seats (1.2)",
   "signature": "sona_result sona_interaction_status_get(const sona_interaction *it, sona_interaction_status *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "it",
     "type": "const sona_interaction *"
    },
    {
     "name": "out",
     "type": "sona_interaction_status *"
    }
   ],
   "comment": "",
   "doc": "Where an interaction is: its kind and phase, the time in the phase and how far through it, whether the contacts are together, the widest gap at a contact, the clearance between the two bodies (negative: into each other), the contact points now and the IK hit bits of both avatars' limbs.",
   "page": "Two-avatar interactions and seats",
   "anchor": "https://360sona.com/devs/docs/reference/c/two-avatar-interactions-and-seats.html#sona_interaction_status_get"
  },
  {
   "name": "sona_interaction_events",
   "header": "sona.h",
   "section": "3.35 two-avatar interactions and seats (1.2)",
   "signature": "uint32_t sona_interaction_events(sona_interaction *it, sona_interaction_event *out, uint32_t max);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "it",
     "type": "sona_interaction *"
    },
    {
     "name": "out",
     "type": "sona_interaction_event *"
    },
    {
     "name": "max",
     "type": "uint32_t"
    }
   ],
   "comment": "",
   "doc": "Moves up to `max` events since the last call into `out` (`SONA_INTERACT_EV_*`: contact, a handshake pump, release, end, cancel) and returns how many.",
   "page": "Two-avatar interactions and seats",
   "anchor": "https://360sona.com/devs/docs/reference/c/two-avatar-interactions-and-seats.html#sona_interaction_events"
  },
  {
   "name": "sona_emote_from_text",
   "header": "sona.h",
   "section": "3.36 text to emote",
   "signature": "sona_result sona_emote_from_text(const char *text, sona_emote *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "text",
     "type": "const char *"
    },
    {
     "name": "out",
     "type": "sona_emote *"
    }
   ],
   "comment": "",
   "doc": "A sentence in (\"wave excitedly\", \"shrug, not sure\"), stock clips and a face out: up to four clips with weights to blend, a speed and an expression. Pure, no ctx: the same text gives the same answer. `count` 0 with a face is a mood with no action (\"smile\"). Set `out->size` first. [sdk-native/emote.md](sdk-native/emote.md) has the table.",
   "page": "Text to emote",
   "anchor": "https://360sona.com/devs/docs/reference/c/text-to-emote.html#sona_emote_from_text"
  },
  {
   "name": "sona_avatar_emote",
   "header": "sona.h",
   "section": "3.36 text to emote",
   "signature": "sona_result sona_avatar_emote(sona_avatar *a, const sona_emote *e, float fade_seconds);",
   "returns": "sona_result",
   "params": [
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "e",
     "type": "const sona_emote *"
    },
    {
     "name": "fade_seconds",
     "type": "float"
    }
   ],
   "comment": "Plays it on a: the clips blended on the emote layers (SONA_LAYER_MAX - count to SONA_LAYER_MAX - 1, each over the ones below by its share of the weight), faded in over fade_seconds; the face set when it has one. An emote plays once and hands back to the clip, but a dance, sleep, hover or run loops until the next emote. count 0 with no face stops the emote's layers and hands the face back. It never stops a layer the app played (a layer it played is the app's once the app plays anything on it): SONA_E_LIMIT, with nothing changed, when one is on a layer the emote needs. SONA_E_MEMORY also changes nothing.",
   "doc": "Plays it on a: the clips blended on the emote layers (`SONA_LAYER_MAX` - count to `SONA_LAYER_MAX` - 1, each over the ones below by its share of the weight), faded in over fade_seconds; the face set when it has one. An emote plays once and hands back to the clip, but a dance, sleep, hover or run loops until the next emote. count 0 with no face stops the emote's layers and hands the face back. It never stops a layer the app played (a layer it played is the app's once the app plays anything on it): `SONA_E_LIMIT`, with nothing changed, when one is on a layer the emote needs. `SONA_E_MEMORY` also changes nothing.",
   "page": "Text to emote",
   "anchor": "https://360sona.com/devs/docs/reference/c/text-to-emote.html#sona_avatar_emote"
  },
  {
   "name": "sona_award_def_defaults",
   "header": "sona.h",
   "section": "3.37 award items from your own game",
   "signature": "void sona_award_def_defaults(sona_award_def *d);",
   "returns": "void",
   "params": [
    {
     "name": "d",
     "type": "sona_award_def *"
    }
   ],
   "comment": "",
   "doc": "`size` set and everything else zero.",
   "page": "Award items",
   "anchor": "https://360sona.com/devs/docs/reference/c/award-items.html#sona_award_def_defaults"
  },
  {
   "name": "sona_award_define",
   "header": "sona.h",
   "section": "3.37 award items from your own game",
   "signature": "sona_result sona_award_define(sona_ctx *ctx, const sona_award_def *d, uint32_t *ticket);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "d",
     "type": "const sona_award_def *"
    },
    {
     "name": "ticket",
     "type": "uint32_t *"
    }
   ],
   "comment": "",
   "doc": "Defines an award item for an app with the app's developer key (a tool's call, never a shipped game's). It goes to `config.check_host` through the ctx's HTTP layer and gives a ticket: `sona_award_poll` after `sona_update` says how it went.",
   "page": "Award items",
   "anchor": "https://360sona.com/devs/docs/reference/c/award-items.html#sona_award_define"
  },
  {
   "name": "sona_award_unlock",
   "header": "sona.h",
   "section": "3.37 award items from your own game",
   "signature": "sona_result sona_award_unlock(sona_ctx *ctx, const char *player_token, const char *key, uint32_t *ticket);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "player_token",
     "type": "const char *"
    },
    {
     "name": "key",
     "type": "const char *"
    },
    {
     "name": "ticket",
     "type": "uint32_t *"
    }
   ],
   "comment": "player_token: the signed-in player's access token (Sign in with 360sona).",
   "doc": "`player_token`: the signed-in player's access token (Sign in with 360sona).",
   "page": "Award items",
   "anchor": "https://360sona.com/devs/docs/reference/c/award-items.html#sona_award_unlock"
  },
  {
   "name": "sona_award_poll",
   "header": "sona.h",
   "section": "3.37 award items from your own game",
   "signature": "sona_result sona_award_poll(sona_ctx *ctx, uint32_t ticket);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "ticket",
     "type": "uint32_t"
    }
   ],
   "comment": "SONA_PENDING while it runs, then its result once: SONA_OK, SONA_E_NOT_FOUND (no such award), SONA_E_APP (a wrong key or token, or no awards scope), SONA_E_ARGUMENT (refused; see sona_last_error), SONA_E_LIMIT, SONA_E_GATE or SONA_E_IO.",
   "doc": "`SONA_PENDING` while it runs, then its result once: `SONA_OK`, `SONA_E_NOT_FOUND` (no such award), `SONA_E_APP` (a wrong key or token, or no awards scope), `SONA_E_ARGUMENT` (refused; see `sona_last_error`), `SONA_E_LIMIT`, `SONA_E_GATE` or `SONA_E_IO`.",
   "page": "Award items",
   "anchor": "https://360sona.com/devs/docs/reference/c/award-items.html#sona_award_poll"
  },
  {
   "name": "sona_body_defaults",
   "header": "sona_body.h",
   "section": "",
   "signature": "void sona_body_defaults(sona_body_options *o);",
   "returns": "void",
   "params": [
    {
     "name": "o",
     "type": "sona_body_options *"
    }
   ],
   "comment": "",
   "doc": "`size` set; `min_cutoff` 1.5, `beta` 0.8, `min_visibility` 0.5, `lost_seconds` 0.5, `return_seconds` 0.4.",
   "page": "Body tracking module (sona_body.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/body-tracking.html#sona_body_defaults"
  },
  {
   "name": "sona_body_create",
   "header": "sona_body.h",
   "section": "",
   "signature": "sona_result sona_body_create(const sona_body_options *o, sona_body_tracker **out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "o",
     "type": "const sona_body_options *"
    },
    {
     "name": "out",
     "type": "sona_body_tracker **"
    }
   ],
   "comment": "NULL options: the defaults. SONA_E_ARGUMENT for a wrong size or a value out of range.",
   "doc": "NULL options: the defaults. `SONA_E_ARGUMENT` for a wrong size or a value out of range.",
   "page": "Body tracking module (sona_body.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/body-tracking.html#sona_body_create"
  },
  {
   "name": "sona_body_destroy",
   "header": "sona_body.h",
   "section": "",
   "signature": "void sona_body_destroy(sona_body_tracker *t);",
   "returns": "void",
   "params": [
    {
     "name": "t",
     "type": "sona_body_tracker *"
    }
   ],
   "comment": "",
   "doc": "Frees the tracker.",
   "page": "Body tracking module (sona_body.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/body-tracking.html#sona_body_destroy"
  },
  {
   "name": "sona_body_reset",
   "header": "sona_body.h",
   "section": "",
   "signature": "void sona_body_reset(sona_body_tracker *t);",
   "returns": "void",
   "params": [
    {
     "name": "t",
     "type": "sona_body_tracker *"
    }
   ],
   "comment": "Forgets the filters and the tracking state; keeps the options.",
   "doc": "Forgets the filters and the tracking state; keeps the options.",
   "page": "Body tracking module (sona_body.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/body-tracking.html#sona_body_reset"
  },
  {
   "name": "sona_body_input_defaults",
   "header": "sona_body.h",
   "section": "",
   "signature": "void sona_body_input_defaults(sona_body_input *in);",
   "returns": "void",
   "params": [
    {
     "name": "in",
     "type": "sona_body_input *"
    }
   ],
   "comment": "",
   "doc": "`size` set, the MediaPipe layout and no points.",
   "page": "Body tracking module (sona_body.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/body-tracking.html#sona_body_input_defaults"
  },
  {
   "name": "sona_body_feed",
   "header": "sona_body.h",
   "section": "",
   "signature": "sona_result sona_body_feed(sona_body_tracker *t, const sona_body_input *in);",
   "returns": "sona_result",
   "params": [
    {
     "name": "t",
     "type": "sona_body_tracker *"
    },
    {
     "name": "in",
     "type": "const sona_body_input *"
    }
   ],
   "comment": "",
   "doc": "One frame of what the body tracker saw (`sona_body_input`). `SONA_E_ARGUMENT` for a wrong size, a time that is not finite, or a found body without 33 points in the MediaPipe layout.",
   "page": "Body tracking module (sona_body.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/body-tracking.html#sona_body_feed"
  },
  {
   "name": "sona_body_apply",
   "header": "sona_body.h",
   "section": "",
   "signature": "sona_result sona_body_apply(sona_body_tracker *t, sona_avatar *a);",
   "returns": "sona_result",
   "params": [
    {
     "name": "t",
     "type": "sona_body_tracker *"
    },
    {
     "name": "a",
     "type": "sona_avatar *"
    }
   ],
   "comment": "Puts the pose on an avatar through overrides below the neck, after the clip and before the IK. One tracker drives one avatar at a time. SONA_E_NOT_READY until the avatar is READY and posed.",
   "doc": "Puts the pose on an avatar through overrides below the neck, after the clip and before the IK. One tracker drives one avatar at a time. `SONA_E_NOT_READY` until the avatar is READY and posed.",
   "page": "Body tracking module (sona_body.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/body-tracking.html#sona_body_apply"
  },
  {
   "name": "sona_body_release",
   "header": "sona_body.h",
   "section": "",
   "signature": "void sona_body_release(sona_body_tracker *t, sona_avatar *a);",
   "returns": "void",
   "params": [
    {
     "name": "t",
     "type": "sona_body_tracker *"
    },
    {
     "name": "a",
     "type": "sona_avatar *"
    }
   ],
   "comment": "Hands the joints back to the clip; nothing when a is not the avatar it drives.",
   "doc": "Hands the joints back to the clip; nothing when a is not the avatar it drives.",
   "page": "Body tracking module (sona_body.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/body-tracking.html#sona_body_release"
  },
  {
   "name": "sona_body_struct_size",
   "header": "sona_body.h",
   "section": "",
   "signature": "uint32_t sona_body_struct_size(const char *name);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "name",
     "type": "const char *"
    }
   ],
   "comment": "sizeof and offsetof for the bindings' layout checks: \"sona_body_options\", \"sona_body_input.points\". 0 and UINT32_MAX when unknown.",
   "doc": "sizeof a public struct of this header by name (\"sona_body_options\"), for the bindings' layout checks; 0 when unknown.",
   "page": "Body tracking module (sona_body.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/body-tracking.html#sona_body_struct_size"
  },
  {
   "name": "sona_body_struct_offset",
   "header": "sona_body.h",
   "section": "",
   "signature": "uint32_t sona_body_struct_offset(const char *struct_dot_field);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "struct_dot_field",
     "type": "const char *"
    }
   ],
   "comment": "",
   "doc": "offsetof a field by \"struct.field\" (\"sona_body_input.points\"); `UINT32_MAX` when unknown.",
   "page": "Body tracking module (sona_body.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/body-tracking.html#sona_body_struct_offset"
  },
  {
   "name": "sona_editor_defaults",
   "header": "sona_editor.h",
   "section": "the editor",
   "signature": "void sona_editor_defaults(sona_editor_options *o);",
   "returns": "void",
   "params": [
    {
     "name": "o",
     "type": "sona_editor_options *"
    }
   ],
   "comment": "",
   "doc": "`size` set, 1280 x 720 (`sona_editor_resize` changes it), seed 1, everything else zero.",
   "page": "Player editor module (sona_editor.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-editor.html#sona_editor_defaults"
  },
  {
   "name": "sona_editor_theme_defaults",
   "header": "sona_editor.h",
   "section": "the editor",
   "signature": "void sona_editor_theme_defaults(sona_editor_theme *t, uint32_t which);",
   "returns": "void",
   "params": [
    {
     "name": "t",
     "type": "sona_editor_theme *"
    },
    {
     "name": "which",
     "type": "uint32_t"
    }
   ],
   "comment": "which: SONA_EDITOR_THEME_LIGHT (360sona.com's editor) or _DARK (the console slate).",
   "doc": "`which`: `SONA_EDITOR_THEME_LIGHT` (360sona.com's editor) or _DARK (the console slate).",
   "page": "Player editor module (sona_editor.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-editor.html#sona_editor_theme_defaults"
  },
  {
   "name": "sona_editor_open",
   "header": "sona_editor.h",
   "section": "the editor",
   "signature": "sona_result sona_editor_open(sona_ctx *ctx, const sona_editor_options *o, const sona_editor_theme *theme, sona_editor **out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "o",
     "type": "const sona_editor_options *"
    },
    {
     "name": "theme",
     "type": "const sona_editor_theme *"
    },
    {
     "name": "out",
     "type": "sona_editor **"
    }
   ],
   "comment": "theme NULL: the light (site) theme. SONA_E_ARGUMENT without a catalogue, for MODE_WARDROBE without a start manifest, or a start manifest that does not parse; SONA_E_CORRUPT for font bytes that do not load.",
   "doc": "`theme` NULL: the light (site) theme. `SONA_E_ARGUMENT` without a catalogue, for MODE_WARDROBE without a start manifest, or a start manifest that does not parse; `SONA_E_CORRUPT` for font bytes that do not load.",
   "page": "Player editor module (sona_editor.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-editor.html#sona_editor_open"
  },
  {
   "name": "sona_editor_close",
   "header": "sona_editor.h",
   "section": "the editor",
   "signature": "void sona_editor_close(sona_editor *ed);",
   "returns": "void",
   "params": [
    {
     "name": "ed",
     "type": "sona_editor *"
    }
   ],
   "comment": "Removes its avatars from the ctx.",
   "doc": "Removes its avatars from the ctx.",
   "page": "Player editor module (sona_editor.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-editor.html#sona_editor_close"
  },
  {
   "name": "sona_editor_set_theme",
   "header": "sona_editor.h",
   "section": "the editor",
   "signature": "sona_result sona_editor_set_theme(sona_editor *ed, const sona_editor_theme *theme);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ed",
     "type": "sona_editor *"
    },
    {
     "name": "theme",
     "type": "const sona_editor_theme *"
    }
   ],
   "comment": "",
   "doc": "Changes the colours and sizes from the next frame. NULL: the light (site) theme.",
   "page": "Player editor module (sona_editor.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-editor.html#sona_editor_set_theme"
  },
  {
   "name": "sona_editor_resize",
   "header": "sona_editor.h",
   "section": "the editor",
   "signature": "sona_result sona_editor_resize(sona_editor *ed, uint32_t width, uint32_t height);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ed",
     "type": "sona_editor *"
    },
    {
     "name": "width",
     "type": "uint32_t"
    },
    {
     "name": "height",
     "type": "uint32_t"
    }
   ],
   "comment": "",
   "doc": "The editor's size in pixels, the size of the target it is drawn into.",
   "page": "Player editor module (sona_editor.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-editor.html#sona_editor_resize"
  },
  {
   "name": "sona_editor_feed",
   "header": "sona_editor.h",
   "section": "the editor",
   "signature": "sona_result sona_editor_feed(sona_editor *ed, const sona_editor_input *in);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ed",
     "type": "sona_editor *"
    },
    {
     "name": "in",
     "type": "const sona_editor_input *"
    }
   ],
   "comment": "",
   "doc": "One input event (`SONA_EDITOR_IN_*`): a gamepad button or axis, a key, a typed character for the search box, a pointer or touch, or the wheel.",
   "page": "Player editor module (sona_editor.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-editor.html#sona_editor_feed"
  },
  {
   "name": "sona_editor_update",
   "header": "sona_editor.h",
   "section": "the editor",
   "signature": "uint32_t sona_editor_update(sona_editor *ed, double dt);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "ed",
     "type": "sona_editor *"
    },
    {
     "name": "dt",
     "type": "double"
    }
   ],
   "comment": "Advances dt seconds: stick repeat, animations, avatar builds and (unless HOST_UPDATES) sona_update on the ctx. Returns SONA_EDITOR_RUNNING, _DONE or _CANCELLED (and keeps returning it).",
   "doc": "Advances dt seconds: stick repeat, animations, avatar builds and (unless HOST_UPDATES) `sona_update` on the ctx. Returns `SONA_EDITOR_RUNNING`, _DONE or _CANCELLED (and keeps returning it).",
   "page": "Player editor module (sona_editor.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-editor.html#sona_editor_update"
  },
  {
   "name": "sona_editor_status",
   "header": "sona_editor.h",
   "section": "the editor",
   "signature": "uint32_t sona_editor_status(const sona_editor *ed);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "ed",
     "type": "const sona_editor *"
    }
   ],
   "comment": "",
   "doc": "`SONA_EDITOR_RUNNING`, `_DONE` or `_CANCELLED`, as the last `sona_editor_update` returned.",
   "page": "Player editor module (sona_editor.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-editor.html#sona_editor_status"
  },
  {
   "name": "sona_editor_result",
   "header": "sona_editor.h",
   "section": "the editor",
   "signature": "sona_result sona_editor_result(const sona_editor *ed, uint8_t out[SONA_MANIFEST_BYTES]);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ed",
     "type": "const sona_editor *"
    },
    {
     "name": "out",
     "type": "uint8_t [SONA_MANIFEST_BYTES]"
    }
   ],
   "comment": "The avatar as it stands (at any time): SONA_MANIFEST_BYTES. After CANCELLED it is the start manifest.",
   "doc": "The avatar as it stands (at any time): `SONA_MANIFEST_BYTES`. After CANCELLED it is the start manifest.",
   "page": "Player editor module (sona_editor.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-editor.html#sona_editor_result"
  },
  {
   "name": "sona_editor_set_search",
   "header": "sona_editor.h",
   "section": "the editor",
   "signature": "sona_result sona_editor_set_search(sona_editor *ed, const char *text);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ed",
     "type": "sona_editor *"
    },
    {
     "name": "text",
     "type": "const char *"
    }
   ],
   "comment": "The search box of the wardrobe and the item screens, for hosts with an on-screen keyboard (UTF-8; NULL clears).",
   "doc": "The search box of the wardrobe and the item screens, for hosts with an on-screen keyboard (UTF-8; NULL clears).",
   "page": "Player editor module (sona_editor.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-editor.html#sona_editor_set_search"
  },
  {
   "name": "sona_editor_set_screen",
   "header": "sona_editor.h",
   "section": "the editor",
   "signature": "sona_result sona_editor_set_screen(sona_editor *ed, uint32_t screen);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ed",
     "type": "sona_editor *"
    },
    {
     "name": "screen",
     "type": "uint32_t"
    }
   ],
   "comment": "Moves to a screen of the mode (a deprecated id to the screen that took its place). SONA_E_ARGUMENT for one the mode does not have, LOOKS in FULL among them.",
   "doc": "Moves to a screen of the mode (a deprecated id to the screen that took its place). `SONA_E_ARGUMENT` for one the mode does not have, `SONA_EDITOR_SCREEN_LOOKS` in `SONA_EDITOR_MODE_FULL` among them.",
   "page": "Player editor module (sona_editor.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-editor.html#sona_editor_set_screen"
  },
  {
   "name": "sona_editor_screen_get",
   "header": "sona_editor.h",
   "section": "the editor",
   "signature": "uint32_t sona_editor_screen_get(const sona_editor *ed);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "ed",
     "type": "const sona_editor *"
    }
   ],
   "comment": "",
   "doc": "The screen shown now.",
   "page": "Player editor module (sona_editor.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-editor.html#sona_editor_screen_get"
  },
  {
   "name": "sona_editor_screens",
   "header": "sona_editor.h",
   "section": "the editor",
   "signature": "uint32_t sona_editor_screens(const sona_editor *ed, uint32_t *out, uint32_t cap);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "ed",
     "type": "const sona_editor *"
    },
    {
     "name": "out",
     "type": "uint32_t *"
    },
    {
     "name": "cap",
     "type": "uint32_t"
    }
   ],
   "comment": "The mode's screens in tab order: writes up to cap of them (out may be NULL) and returns how many there are.",
   "doc": "The mode's screens in tab order: writes up to cap of them (out may be NULL) and returns how many there are.",
   "page": "Player editor module (sona_editor.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-editor.html#sona_editor_screens"
  },
  {
   "name": "sona_editor_busy",
   "header": "sona_editor.h",
   "section": "the editor",
   "signature": "int sona_editor_busy(const sona_editor *ed);",
   "returns": "int",
   "params": [
    {
     "name": "ed",
     "type": "const sona_editor *"
    }
   ],
   "comment": "1 while an avatar is still building (the shown one or a change on its way); thumbnails do not count. A change that fails to build leaves the last avatar that did on screen; when the first one fails, nothing shows and busy is 0.",
   "doc": "1 while an avatar is still building (the shown one or a change on its way); thumbnails do not count. A change that fails to build leaves the last avatar that did on screen; when the first one fails, nothing shows and busy is 0.",
   "page": "Player editor module (sona_editor.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-editor.html#sona_editor_busy"
  },
  {
   "name": "sona_editor_build_failures",
   "header": "sona_editor.h",
   "section": "the editor",
   "signature": "uint32_t sona_editor_build_failures(const sona_editor *ed);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "ed",
     "type": "const sona_editor *"
    }
   ],
   "comment": "How many avatar builds failed since open (the screen reader is told each time).",
   "doc": "How many avatar builds failed since open (the screen reader is told each time).",
   "page": "Player editor module (sona_editor.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-editor.html#sona_editor_build_failures"
  },
  {
   "name": "sona_editor_avatar",
   "header": "sona_editor.h",
   "section": "the editor",
   "signature": "sona_avatar * sona_editor_avatar(const sona_editor *ed);",
   "returns": "sona_avatar *",
   "params": [
    {
     "name": "ed",
     "type": "const sona_editor *"
    }
   ],
   "comment": "The avatar on the stage now (NULL while the first builds). It is the editor's: read or hide it, never remove it; each choice makes a new one.",
   "doc": "The avatar on the editor's stage now, or NULL while the first one builds. It is the editor's: read it or hide it,\nnever remove it. Each choice in the editor makes a new one, so ask again each frame. A host that draws the avatar\nlayer itself uses it to fade the stage's avatar in and out.",
   "page": "Player editor module (sona_editor.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-editor.html#sona_editor_avatar"
  },
  {
   "name": "sona_editor_undo",
   "header": "sona_editor.h",
   "section": "the editor",
   "signature": "int sona_editor_undo(sona_editor *ed, int redo);",
   "returns": "int",
   "params": [
    {
     "name": "ed",
     "type": "sona_editor *"
    },
    {
     "name": "redo",
     "type": "int"
    }
   ],
   "comment": "For a host that draws the stage's own bar: undo (redo 0) or redo (redo 1) one step; 0 when there is none.",
   "doc": "Undoes the last change (`redo` 0) or redoes the last undone one (`redo` 1), for a host that draws the stage's own\nundo and redo buttons. Returns 1 when it stepped, 0 when there was nothing to step to. The editor keeps 32 steps.",
   "page": "Player editor module (sona_editor.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-editor.html#sona_editor_undo"
  },
  {
   "name": "sona_editor_can_undo",
   "header": "sona_editor.h",
   "section": "the editor",
   "signature": "int sona_editor_can_undo(const sona_editor *ed, int redo);",
   "returns": "int",
   "params": [
    {
     "name": "ed",
     "type": "const sona_editor *"
    },
    {
     "name": "redo",
     "type": "int"
    }
   ],
   "comment": "",
   "doc": "1 when `sona_editor_undo` with the same `redo` would step: use it to grey out the buttons.",
   "page": "Player editor module (sona_editor.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-editor.html#sona_editor_can_undo"
  },
  {
   "name": "sona_editor_zoom",
   "header": "sona_editor.h",
   "section": "the editor",
   "signature": "double sona_editor_zoom(sona_editor *ed, double set);",
   "returns": "double",
   "params": [
    {
     "name": "ed",
     "type": "sona_editor *"
    },
    {
     "name": "set",
     "type": "double"
    }
   ],
   "comment": "The zoom: 1 is the editor's framing, 0.6 to 3. set > 0 sets it; returns the zoom now.",
   "doc": "The stage's zoom: 1 is the editor's own framing, from 0.6 to 3. A `set` above 0 sets it (clamped to that range);\n0 only reads it. Returns the zoom now.",
   "page": "Player editor module (sona_editor.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-editor.html#sona_editor_zoom"
  },
  {
   "name": "sona_editor_turn",
   "header": "sona_editor.h",
   "section": "the editor",
   "signature": "void sona_editor_turn(sona_editor *ed, double degrees);",
   "returns": "void",
   "params": [
    {
     "name": "ed",
     "type": "sona_editor *"
    },
    {
     "name": "degrees",
     "type": "double"
    }
   ],
   "comment": "Turns the avatar on the stage by degrees (positive turns it to its left).",
   "doc": "Turns the avatar on the stage by `degrees`, as a drag across the stage does.",
   "page": "Player editor module (sona_editor.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-editor.html#sona_editor_turn"
  },
  {
   "name": "sona_editor_view",
   "header": "sona_editor.h",
   "section": "the editor",
   "signature": "sona_result sona_editor_view(const sona_editor *ed, sona_view *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ed",
     "type": "const sona_editor *"
    },
    {
     "name": "out",
     "type": "sona_view *"
    }
   ],
   "comment": "The camera the avatar layer is drawn with (framed into avatar_rect of the full target).",
   "doc": "The camera the avatar layer is drawn with (framed into avatar_rect of the full target).",
   "page": "Player editor module (sona_editor.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-editor.html#sona_editor_view"
  },
  {
   "name": "sona_editor_draw",
   "header": "sona_editor.h",
   "section": "the editor",
   "signature": "sona_result sona_editor_draw(sona_editor *ed, sona_renderer *r, const sona_target *t, const sona_draw_options *opts);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ed",
     "type": "sona_editor *"
    },
    {
     "name": "r",
     "type": "sona_renderer *"
    },
    {
     "name": "t",
     "type": "const sona_target *"
    },
    {
     "name": "opts",
     "type": "const sona_draw_options *"
    }
   ],
   "comment": "The editor into t: sona_draw with the editor's view and the theme's background, without the credit (the UI draws it), and the UI layer over it as r's overlay (rasterised on the CPU where it changed, uploaded where it changed, blended by the renderer; r has no overlay again afterwards); then up to two pending thumbnails (sona_item_preview_snapshot and sona_snapshot on r). opts NULL: defaults; its clear and the NO_CREDIT flag are the editor's. The UI is drawn at the editor's size over the whole target: resize the editor to the target.",
   "doc": "The editor into t: `sona_draw` with the editor's view and the theme's background, without the credit (the UI draws it), and the UI layer over it as r's overlay (rasterised on the CPU where it changed, uploaded where it changed, blended by the renderer; r has no overlay again afterwards); then up to two pending thumbnails (`sona_item_preview_snapshot` and `sona_snapshot` on r). opts NULL: defaults; its clear and the NO_CREDIT flag are the editor's. The UI is drawn at the editor's size over the whole target: resize the editor to the target.",
   "page": "Player editor module (sona_editor.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-editor.html#sona_editor_draw"
  },
  {
   "name": "sona_editor_draw_avatar",
   "header": "sona_editor.h",
   "section": "the editor",
   "signature": "sona_result sona_editor_draw_avatar(sona_editor *ed, sona_renderer *r, const sona_target *t, const sona_draw_options *opts);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ed",
     "type": "sona_editor *"
    },
    {
     "name": "r",
     "type": "sona_renderer *"
    },
    {
     "name": "t",
     "type": "const sona_target *"
    },
    {
     "name": "opts",
     "type": "const sona_draw_options *"
    }
   ],
   "comment": "The avatar layer alone (and the thumbnails), for a host that draws the UI layer with its own 2D pass.",
   "doc": "The avatar layer alone (and the thumbnails), for a host that draws the UI layer with its own 2D pass.",
   "page": "Player editor module (sona_editor.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-editor.html#sona_editor_draw_avatar"
  },
  {
   "name": "sona_editor_thumbnails",
   "header": "sona_editor.h",
   "section": "the editor",
   "signature": "uint32_t sona_editor_thumbnails(sona_editor *ed, sona_renderer *r, uint32_t budget);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "ed",
     "type": "sona_editor *"
    },
    {
     "name": "r",
     "type": "sona_renderer *"
    },
    {
     "name": "budget",
     "type": "uint32_t"
    }
   ],
   "comment": "Renders up to budget pending thumbnails on r, for hosts that draw the avatar layer with their own sona_draw.",
   "doc": "Renders up to budget pending thumbnails on r, for hosts that draw the avatar layer with their own `sona_draw`.",
   "page": "Player editor module (sona_editor.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-editor.html#sona_editor_thumbnails"
  },
  {
   "name": "sona_editor_draw_data_get",
   "header": "sona_editor.h",
   "section": "the editor",
   "signature": "sona_result sona_editor_draw_data_get(sona_editor *ed, sona_editor_draw_data *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ed",
     "type": "sona_editor *"
    },
    {
     "name": "out",
     "type": "sona_editor_draw_data *"
    }
   ],
   "comment": "The UI layer as of the last sona_editor_update. Pointers stay valid until the next update, resize or close.",
   "doc": "The UI layer as of the last `sona_editor_update`. Pointers stay valid until the next update, resize or close.",
   "page": "Player editor module (sona_editor.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-editor.html#sona_editor_draw_data_get"
  },
  {
   "name": "sona_editor_texture_get",
   "header": "sona_editor.h",
   "section": "the editor",
   "signature": "sona_result sona_editor_texture_get(sona_editor *ed, uint32_t id, sona_editor_texture *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ed",
     "type": "sona_editor *"
    },
    {
     "name": "id",
     "type": "uint32_t"
    },
    {
     "name": "out",
     "type": "sona_editor_texture *"
    }
   ],
   "comment": "",
   "doc": "A texture the draw data names by id, with its pixels (straight RGBA8, owned by the editor) and the rectangle that changed since an older revision, for a host that draws the UI layer itself.",
   "page": "Player editor module (sona_editor.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-editor.html#sona_editor_texture_get"
  },
  {
   "name": "sona_editor_render_ui",
   "header": "sona_editor.h",
   "section": "the editor",
   "signature": "sona_result sona_editor_render_ui(sona_editor *ed, uint8_t *rgba, uint32_t width, uint32_t height, uint32_t stride, int over);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ed",
     "type": "sona_editor *"
    },
    {
     "name": "rgba",
     "type": "uint8_t *"
    },
    {
     "name": "width",
     "type": "uint32_t"
    },
    {
     "name": "height",
     "type": "uint32_t"
    },
    {
     "name": "stride",
     "type": "uint32_t"
    },
    {
     "name": "over",
     "type": "int"
    }
   ],
   "comment": "The UI layer rasterised on the CPU into width x height straight RGBA8 (stride in bytes, 0: width * 4). over 1: blended over what rgba holds (a snapshot of the avatar layer); 0: cleared to transparent first.",
   "doc": "The UI layer rasterised on the CPU into width x height straight RGBA8 (stride in bytes, 0: width * 4). over 1: blended over what rgba holds (a snapshot of the avatar layer); 0: cleared to transparent first.",
   "page": "Player editor module (sona_editor.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-editor.html#sona_editor_render_ui"
  },
  {
   "name": "sona_editor_snapshot",
   "header": "sona_editor.h",
   "section": "the editor",
   "signature": "sona_result sona_editor_snapshot(sona_editor *ed, sona_renderer *r, uint8_t *rgba);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ed",
     "type": "sona_editor *"
    },
    {
     "name": "r",
     "type": "sona_renderer *"
    },
    {
     "name": "rgba",
     "type": "uint8_t *"
    }
   ],
   "comment": "The whole picture into rgba (width * height * 4 of the editor's size): sona_snapshot of the avatar layer, then render_ui over it. For screenshots, tests and servers.",
   "doc": "The whole picture into rgba (width * height * 4 of the editor's size): `sona_snapshot` of the avatar layer, then render_ui over it. For screenshots, tests and servers.",
   "page": "Player editor module (sona_editor.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-editor.html#sona_editor_snapshot"
  },
  {
   "name": "sona_editor_control_count",
   "header": "sona_editor.h",
   "section": "the editor",
   "signature": "uint32_t sona_editor_control_count(const sona_editor *ed);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "ed",
     "type": "const sona_editor *"
    }
   ],
   "comment": "Every control on screen, in reading order, and the focused one.",
   "doc": "Every control on screen, in reading order, and the focused one.",
   "page": "Player editor module (sona_editor.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-editor.html#sona_editor_control_count"
  },
  {
   "name": "sona_editor_control_get",
   "header": "sona_editor.h",
   "section": "the editor",
   "signature": "sona_result sona_editor_control_get(const sona_editor *ed, uint32_t index, sona_editor_control *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ed",
     "type": "const sona_editor *"
    },
    {
     "name": "index",
     "type": "uint32_t"
    },
    {
     "name": "out",
     "type": "sona_editor_control *"
    }
   ],
   "comment": "",
   "doc": "Control `index` in reading order: its id, role, flags, rectangle, value, place in its group, label, value text and hint (\"Wear it\"), for a screen reader or a test.",
   "page": "Player editor module (sona_editor.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-editor.html#sona_editor_control_get"
  },
  {
   "name": "sona_editor_focus_get",
   "header": "sona_editor.h",
   "section": "the editor",
   "signature": "sona_result sona_editor_focus_get(const sona_editor *ed, sona_editor_control *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ed",
     "type": "const sona_editor *"
    },
    {
     "name": "out",
     "type": "sona_editor_control *"
    }
   ],
   "comment": "SONA_E_NOT_FOUND when nothing has focus (pointer-only use).",
   "doc": "`SONA_E_NOT_FOUND` when nothing has focus (pointer-only use).",
   "page": "Player editor module (sona_editor.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-editor.html#sona_editor_focus_get"
  },
  {
   "name": "sona_editor_announcement",
   "header": "sona_editor.h",
   "section": "the editor",
   "signature": "uint32_t sona_editor_announcement(sona_editor *ed, char *out, uint32_t cap);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "ed",
     "type": "sona_editor *"
    },
    {
     "name": "out",
     "type": "char *"
    },
    {
     "name": "cap",
     "type": "uint32_t"
    }
   ],
   "comment": "What a screen reader should say since the last call (\"Wardrobe, tab, 6 of 6\", \"Blue Hoodie, 3 of 120, worn\"): copies it (UTF-8, NUL-terminated, cut at cap) and returns its length; 0 when nothing changed.",
   "doc": "What a screen reader should say since the last call (\"Wardrobe, tab, 6 of 6\", \"Blue Hoodie, 3 of 120, worn\"): copies it (UTF-8, NUL-terminated, cut at cap) and returns its length; 0 when nothing changed.",
   "page": "Player editor module (sona_editor.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-editor.html#sona_editor_announcement"
  },
  {
   "name": "sona_editor_struct_size",
   "header": "sona_editor.h",
   "section": "the editor",
   "signature": "uint32_t sona_editor_struct_size(const char *name);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "name",
     "type": "const char *"
    }
   ],
   "comment": "sizeof a public struct of this header by name, and offsetof \"struct.field\"; 0 and UINT32_MAX when unknown.",
   "doc": "sizeof a public struct of this header by name, for the bindings' layout checks; 0 when unknown.",
   "page": "Player editor module (sona_editor.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-editor.html#sona_editor_struct_size"
  },
  {
   "name": "sona_editor_struct_offset",
   "header": "sona_editor.h",
   "section": "the editor",
   "signature": "uint32_t sona_editor_struct_offset(const char *struct_dot_field);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "struct_dot_field",
     "type": "const char *"
    }
   ],
   "comment": "",
   "doc": "offsetof a field by \"struct.field\"; `UINT32_MAX` when unknown.",
   "page": "Player editor module (sona_editor.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/player-editor.html#sona_editor_struct_offset"
  },
  {
   "name": "sona_npc_defaults",
   "header": "sona_npc.h",
   "section": "",
   "signature": "void sona_npc_defaults(sona_npc_options *o);",
   "returns": "void",
   "params": [
    {
     "name": "o",
     "type": "sona_npc_options *"
    }
   ],
   "comment": "",
   "doc": "`size` set; `look_seconds` 2, `idle_emote_seconds` 8 (0: never).",
   "page": "NPC kit module (sona_npc.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/npc-kit.html#sona_npc_defaults"
  },
  {
   "name": "sona_npc_create",
   "header": "sona_npc.h",
   "section": "",
   "signature": "sona_result sona_npc_create(sona_ctx *ctx, sona_avatar *a, const sona_npc_options *o, sona_npc **out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "ctx",
     "type": "sona_ctx *"
    },
    {
     "name": "a",
     "type": "sona_avatar *"
    },
    {
     "name": "o",
     "type": "const sona_npc_options *"
    },
    {
     "name": "out",
     "type": "sona_npc **"
    }
   ],
   "comment": "Drives a, which must stay in ctx while the NPC lives. NULL options: the defaults.",
   "doc": "Drives a, which must stay in ctx while the NPC lives. NULL options: the defaults.",
   "page": "NPC kit module (sona_npc.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/npc-kit.html#sona_npc_create"
  },
  {
   "name": "sona_npc_destroy",
   "header": "sona_npc.h",
   "section": "",
   "signature": "void sona_npc_destroy(sona_npc *npc);",
   "returns": "void",
   "params": [
    {
     "name": "npc",
     "type": "sona_npc *"
    }
   ],
   "comment": "",
   "doc": "Stops the NPC; the avatar stays in the ctx.",
   "page": "NPC kit module (sona_npc.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/npc-kit.html#sona_npc_destroy"
  },
  {
   "name": "sona_npc_say",
   "header": "sona_npc.h",
   "section": "",
   "signature": "sona_result sona_npc_say(sona_npc *npc, const char *text, uint32_t *line);",
   "returns": "sona_result",
   "params": [
    {
     "name": "npc",
     "type": "sona_npc *"
    },
    {
     "name": "text",
     "type": "const char *"
    },
    {
     "name": "line",
     "type": "uint32_t *"
    }
   ],
   "comment": "Queues a line (UTF-8). *line (may be NULL) is its number, for the line callback.",
   "doc": "Queues a line (UTF-8). *line (may be NULL) is its number, for the line callback.",
   "page": "NPC kit module (sona_npc.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/npc-kit.html#sona_npc_say"
  },
  {
   "name": "sona_npc_emote",
   "header": "sona_npc.h",
   "section": "",
   "signature": "sona_result sona_npc_emote(sona_npc *npc, const char *text);",
   "returns": "sona_result",
   "params": [
    {
     "name": "npc",
     "type": "sona_npc *"
    },
    {
     "name": "text",
     "type": "const char *"
    }
   ],
   "comment": "Emotes from text at once, without speaking (\"wave\", \"laugh\").",
   "doc": "Emotes from text at once, without speaking (\"wave\", \"laugh\").",
   "page": "NPC kit module (sona_npc.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/npc-kit.html#sona_npc_emote"
  },
  {
   "name": "sona_npc_look_at",
   "header": "sona_npc.h",
   "section": "",
   "signature": "sona_result sona_npc_look_at(sona_npc *npc, const float target[3]);",
   "returns": "sona_result",
   "params": [
    {
     "name": "npc",
     "type": "sona_npc *"
    },
    {
     "name": "target",
     "type": "const float [3]"
    }
   ],
   "comment": "The player's head, world space; NULL: no player to look at.",
   "doc": "The player's head, world space; NULL: no player to look at.",
   "page": "NPC kit module (sona_npc.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/npc-kit.html#sona_npc_look_at"
  },
  {
   "name": "sona_npc_update",
   "header": "sona_npc.h",
   "section": "",
   "signature": "sona_result sona_npc_update(sona_npc *npc, double dt);",
   "returns": "sona_result",
   "params": [
    {
     "name": "npc",
     "type": "sona_npc *"
    },
    {
     "name": "dt",
     "type": "double"
    }
   ],
   "comment": "",
   "doc": "Advances the NPC by `dt` seconds: the line being said and its lip sync, emotes, the look at the player and the idle. Call it each frame before `sona_update`.",
   "page": "NPC kit module (sona_npc.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/npc-kit.html#sona_npc_update"
  },
  {
   "name": "sona_npc_state_get",
   "header": "sona_npc.h",
   "section": "",
   "signature": "sona_result sona_npc_state_get(const sona_npc *npc, sona_npc_state *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "npc",
     "type": "const sona_npc *"
    },
    {
     "name": "out",
     "type": "sona_npc_state *"
    }
   ],
   "comment": "",
   "doc": "What the NPC is doing: idle, speaking or emoting, the line being said (0 when none) and how many lines wait.",
   "page": "NPC kit module (sona_npc.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/npc-kit.html#sona_npc_state_get"
  },
  {
   "name": "sona_npc_struct_size",
   "header": "sona_npc.h",
   "section": "",
   "signature": "uint32_t sona_npc_struct_size(const char *name);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "name",
     "type": "const char *"
    }
   ],
   "comment": "sizeof and offsetof for the bindings' layout checks. 0 and UINT32_MAX when unknown.",
   "doc": "sizeof a public struct of this header by name, for the bindings' layout checks; 0 when unknown.",
   "page": "NPC kit module (sona_npc.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/npc-kit.html#sona_npc_struct_size"
  },
  {
   "name": "sona_npc_struct_offset",
   "header": "sona_npc.h",
   "section": "",
   "signature": "uint32_t sona_npc_struct_offset(const char *struct_dot_field);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "struct_dot_field",
     "type": "const char *"
    }
   ],
   "comment": "",
   "doc": "offsetof a field by \"struct.field\"; `UINT32_MAX` when unknown.",
   "page": "NPC kit module (sona_npc.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/npc-kit.html#sona_npc_struct_offset"
  },
  {
   "name": "sona_track_blendshape_name",
   "header": "sona_track.h",
   "section": "",
   "signature": "const char * sona_track_blendshape_name(uint32_t index);",
   "returns": "const char *",
   "params": [
    {
     "name": "index",
     "type": "uint32_t"
    }
   ],
   "comment": "\"eyeBlinkLeft\", ... as both trackers spell them; NULL past the last. find: -1 when unknown.",
   "doc": "The name of blendshape `index` (\"eyeBlinkLeft\", ...) as both trackers spell them; NULL past the last.",
   "page": "Face tracking module (sona_track.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/face-tracking.html#sona_track_blendshape_name"
  },
  {
   "name": "sona_track_blendshape_find",
   "header": "sona_track.h",
   "section": "",
   "signature": "int32_t sona_track_blendshape_find(const char *name);",
   "returns": "int32_t",
   "params": [
    {
     "name": "name",
     "type": "const char *"
    }
   ],
   "comment": "",
   "doc": "The index of a blendshape by name; -1 when unknown.",
   "page": "Face tracking module (sona_track.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/face-tracking.html#sona_track_blendshape_find"
  },
  {
   "name": "sona_track_defaults",
   "header": "sona_track.h",
   "section": "",
   "signature": "void sona_track_defaults(sona_track_options *o);",
   "returns": "void",
   "params": [
    {
     "name": "o",
     "type": "sona_track_options *"
    }
   ],
   "comment": "",
   "doc": "`size` set and the filter and head settings the face tracking guide lists ([sdk-native/face-tracking.md](sdk-native/face-tracking.md)).",
   "page": "Face tracking module (sona_track.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/face-tracking.html#sona_track_defaults"
  },
  {
   "name": "sona_track_create",
   "header": "sona_track.h",
   "section": "",
   "signature": "sona_result sona_track_create(const sona_track_options *o, sona_tracker **out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "o",
     "type": "const sona_track_options *"
    },
    {
     "name": "out",
     "type": "sona_tracker **"
    }
   ],
   "comment": "NULL options: the defaults. SONA_E_ARGUMENT for a wrong size or a value out of range.",
   "doc": "NULL options: the defaults. `SONA_E_ARGUMENT` for a wrong size or a value out of range.",
   "page": "Face tracking module (sona_track.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/face-tracking.html#sona_track_create"
  },
  {
   "name": "sona_track_destroy",
   "header": "sona_track.h",
   "section": "",
   "signature": "void sona_track_destroy(sona_tracker *t);",
   "returns": "void",
   "params": [
    {
     "name": "t",
     "type": "sona_tracker *"
    }
   ],
   "comment": "",
   "doc": "Frees the tracker.",
   "page": "Face tracking module (sona_track.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/face-tracking.html#sona_track_destroy"
  },
  {
   "name": "sona_track_set_options",
   "header": "sona_track.h",
   "section": "",
   "signature": "sona_result sona_track_set_options(sona_tracker *t, const sona_track_options *o);",
   "returns": "sona_result",
   "params": [
    {
     "name": "t",
     "type": "sona_tracker *"
    },
    {
     "name": "o",
     "type": "const sona_track_options *"
    }
   ],
   "comment": "",
   "doc": "New options from the next frame; the filters keep their state. `SONA_E_ARGUMENT` for a wrong size or a value out of range.",
   "page": "Face tracking module (sona_track.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/face-tracking.html#sona_track_set_options"
  },
  {
   "name": "sona_track_reset",
   "header": "sona_track.h",
   "section": "",
   "signature": "void sona_track_reset(sona_tracker *t);",
   "returns": "void",
   "params": [
    {
     "name": "t",
     "type": "sona_tracker *"
    }
   ],
   "comment": "Forgets the filters, the shapes held and the tracking state; keeps the options and the calibration.",
   "doc": "Forgets the filters, the shapes held and the tracking state; keeps the options and the calibration.",
   "page": "Face tracking module (sona_track.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/face-tracking.html#sona_track_reset"
  },
  {
   "name": "sona_track_face_input_defaults",
   "header": "sona_track.h",
   "section": "",
   "signature": "void sona_track_face_input_defaults(sona_track_face_input *in);",
   "returns": "void",
   "params": [
    {
     "name": "in",
     "type": "sona_track_face_input *"
    }
   ],
   "comment": "",
   "doc": "`size` set, the ARKit layout, nothing found.",
   "page": "Face tracking module (sona_track.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/face-tracking.html#sona_track_face_input_defaults"
  },
  {
   "name": "sona_track_face_feed",
   "header": "sona_track.h",
   "section": "",
   "signature": "sona_result sona_track_face_feed(sona_tracker *t, const sona_track_face_input *in);",
   "returns": "sona_result",
   "params": [
    {
     "name": "t",
     "type": "sona_tracker *"
    },
    {
     "name": "in",
     "type": "const sona_track_face_input *"
    }
   ],
   "comment": "SONA_E_ARGUMENT for a wrong size, layout or count, a missing weights pointer with FOUND, or a time that is not finite. A time more than a second away from the last one (or earlier than it) starts the filters again.",
   "doc": "`SONA_E_ARGUMENT` for a wrong size, layout or count, a missing weights pointer with FOUND, or a time that is not finite. A time more than a second away from the last one (or earlier than it) starts the filters again.",
   "page": "Face tracking module (sona_track.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/face-tracking.html#sona_track_face_feed"
  },
  {
   "name": "sona_track_face_get",
   "header": "sona_track.h",
   "section": "",
   "signature": "sona_result sona_track_face_get(const sona_tracker *t, sona_track_face_state *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "t",
     "type": "const sona_tracker *"
    },
    {
     "name": "out",
     "type": "sona_track_face_state *"
    }
   ],
   "comment": "",
   "doc": "What the tracker makes of the frames so far: the filtered, calibrated weights in ARKit order (sides swapped under `SONA_TRACK_MIRROR`, so Left is the avatar's left) and the head.",
   "page": "Face tracking module (sona_track.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/face-tracking.html#sona_track_face_get"
  },
  {
   "name": "sona_track_calibrate_begin",
   "header": "sona_track.h",
   "section": "",
   "signature": "sona_result sona_track_calibrate_begin(sona_tracker *t);",
   "returns": "sona_result",
   "params": [
    {
     "name": "t",
     "type": "sona_tracker *"
    }
   ],
   "comment": "",
   "doc": "Starts collecting a neutral face: every frame with a face from now on counts.",
   "page": "Face tracking module (sona_track.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/face-tracking.html#sona_track_calibrate_begin"
  },
  {
   "name": "sona_track_calibrate_end",
   "header": "sona_track.h",
   "section": "",
   "signature": "sona_result sona_track_calibrate_end(sona_tracker *t, sona_track_calibration *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "t",
     "type": "sona_tracker *"
    },
    {
     "name": "out",
     "type": "sona_track_calibration *"
    }
   ],
   "comment": "",
   "doc": "Stops and makes each weight's 30th percentile over the frames (the first 300) and their mean head rotation the neutral, and writes it to `out` (may be NULL). `SONA_E_NOT_READY` when no face came in between. Each weight's neutral value is taken off it and the rest rescaled to 0..1; the neutral head rotation becomes identity.",
   "page": "Face tracking module (sona_track.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/face-tracking.html#sona_track_calibrate_end"
  },
  {
   "name": "sona_track_calibration_set",
   "header": "sona_track.h",
   "section": "",
   "signature": "sona_result sona_track_calibration_set(sona_tracker *t, const sona_track_calibration *c);",
   "returns": "sona_result",
   "params": [
    {
     "name": "t",
     "type": "sona_tracker *"
    },
    {
     "name": "c",
     "type": "const sona_track_calibration *"
    }
   ],
   "comment": "A saved calibration, for the next session; NULL clears it.",
   "doc": "A saved calibration, for the next session; NULL clears it.",
   "page": "Face tracking module (sona_track.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/face-tracking.html#sona_track_calibration_set"
  },
  {
   "name": "sona_track_calibration_get",
   "header": "sona_track.h",
   "section": "",
   "signature": "sona_result sona_track_calibration_get(const sona_tracker *t, sona_track_calibration *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "t",
     "type": "const sona_tracker *"
    },
    {
     "name": "out",
     "type": "sona_track_calibration *"
    }
   ],
   "comment": "",
   "doc": "The calibration in use, as `sona_track_calibrate_end` or `sona_track_calibration_set` left it.",
   "page": "Face tracking module (sona_track.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/face-tracking.html#sona_track_calibration_get"
  },
  {
   "name": "sona_track_apply",
   "header": "sona_track.h",
   "section": "",
   "signature": "sona_result sona_track_apply(sona_tracker *t, sona_avatar *a);",
   "returns": "sona_result",
   "params": [
    {
     "name": "t",
     "type": "sona_tracker *"
    },
    {
     "name": "a",
     "type": "sona_avatar *"
    }
   ],
   "comment": "Puts the state on an avatar: the face shapes through sona_avatar_expression (only when they change) and the head through ADD overrides on Neck and Head, aimed in the avatar's body space from its posed joints, so it holds for any turn, lean or clip (overrides need a clip playing: the default idle does). Call it after the feed and before sona_update. One tracker drives one avatar at a time: moving it to another leaves the first as it is, so release that one first. SONA_E_NOT_READY until the avatar is READY and posed.",
   "doc": "Puts the state on an avatar: the face shapes through `sona_avatar_expression` (only when they change) and the head through ADD overrides on Neck and Head, aimed in the avatar's body space from its posed joints, so it holds for any turn, lean or clip (overrides need a clip playing: the default idle does). Call it after the feed and before `sona_update`. One tracker drives one avatar at a time: moving it to another leaves the first as it is, so release that one first. `SONA_E_NOT_READY` until the avatar is READY and posed.",
   "page": "Face tracking module (sona_track.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/face-tracking.html#sona_track_apply"
  },
  {
   "name": "sona_track_release",
   "header": "sona_track.h",
   "section": "",
   "signature": "void sona_track_release(sona_tracker *t, sona_avatar *a);",
   "returns": "void",
   "params": [
    {
     "name": "t",
     "type": "sona_tracker *"
    },
    {
     "name": "a",
     "type": "sona_avatar *"
    }
   ],
   "comment": "Hands the face and the tracker's joints back to the clip; nothing when a is not the avatar it drives.",
   "doc": "Hands the face and the tracker's joints back to the clip; nothing when a is not the avatar it drives.",
   "page": "Face tracking module (sona_track.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/face-tracking.html#sona_track_release"
  },
  {
   "name": "sona_track_quat_from_matrix",
   "header": "sona_track.h",
   "section": "",
   "signature": "sona_result sona_track_quat_from_matrix(const float *m, uint32_t stride, int transpose, float q[4]);",
   "returns": "sona_result",
   "params": [
    {
     "name": "m",
     "type": "const float *"
    },
    {
     "name": "stride",
     "type": "uint32_t"
    },
    {
     "name": "transpose",
     "type": "int"
    },
    {
     "name": "q",
     "type": "float [4]"
    }
   ],
   "comment": "A rotation matrix to the quaternion head_rotation takes. m holds the 3x3 rotation row by row (m[0..2] the first row); stride is the distance between rows in floats, 3 for a 3x3 and 4 for the upper left of a row-major 4x4 (MediaPipe's facial transformation matrix as numpy holds it). A column-major 4x4 (ARKit's simd_float4x4, glTF) is the transpose: pass transpose 1. Scale is removed.",
   "doc": "A rotation matrix to the quaternion head_rotation takes. m holds the 3x3 rotation row by row (m[0..2] the first row); stride is the distance between rows in floats, 3 for a 3x3 and 4 for the upper left of a row-major 4x4 (MediaPipe's facial transformation matrix as numpy holds it). A column-major 4x4 (ARKit's simd_float4x4, glTF) is the transpose: pass transpose 1. Scale is removed.",
   "page": "Face tracking module (sona_track.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/face-tracking.html#sona_track_quat_from_matrix"
  },
  {
   "name": "sona_track_quat_from_euler",
   "header": "sona_track.h",
   "section": "",
   "signature": "void sona_track_quat_from_euler(float pitch_deg, float yaw_deg, float roll_deg, float q[4]);",
   "returns": "void",
   "params": [
    {
     "name": "pitch_deg",
     "type": "float"
    },
    {
     "name": "yaw_deg",
     "type": "float"
    },
    {
     "name": "roll_deg",
     "type": "float"
    },
    {
     "name": "q",
     "type": "float [4]"
    }
   ],
   "comment": "Degrees, right-handed about the camera axes: pitch about +X (nodding down is positive), yaw about +Y (turning towards the image's right, the subject's own left, is positive), roll about +Z; applied roll, then pitch, then yaw (q = yaw * pitch * roll). Many trackers (OpenSeeFace, head-pose solvers) give these.",
   "doc": "Degrees, right-handed about the camera axes: pitch about +X (nodding down is positive), yaw about +Y (turning towards the image's right, the subject's own left, is positive), roll about +Z; applied roll, then pitch, then yaw (q = yaw * pitch * roll). Many trackers (OpenSeeFace, head-pose solvers) give these.",
   "page": "Face tracking module (sona_track.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/face-tracking.html#sona_track_quat_from_euler"
  },
  {
   "name": "sona_track_struct_size",
   "header": "sona_track.h",
   "section": "",
   "signature": "uint32_t sona_track_struct_size(const char *name);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "name",
     "type": "const char *"
    }
   ],
   "comment": "sizeof and offsetof for the bindings' layout checks: \"sona_track_options\", \"sona_track_face_state.weights\". 0 and UINT32_MAX when unknown.",
   "doc": "sizeof a public struct of this header by name (\"sona_track_options\"), for the bindings' layout checks; 0 when unknown.",
   "page": "Face tracking module (sona_track.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/face-tracking.html#sona_track_struct_size"
  },
  {
   "name": "sona_track_struct_offset",
   "header": "sona_track.h",
   "section": "",
   "signature": "uint32_t sona_track_struct_offset(const char *struct_dot_field);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "struct_dot_field",
     "type": "const char *"
    }
   ],
   "comment": "",
   "doc": "offsetof a field by \"struct.field\" (\"sona_track_face_state.weights\"); `UINT32_MAX` when unknown.",
   "page": "Face tracking module (sona_track.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/face-tracking.html#sona_track_struct_offset"
  },
  {
   "name": "sona_xr_defaults",
   "header": "sona_xr.h",
   "section": "",
   "signature": "void sona_xr_defaults(sona_xr_options *o);",
   "returns": "void",
   "params": [
    {
     "name": "o",
     "type": "sona_xr_options *"
    }
   ],
   "comment": "",
   "doc": "`size` set; `step_distance` 0.25.",
   "page": "XR body module (sona_xr.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/xr-body.html#sona_xr_defaults"
  },
  {
   "name": "sona_xr_create",
   "header": "sona_xr.h",
   "section": "",
   "signature": "sona_result sona_xr_create(const sona_xr_options *o, sona_xr_body **out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "o",
     "type": "const sona_xr_options *"
    },
    {
     "name": "out",
     "type": "sona_xr_body **"
    }
   ],
   "comment": "",
   "doc": "A first-person body for a headset and two controllers. NULL options: the defaults.",
   "page": "XR body module (sona_xr.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/xr-body.html#sona_xr_create"
  },
  {
   "name": "sona_xr_destroy",
   "header": "sona_xr.h",
   "section": "",
   "signature": "void sona_xr_destroy(sona_xr_body *xr);",
   "returns": "void",
   "params": [
    {
     "name": "xr",
     "type": "sona_xr_body *"
    }
   ],
   "comment": "",
   "doc": "Frees it.",
   "page": "XR body module (sona_xr.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/xr-body.html#sona_xr_destroy"
  },
  {
   "name": "sona_xr_input_defaults",
   "header": "sona_xr.h",
   "section": "",
   "signature": "void sona_xr_input_defaults(sona_xr_input *in);",
   "returns": "void",
   "params": [
    {
     "name": "in",
     "type": "sona_xr_input *"
    }
   ],
   "comment": "",
   "doc": "`size` set, the three poses at the origin with no turn, the floor at 0.",
   "page": "XR body module (sona_xr.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/xr-body.html#sona_xr_input_defaults"
  },
  {
   "name": "sona_xr_feed",
   "header": "sona_xr.h",
   "section": "",
   "signature": "sona_result sona_xr_feed(sona_xr_body *xr, const sona_xr_input *in);",
   "returns": "sona_result",
   "params": [
    {
     "name": "xr",
     "type": "sona_xr_body *"
    },
    {
     "name": "in",
     "type": "const sona_xr_input *"
    }
   ],
   "comment": "",
   "doc": "One frame of the head and the two grip poses (world metres, as `XrPosef`), with its time in seconds and the floor's height.",
   "page": "XR body module (sona_xr.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/xr-body.html#sona_xr_feed"
  },
  {
   "name": "sona_xr_calibrate",
   "header": "sona_xr.h",
   "section": "",
   "signature": "sona_result sona_xr_calibrate(sona_xr_body *xr);",
   "returns": "sona_result",
   "params": [
    {
     "name": "xr",
     "type": "sona_xr_body *"
    }
   ],
   "comment": "Takes the wearer's height and arm span from the poses fed while they stand straight.",
   "doc": "Takes the wearer's height and arm span from the poses fed while they stand straight.",
   "page": "XR body module (sona_xr.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/xr-body.html#sona_xr_calibrate"
  },
  {
   "name": "sona_xr_apply",
   "header": "sona_xr.h",
   "section": "",
   "signature": "sona_result sona_xr_apply(sona_xr_body *xr, sona_avatar *a);",
   "returns": "sona_result",
   "params": [
    {
     "name": "xr",
     "type": "sona_xr_body *"
    },
    {
     "name": "a",
     "type": "sona_avatar *"
    }
   ],
   "comment": "Puts the body on an avatar, scaled to the wearer. SONA_E_NOT_READY until the avatar is READY and posed.",
   "doc": "Puts the body on an avatar, scaled to the wearer. `SONA_E_NOT_READY` until the avatar is READY and posed.",
   "page": "XR body module (sona_xr.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/xr-body.html#sona_xr_apply"
  },
  {
   "name": "sona_xr_release",
   "header": "sona_xr.h",
   "section": "",
   "signature": "void sona_xr_release(sona_xr_body *xr, sona_avatar *a);",
   "returns": "void",
   "params": [
    {
     "name": "xr",
     "type": "sona_xr_body *"
    },
    {
     "name": "a",
     "type": "sona_avatar *"
    }
   ],
   "comment": "",
   "doc": "Hands the avatar's joints back to its clip; nothing when `a` is not the avatar it drives.",
   "page": "XR body module (sona_xr.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/xr-body.html#sona_xr_release"
  },
  {
   "name": "sona_xr_status_get",
   "header": "sona_xr.h",
   "section": "",
   "signature": "sona_result sona_xr_status_get(const sona_xr_body *xr, sona_xr_status *out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "xr",
     "type": "const sona_xr_body *"
    },
    {
     "name": "out",
     "type": "sona_xr_status *"
    }
   ],
   "comment": "",
   "doc": "Fills `out` (a `sona_xr_status`) with what the last `sona_xr_apply` did: the poses tracked, the eye height and scale\nin use, the body's turn, placement and crouch, the steps taken and where the avatar's eyes were put. `out->size` is set\nby the call. `SONA_E_NOT_READY`, with `out` zeroed, before the body has been applied; `SONA_E_ARGUMENT` for NULL.",
   "page": "XR body module (sona_xr.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/xr-body.html#sona_xr_status_get"
  },
  {
   "name": "sona_xr_openxr_to_world",
   "header": "sona_xr.h",
   "section": "",
   "signature": "void sona_xr_openxr_to_world(const sona_xr_pose *in, sona_xr_pose *out);",
   "returns": "void",
   "params": [
    {
     "name": "in",
     "type": "const sona_xr_pose *"
    },
    {
     "name": "out",
     "type": "sona_xr_pose *"
    }
   ],
   "comment": "An OpenXR pose (a view, a hand, an object) in sona's world. in and out may be the same.",
   "doc": "Turns an OpenXR pose (a view, a hand, an object; right-handed) into sona's world: z mirrored, then half a turn about\nY, so OpenXR's identity faces -Z as an avatar at turn 0 does. `in` and `out` may be the same. The module does this\nitself for poses fed with `SONA_XR_OPENXR_SPACE`; call it to place your own things beside the body. Nothing for NULL.",
   "page": "XR body module (sona_xr.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/xr-body.html#sona_xr_openxr_to_world"
  },
  {
   "name": "sona_xr_struct_size",
   "header": "sona_xr.h",
   "section": "",
   "signature": "uint32_t sona_xr_struct_size(const char *name);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "name",
     "type": "const char *"
    }
   ],
   "comment": "sizeof and offsetof for the bindings' layout checks. 0 and UINT32_MAX when unknown.",
   "doc": "sizeof a public struct of this header by name, for the bindings' layout checks; 0 when unknown.",
   "page": "XR body module (sona_xr.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/xr-body.html#sona_xr_struct_size"
  },
  {
   "name": "sona_xr_struct_offset",
   "header": "sona_xr.h",
   "section": "",
   "signature": "uint32_t sona_xr_struct_offset(const char *struct_dot_field);",
   "returns": "uint32_t",
   "params": [
    {
     "name": "struct_dot_field",
     "type": "const char *"
    }
   ],
   "comment": "",
   "doc": "offsetof a field by \"struct.field\"; `UINT32_MAX` when unknown.",
   "page": "XR body module (sona_xr.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/xr-body.html#sona_xr_struct_offset"
  },
  {
   "name": "sona_xsdk_defaults",
   "header": "sona_xsdk.h",
   "section": "",
   "signature": "void sona_xsdk_defaults(sona_xsdk_config *c);",
   "returns": "void",
   "params": [
    {
     "name": "c",
     "type": "sona_xsdk_config *"
    }
   ],
   "comment": "",
   "doc": "`size` set; `folder` `\"game:/\"`, `tv` 1, `max_avatars` 64, `memory_mb` 160, `workers` 5, `log_level` `SONA_LOG_WARN`, a dark blue `clear`.",
   "page": "Xbox 360 homebrew module (sona_xsdk.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/xbox-360-homebrew-module-sona_xsdkh.html#sona_xsdk_defaults"
  },
  {
   "name": "sona_xsdk_open",
   "header": "sona_xsdk.h",
   "section": "",
   "signature": "sona_result sona_xsdk_open(const sona_xsdk_config *c, sona_xsdk **out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "c",
     "type": "const sona_xsdk_config *"
    },
    {
     "name": "out",
     "type": "sona_xsdk **"
    }
   ],
   "comment": "Opens the core and the renderer, starts the workers and, when c->tv and a display opens, xsdk's present at 720p. The sources are <folder>360sona/ when it exists (item files of your own, read first) and then 360sona over HTTPS. A hosts file beside the .xex (\"<IPv4> <name>\" lines) answers names DNS doesn't (Xenia). Blocks until the renderer is ready, at most 60 s. SONA_E_NOT_FOUND: no sona-licence.json.",
   "doc": "Takes the licence built into the title (`samples/x360/embed-licence.cmake`), else `sona-licence.json` from `folder`, and opens the core with two sources: `folder`'s `360sona/` when there is one, then the gate. Starts the workers on hardware threads 1 to 5, opens xsdk's present at 720p when `tv` is 1 and a display opens, and blocks until the Xenos renderer is ready, at most 60 s. Each failure is written to the title's log. `SONA_E_NOT_FOUND` when the title has no licence built in and there is no `sona-licence.json` in `folder`.",
   "page": "Xbox 360 homebrew module (sona_xsdk.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/xbox-360-homebrew-module-sona_xsdkh.html#sona_xsdk_open"
  },
  {
   "name": "sona_xsdk_add_player",
   "header": "sona_xsdk.h",
   "section": "",
   "signature": "sona_result sona_xsdk_add_player(sona_xsdk *sx, uint32_t user_index, const sona_add_options *opts, sona_avatar **out);",
   "returns": "sona_result",
   "params": [
    {
     "name": "sx",
     "type": "sona_xsdk *"
    },
    {
     "name": "user_index",
     "type": "uint32_t"
    },
    {
     "name": "opts",
     "type": "const sona_add_options *"
    },
    {
     "name": "out",
     "type": "sona_avatar **"
    }
   ],
   "comment": "The signed-in player in their own avatar, idling, facing the camera at the middle of the stage. In order, the first that answers: the avatar stored in their profile on this console; their gamertag through 360sona's lookup; the gamertag in sona-player.txt beside the .xex (an emulator, where nobody is signed in). Until one answers, and when none does, the neutral figure stands there. The avatar changes on its own when the answer comes; *out stays the same handle. user_index 0 to 3; opts NULL for the defaults.",
   "doc": "The signed-in player in their own avatar, in the middle of the stage facing the camera. It tries the profile on this console first, then 360sona's lookup by the profile's gamertag, then the gamertag in `sona-player.txt` in `folder`. The neutral figure stands there until one answers, and `*out` keeps the same handle when it does. `opts` NULL: the defaults, idling. `SONA_E_ARGUMENT` for a fifth player or a `user_index` past 3.",
   "page": "Xbox 360 homebrew module (sona_xsdk.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/xbox-360-homebrew-module-sona_xsdkh.html#sona_xsdk_add_player"
  },
  {
   "name": "sona_xsdk_view",
   "header": "sona_xsdk.h",
   "section": "",
   "signature": "void sona_xsdk_view(const sona_xsdk *sx, sona_view *view);",
   "returns": "void",
   "params": [
    {
     "name": "sx",
     "type": "const sona_xsdk *"
    },
    {
     "name": "view",
     "type": "sona_view *"
    }
   ],
   "comment": "A view of the stage at the display's size: 40 degrees, from 1.35 m up and 5.2 m back.",
   "doc": "The stage at 1280 by 720: 40 degrees, from 1.35 m up and 5.2 m back. `sona_camera_preset` frames one avatar instead.",
   "page": "Xbox 360 homebrew module (sona_xsdk.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/xbox-360-homebrew-module-sona_xsdkh.html#sona_xsdk_view"
  },
  {
   "name": "sona_xsdk_frame",
   "header": "sona_xsdk.h",
   "section": "",
   "signature": "int sona_xsdk_frame(sona_xsdk *sx, const sona_view *view);",
   "returns": "int",
   "params": [
    {
     "name": "sx",
     "type": "sona_xsdk *"
    },
    {
     "name": "view",
     "type": "const sona_view *"
    }
   ],
   "comment": "One frame: updates the core (the time since the last frame), the player lookups and the controller, draws the view and presents it, paced to vblank. Returns 0 when the title should end: BACK on the first controller, or the display gone. Off screen it draws into a target of its own and returns 1 until sona_xsdk_close.",
   "doc": "Returns 1 while the title should go on, and 0 for BACK on the first controller or when the display is gone. Reads the first controller (nothing while the Guide is open) and takes the players' lookups. Calls `sona_update` with the time since the last frame, draws `view` and presents it on vblank. Off screen it draws into a target of its own. It never takes the context's events: `sona_poll_event` on `sona_xsdk_ctx(sx)` still gives them.",
   "page": "Xbox 360 homebrew module (sona_xsdk.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/xbox-360-homebrew-module-sona_xsdkh.html#sona_xsdk_frame"
  },
  {
   "name": "sona_xsdk_dt",
   "header": "sona_xsdk.h",
   "section": "",
   "signature": "double sona_xsdk_dt(const sona_xsdk *sx);",
   "returns": "double",
   "params": [
    {
     "name": "sx",
     "type": "const sona_xsdk *"
    }
   ],
   "comment": "The seconds between the last two frames (for moving things), and since open.",
   "doc": "The seconds between the last two frames, for moving things.",
   "page": "Xbox 360 homebrew module (sona_xsdk.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/xbox-360-homebrew-module-sona_xsdkh.html#sona_xsdk_dt"
  },
  {
   "name": "sona_xsdk_time",
   "header": "sona_xsdk.h",
   "section": "",
   "signature": "double sona_xsdk_time(const sona_xsdk *sx);",
   "returns": "double",
   "params": [
    {
     "name": "sx",
     "type": "const sona_xsdk *"
    }
   ],
   "comment": "",
   "doc": "The seconds since `sona_xsdk_open`.",
   "page": "Xbox 360 homebrew module (sona_xsdk.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/xbox-360-homebrew-module-sona_xsdkh.html#sona_xsdk_time"
  },
  {
   "name": "sona_xsdk_held",
   "header": "sona_xsdk.h",
   "section": "",
   "signature": "uint16_t sona_xsdk_held(const sona_xsdk *sx);",
   "returns": "uint16_t",
   "params": [
    {
     "name": "sx",
     "type": "const sona_xsdk *"
    }
   ],
   "comment": "The first controller's buttons (INPUT_GAMEPAD_*) held now, and pressed since the last frame.",
   "doc": "The first controller's buttons held at the last frame, as `INPUT_GAMEPAD_*` bits.",
   "page": "Xbox 360 homebrew module (sona_xsdk.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/xbox-360-homebrew-module-sona_xsdkh.html#sona_xsdk_held"
  },
  {
   "name": "sona_xsdk_pressed",
   "header": "sona_xsdk.h",
   "section": "",
   "signature": "uint16_t sona_xsdk_pressed(const sona_xsdk *sx);",
   "returns": "uint16_t",
   "params": [
    {
     "name": "sx",
     "type": "const sona_xsdk *"
    }
   ],
   "comment": "",
   "doc": "The buttons pressed since the frame before, as `INPUT_GAMEPAD_*` bits.",
   "page": "Xbox 360 homebrew module (sona_xsdk.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/xbox-360-homebrew-module-sona_xsdkh.html#sona_xsdk_pressed"
  },
  {
   "name": "sona_xsdk_stick",
   "header": "sona_xsdk.h",
   "section": "",
   "signature": "void sona_xsdk_stick(const sona_xsdk *sx, float *x, float *y);",
   "returns": "void",
   "params": [
    {
     "name": "sx",
     "type": "const sona_xsdk *"
    },
    {
     "name": "x",
     "type": "float *"
    },
    {
     "name": "y",
     "type": "float *"
    }
   ],
   "comment": "The first controller's left stick at the last frame, each axis -1 to 1 (up is +y), 0 inside the usual dead zone.",
   "doc": "The first controller's left stick at the last frame, each axis -1 to 1 with up as +y, and 0 inside the usual dead\nzone (7,849 of 32,767). `x` and `y` may be NULL.",
   "page": "Xbox 360 homebrew module (sona_xsdk.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/xbox-360-homebrew-module-sona_xsdkh.html#sona_xsdk_stick"
  },
  {
   "name": "sona_xsdk_on_tv",
   "header": "sona_xsdk.h",
   "section": "",
   "signature": "int sona_xsdk_on_tv(const sona_xsdk *sx);",
   "returns": "int",
   "params": [
    {
     "name": "sx",
     "type": "const sona_xsdk *"
    }
   ],
   "comment": "1 when frames go to the TV, 0 when off screen (no display, as in Xenia, or c->tv 0).",
   "doc": "1 when frames go to the TV; 0 when they are drawn off screen (no display, as in Xenia, or `tv` 0).",
   "page": "Xbox 360 homebrew module (sona_xsdk.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/xbox-360-homebrew-module-sona_xsdkh.html#sona_xsdk_on_tv"
  },
  {
   "name": "sona_xsdk_settled",
   "header": "sona_xsdk.h",
   "section": "",
   "signature": "int sona_xsdk_settled(const sona_xsdk *sx);",
   "returns": "int",
   "params": [
    {
     "name": "sx",
     "type": "const sona_xsdk *"
    }
   ],
   "comment": "Every avatar added so far is ready or failed.",
   "doc": "1 when every player's avatar is known and nothing is still loading.",
   "page": "Xbox 360 homebrew module (sona_xsdk.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/xbox-360-homebrew-module-sona_xsdkh.html#sona_xsdk_settled"
  },
  {
   "name": "sona_xsdk_snapshot",
   "header": "sona_xsdk.h",
   "section": "",
   "signature": "sona_result sona_xsdk_snapshot(sona_xsdk *sx, const sona_view *view, const char *name);",
   "returns": "sona_result",
   "params": [
    {
     "name": "sx",
     "type": "sona_xsdk *"
    },
    {
     "name": "view",
     "type": "const sona_view *"
    },
    {
     "name": "name",
     "type": "const char *"
    }
   ],
   "comment": "The view drawn once more and written beside the .xex, or to cache:\\ where game:\\ is read-only: a .png or .ppm, by name's ending.",
   "doc": "Draws `view` once more, reads it back and writes it to `folder`, or to `cache:\\` where `folder` is read-only (Xenia).",
   "page": "Xbox 360 homebrew module (sona_xsdk.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/xbox-360-homebrew-module-sona_xsdkh.html#sona_xsdk_snapshot"
  },
  {
   "name": "sona_xsdk_ctx",
   "header": "sona_xsdk.h",
   "section": "",
   "signature": "sona_ctx * sona_xsdk_ctx(sona_xsdk *sx);",
   "returns": "sona_ctx *",
   "params": [
    {
     "name": "sx",
     "type": "sona_xsdk *"
    }
   ],
   "comment": "",
   "doc": "The context, for every other call of `sona.h`.",
   "page": "Xbox 360 homebrew module (sona_xsdk.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/xbox-360-homebrew-module-sona_xsdkh.html#sona_xsdk_ctx"
  },
  {
   "name": "sona_xsdk_renderer",
   "header": "sona_xsdk.h",
   "section": "",
   "signature": "sona_renderer * sona_xsdk_renderer(sona_xsdk *sx);",
   "returns": "sona_renderer *",
   "params": [
    {
     "name": "sx",
     "type": "sona_xsdk *"
    }
   ],
   "comment": "",
   "doc": "The Xenos renderer, for `sona_draw` and `sona_snapshot` of your own.",
   "page": "Xbox 360 homebrew module (sona_xsdk.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/xbox-360-homebrew-module-sona_xsdkh.html#sona_xsdk_renderer"
  },
  {
   "name": "sona_xsdk_close",
   "header": "sona_xsdk.h",
   "section": "",
   "signature": "void sona_xsdk_close(sona_xsdk *sx);",
   "returns": "void",
   "params": [
    {
     "name": "sx",
     "type": "sona_xsdk *"
    }
   ],
   "comment": "Closes the renderer, the core and the display. Call it once the title is done drawing.",
   "doc": "Closes the lookups, the renderer, the context and the display. The worker threads stay for a later `sona_xsdk_open`.",
   "page": "Xbox 360 homebrew module (sona_xsdk.h)",
   "anchor": "https://360sona.com/devs/docs/reference/c/xbox-360-homebrew-module-sona_xsdkh.html#sona_xsdk_close"
  }
 ],
 "types": [
  {
   "name": "sona_result",
   "kind": "enum",
   "header": "sona.h",
   "section": "3.1 results",
   "comment": ""
  },
  {
   "name": "sona_error_info",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.1 results",
   "comment": "The last error on a ctx: code, message and what to do about it. Strings live until the next error."
  },
  {
   "name": "sona_allocator",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.3 host services: memory, jobs, logging",
   "comment": ""
  },
  {
   "name": "sona_budget",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.3 host services: memory, jobs, logging",
   "comment": "Memory budget in bytes. Zero fields take the defaults shown. Caches evict idle entries, oldest first, to stay inside their share. assets and clips cap what no avatar uses (kept for reuse): an item an avatar needs is never refused for being over them. total is the hard cap: past it allocations fail and the avatar that needed more fails."
  },
  {
   "name": "sona_jobs",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.3 host services: memory, jobs, logging",
   "comment": "A host job system. The core hands it independent jobs (decode, face bake, build, skinning slices) and never waits on one inside a call that must not block."
  },
  {
   "name": "sona_http_request",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.4 HTTP: supplied by the platform layer or by the host",
   "comment": ""
  },
  {
   "name": "sona_http",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.4 HTTP: supplied by the platform layer or by the host",
   "comment": ""
  },
  {
   "name": "sona_read_kind",
   "kind": "enum",
   "header": "sona.h",
   "section": "3.5 asset sources",
   "comment": ""
  },
  {
   "name": "sona_source",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.5 asset sources",
   "comment": "A host-written source. read() starts a read and returns at once. The source finishes it, now or later, from any thread, with sona_complete(): SONA_OK with the bytes (copied by the core); SONA_E_NOT_FOUND when it has no such asset (the next source in the chain is asked); or SONA_E_IO when it failed (retried later, as the web retries). Container bytes are the file as stored: YTGR-wrapped, raw STRB, or an STFS package holding asset_v2.bin."
  },
  {
   "name": "sona_source_kind",
   "kind": "enum",
   "header": "sona.h",
   "section": "3.5 asset sources",
   "comment": ""
  },
  {
   "name": "sona_source_desc",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.5 asset sources",
   "comment": ""
  },
  {
   "name": "sona_config",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.6 the context",
   "comment": ""
  },
  {
   "name": "sona_abi_info",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.6 the context",
   "comment": "The ABI of the library that is loaded, for hosts and bindings that load it at run time: abi is its SONA_ABI, oldest_abi the oldest SONA_ABI a caller may be built against and still load it (nothing breaks for two minor versions), and its version as numbers."
  },
  {
   "name": "sona_event_type",
   "kind": "enum",
   "header": "sona.h",
   "section": "3.7 events",
   "comment": ""
  },
  {
   "name": "sona_event",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.7 events",
   "comment": ""
  },
  {
   "name": "sona_avatar_state",
   "kind": "enum",
   "header": "sona.h",
   "section": "3.8 avatars",
   "comment": ""
  },
  {
   "name": "sona_placement",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.8 avatars",
   "comment": ""
  },
  {
   "name": "sona_add_options",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.8 avatars",
   "comment": ""
  },
  {
   "name": "sona_play_options",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.8 avatars",
   "comment": ""
  },
  {
   "name": "sona_clip_event_kind",
   "kind": "enum",
   "header": "sona.h",
   "section": "3.8b game features (1.1)",
   "comment": ""
  },
  {
   "name": "sona_layer_options",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.8c animation layers, blend spaces and state machines (1.2)",
   "comment": ""
  },
  {
   "name": "sona_layer_info",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.8c animation layers, blend spaces and state machines (1.2)",
   "comment": ""
  },
  {
   "name": "sona_layer_event_kind",
   "kind": "enum",
   "header": "sona.h",
   "section": "3.8c animation layers, blend spaces and state machines (1.2)",
   "comment": ""
  },
  {
   "name": "sona_blend_sample",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.8c animation layers, blend spaces and state machines (1.2)",
   "comment": ""
  },
  {
   "name": "sona_blend_space_desc",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.8c animation layers, blend spaces and state machines (1.2)",
   "comment": ""
  },
  {
   "name": "sona_state_desc",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.8c animation layers, blend spaces and state machines (1.2)",
   "comment": ""
  },
  {
   "name": "sona_transition_desc",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.8c animation layers, blend spaces and state machines (1.2)",
   "comment": ""
  },
  {
   "name": "sona_state_machine_desc",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.8c animation layers, blend spaces and state machines (1.2)",
   "comment": ""
  },
  {
   "name": "sona_clip_info",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.9 clips",
   "comment": ""
  },
  {
   "name": "sona_view",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.10 the frame",
   "comment": "Doubles, as the JS keeps plain numbers: the camera maths runs in double and stores float matrices only at the end, as sdk/src/camera.js and src/renderer/math.js do."
  },
  {
   "name": "sona_frame_stats",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.10 the frame",
   "comment": ""
  },
  {
   "name": "sona_scene_stats",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.10 the frame",
   "comment": ""
  },
  {
   "name": "sona_lod_options",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.10b crowds: level of detail and sprites (1.1)",
   "comment": "Each sona_update gives every avatar in view a step by its height on screen in pixels: FULL (posed every frame), SAMPLED (posed when the clip reaches a new frame), QUARTER (also at most every 4th frame) and SPRITE (a picture of the avatar baked once per look and turn, drawn as one textured quad; not posed). Avatars cross between a mesh and a sprite over fade_seconds. A ctx opens with sprite_px 0 (no sprites) and the 1.0 posing rule, so it draws exactly as 1.0 did; sona_lod_set(ctx, NULL) turns on the defaults below. Sheets are baked per renderer into atlas pages, inside sona_draw and sona_snapshot. sona_draw records the bake into the host's frame, ahead of the picture (on Vulkan into the target's command buffer: nothing is submitted and nothing waits); a draw that bakes uses two frame indices. sona_snapshot bakes through the backend's readback, as it draws. An avatar becomes a sprite only when every renderer that drew it since the last sona_update has its look baked: while a renderer that cannot draw sprites (Metal, Xenos, or a device too small for the bake) draws the ctx, avatars stay meshes on every renderer. D3D11 and D3D12 draw them; on D3D12 sona_draw records the bake on the backend's own list and submits it ahead of the host's."
  },
  {
   "name": "sona_lod_stats",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.10b crowds: level of detail and sprites (1.1)",
   "comment": ""
  },
  {
   "name": "sona_tex_format",
   "kind": "enum",
   "header": "sona.h",
   "section": "3.11 the data API",
   "comment": ""
  },
  {
   "name": "sona_texture",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.11 the data API",
   "comment": ""
  },
  {
   "name": "sona_material",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.11 the data API",
   "comment": "Address modes: bit 0 set = U wraps, bit 1 set = V wraps; clear = clamp."
  },
  {
   "name": "sona_mesh",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.11 the data API",
   "comment": "The runtime vertex, 76 bytes, in host byte order: +0 float3 position (bind pose, avatar space) +12 uint8 x4 joint index * 3 (the palette's float4 row) +16 uint8 x4 weight (sum 255) +20 uint8 x4 normal, (n * 0.5 + 0.5) * 255; byte 23 is 0 +24 uint8 x4 vertex colour (baked occlusion and alpha) +28 float4 uv0.xy, uv1.xy +44 float4 uv2.xy, uv3.xy (the HQ shaders read uv2 only) +60 float4 uv4.xy, uv5.xy"
  },
  {
   "name": "sona_prop_palette",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.11 the data API",
   "comment": ""
  },
  {
   "name": "sona_pose_data",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.11 the data API",
   "comment": ""
  },
  {
   "name": "sona_shading",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.11 the data API",
   "comment": "The fixed shading inputs, for hosts that rebuild our look in their own shaders."
  },
  {
   "name": "sona_program",
   "kind": "enum",
   "header": "sona.h",
   "section": "3.11 the data API",
   "comment": ""
  },
  {
   "name": "sona_backend",
   "kind": "enum",
   "header": "sona.h",
   "section": "3.12 drawing with our backends",
   "comment": ""
  },
  {
   "name": "sona_device_desc",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.12 drawing with our backends",
   "comment": "The host owns the device. Pointers are the API's own handles cast to void*."
  },
  {
   "name": "sona_target",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.12 drawing with our backends",
   "comment": "Where one sona_draw lands. Row 0 of the picture is its top on every API except GL and GLES, where it is the bottom (the API's own convention). The colour target must be UNORM (not sRGB) RGBA8 or BGRA8: the present pass encodes sRGB itself, as on the web."
  },
  {
   "name": "sona_draw_options",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.12 drawing with our backends",
   "comment": ""
  },
  {
   "name": "sona_preview_options",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.12b item previews (1.1)",
   "comment": ""
  },
  {
   "name": "sona_quality",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.12c rendering quality (1.1)",
   "comment": ""
  },
  {
   "name": "sona_tier_options",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.12c rendering quality (1.1)",
   "comment": ""
  },
  {
   "name": "sona_picture",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.12d 2D outputs: sprite sheets, stickers and pixel art (1.2)",
   "comment": "Pictures for 2D games and chat (https://360sona.com/devs/docs/guides/sprites2d.html). Sheets and stickers draw through sona_snapshot with the avatar alone in the frame, at the origin, then put it back as it was: placement, clip and its time, pose, events, visibility and level of detail. A clip named in the options is read from the ctx's sources without touching the avatar's own clip: SONA_PENDING until its file has loaded (run sona_update, call again). SONA_E_NOT_READY before READY; SONA_E_ARGUMENT for an item preview or options without their size set. Every picture is one renderer frame, as sona_snapshot (blocks until the GPU is done; Vulkan submits on the device's queue); when no frame of the host's was in flight on the call, they are reported done before it returns. Frames of a sheet never carry the credit badge: the app shows it, as the licence requires."
  },
  {
   "name": "sona_pixel_options",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.12d 2D outputs: sprite sheets, stickers and pixel art (1.2)",
   "comment": ""
  },
  {
   "name": "sona_sticker_options",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.12d 2D outputs: sprite sheets, stickers and pixel art (1.2)",
   "comment": ""
  },
  {
   "name": "sona_sheet_options",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.12d 2D outputs: sprite sheets, stickers and pixel art (1.2)",
   "comment": ""
  },
  {
   "name": "sona_sheet_frame",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.12d 2D outputs: sprite sheets, stickers and pixel art (1.2)",
   "comment": "One frame of a sheet. Frames are direction-major: index = direction * frames + frame."
  },
  {
   "name": "sona_asset_ref",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.14 manifests (pure; no ctx needed)",
   "comment": ""
  },
  {
   "name": "sona_manifest",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.14 manifests (pure; no ctx needed)",
   "comment": ""
  },
  {
   "name": "sona_credit",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.15 credit",
   "comment": ""
  },
  {
   "name": "sona_section",
   "kind": "enum",
   "header": "sona.h",
   "section": "3.16 the offline catalogue (1.1)",
   "comment": "The editor's wardrobe and appearance sections. 0 is \"any\" in a query."
  },
  {
   "name": "sona_item_info",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.16 the offline catalogue (1.1)",
   "comment": "One item. Strings are UTF-8, never NULL (\"\" when the data has none) and live as long as the catalogue."
  },
  {
   "name": "sona_catalogue_query",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.16 the offline catalogue (1.1)",
   "comment": ""
  },
  {
   "name": "sona_custom_item_info",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.17 custom items (1.2)",
   "comment": ""
  },
  {
   "name": "sona_paint_spec",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.17 custom items (1.2)",
   "comment": ""
  },
  {
   "name": "sona_mesh_item_spec",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.17 custom items (1.2)",
   "comment": ""
  },
  {
   "name": "sona_lipsync_options",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.18 lip sync and voice mouths (1.2)",
   "comment": ""
  },
  {
   "name": "sona_lipsync_frame",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.18 lip sync and voice mouths (1.2)",
   "comment": ""
  },
  {
   "name": "sona_voice_mouth",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.18 lip sync and voice mouths (1.2)",
   "comment": "Voice chat: a mouth from an audio level alone (linear RMS, 0..1; scale does not matter), for every remote player. The state is the host's, one per speaker; seed (the avatar id, say) keeps a crowd out of step."
  },
  {
   "name": "sona_device_kind",
   "kind": "enum",
   "header": "sona.h",
   "section": "3.19 headless rendering and video out (1.2)",
   "comment": ""
  },
  {
   "name": "sona_headless_options",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.19 headless rendering and video out (1.2)",
   "comment": ""
  },
  {
   "name": "sona_headless_info",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.19 headless rendering and video out (1.2)",
   "comment": ""
  },
  {
   "name": "sona_render_options",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.19 headless rendering and video out (1.2)",
   "comment": ""
  },
  {
   "name": "sona_sequence_options",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.19 headless rendering and video out (1.2)",
   "comment": ""
  },
  {
   "name": "sona_video_format",
   "kind": "enum",
   "header": "sona.h",
   "section": "3.19 headless rendering and video out (1.2)",
   "comment": ""
  },
  {
   "name": "sona_video_options",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.19 headless rendering and video out (1.2)",
   "comment": ""
  },
  {
   "name": "sona_skeleton_kind",
   "kind": "enum",
   "header": "sona.h",
   "section": "3.20 skeleton maps and VRM export (1.2)",
   "comment": "The rig's joints under other skeletons' bone names, for retargeting (https://360sona.com/devs/docs/guides/skeleton-maps.html)."
  },
  {
   "name": "sona_vrm_expression",
   "kind": "enum",
   "header": "sona.h",
   "section": "3.20 skeleton maps and VRM export (1.2)",
   "comment": "VRM expressions, the presets of VRM 1.0 (VRM 0.x: a i u e o, joy angry sorrow fun, surprised as a custom group, blink, blink_l, blink_r, lookup lookdown lookleft lookright)."
  },
  {
   "name": "sona_export_options",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.20 skeleton maps and VRM export (1.2)",
   "comment": ""
  },
  {
   "name": "sona_export_report",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.20 skeleton maps and VRM export (1.2)",
   "comment": ""
  },
  {
   "name": "sona_print_options",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.21 3D print export (1.2)",
   "comment": ""
  },
  {
   "name": "sona_print_mesh",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.21 3D print export (1.2)",
   "comment": "The solid. Pointers live as long as the sona_print. Triangles wind counter-clockwise seen from outside."
  },
  {
   "name": "sona_print_report",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.21 3D print export (1.2)",
   "comment": "What sona_print_check found. ok is 1 when the mesh is watertight, manifold, consistently oriented, encloses a positive volume and has no degenerate or crossing triangles."
  },
  {
   "name": "sona_stock_clip",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.22 the stock clip library and the procedural idle (1.2)",
   "comment": ""
  },
  {
   "name": "sona_idle_options",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.22 the stock clip library and the procedural idle (1.2)",
   "comment": ""
  },
  {
   "name": "sona_idle_state",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.22 the stock clip library and the procedural idle (1.2)",
   "comment": ""
  },
  {
   "name": "sona_ik_target",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.23 inverse kinematics (1.2)",
   "comment": "A hand or foot target. Hands put the palm (or with SONA_IK_WRIST the wrist joint) at position; feet put the ankle joint there. The elbow or knee bends towards pole, else the way the clip bends it; both stay inside the joint limits and clear of the body."
  },
  {
   "name": "sona_ik_feet",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.23 inverse kinematics (1.2)",
   "comment": ""
  },
  {
   "name": "sona_ik_look",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.23 inverse kinematics (1.2)",
   "comment": ""
  },
  {
   "name": "sona_ik_limits",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.23 inverse kinematics (1.2)",
   "comment": ""
  },
  {
   "name": "sona_ik_status",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.23 inverse kinematics (1.2)",
   "comment": ""
  },
  {
   "name": "sona_ik_foot_lock",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.23 inverse kinematics (1.2)",
   "comment": "Foot locking: a foot the clip plants (down, its ankle at the flat foot's height, and no longer swinging) stays where it landed until the clip lifts the heel, so walk and run clips do not slide while the host moves the avatar no faster than the clip's feet travel; faster, the held foot is dragged after the body just enough for the leg to reach it and slides less than without locking. Pulled past max_slide it lets go (in a step it then moves with the clip's foot until the step ends). Works with planting or without; a foot target replaces it for that foot. NULL: off."
  },
  {
   "name": "sona_ik_spine",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.23 inverse kinematics (1.2)",
   "comment": "Spine assist: a hand target past the arm's reach bends and turns the spine, and the hips a little, towards it. NULL: off."
  },
  {
   "name": "sona_ik_fingers",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.23 inverse kinematics (1.2)",
   "comment": "Finger curl per hand, over the clip's: 0 open to 1 closed, per finger, and spread."
  },
  {
   "name": "sona_ik_eyes",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.23 inverse kinematics (1.2)",
   "comment": ""
  },
  {
   "name": "sona_rig_naming",
   "kind": "enum",
   "header": "sona.h",
   "section": "3.24 imported clips (1.2)",
   "comment": ""
  },
  {
   "name": "sona_import_options",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.24 imported clips (1.2)",
   "comment": ""
  },
  {
   "name": "sona_import_info",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.24 imported clips (1.2)",
   "comment": ""
  },
  {
   "name": "sona_players_config",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.24 imported clips (1.2)",
   "comment": ""
  },
  {
   "name": "sona_player_state",
   "kind": "enum",
   "header": "sona.h",
   "section": "3.24 imported clips (1.2)",
   "comment": ""
  },
  {
   "name": "sona_player_look",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.24 imported clips (1.2)",
   "comment": ""
  },
  {
   "name": "sona_player_event_type",
   "kind": "enum",
   "header": "sona.h",
   "section": "3.24 imported clips (1.2)",
   "comment": ""
  },
  {
   "name": "sona_player_event",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.24 imported clips (1.2)",
   "comment": ""
  },
  {
   "name": "sona_players_stats",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.24 imported clips (1.2)",
   "comment": ""
  },
  {
   "name": "sona_random_options",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.26 making avatars in code: seeded random avatars, dress like, outfit rules (1.2)",
   "comment": ""
  },
  {
   "name": "sona_random_report",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.26 making avatars in code: seeded random avatars, dress like, outfit rules (1.2)",
   "comment": ""
  },
  {
   "name": "sona_like_options",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.26 making avatars in code: seeded random avatars, dress like, outfit rules (1.2)",
   "comment": ""
  },
  {
   "name": "sona_like_report",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.26 making avatars in code: seeded random avatars, dress like, outfit rules (1.2)",
   "comment": ""
  },
  {
   "name": "sona_outfit_set",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.26 making avatars in code: seeded random avatars, dress like, outfit rules (1.2)",
   "comment": ""
  },
  {
   "name": "sona_outfit_issue",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.26 making avatars in code: seeded random avatars, dress like, outfit rules (1.2)",
   "comment": ""
  },
  {
   "name": "sona_outfit_report",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.26 making avatars in code: seeded random avatars, dress like, outfit rules (1.2)",
   "comment": ""
  },
  {
   "name": "sona_filter_verdict",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.27 content filters (1.2)",
   "comment": ""
  },
  {
   "name": "sona_filter_change",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.27 content filters (1.2)",
   "comment": ""
  },
  {
   "name": "sona_filter_report",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.27 content filters (1.2)",
   "comment": ""
  },
  {
   "name": "sona_state_info",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.28 avatar state, network sync and replays (1.2)",
   "comment": ""
  },
  {
   "name": "sona_state_status",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.28 avatar state, network sync and replays (1.2)",
   "comment": ""
  },
  {
   "name": "sona_net_options",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.28 avatar state, network sync and replays (1.2)",
   "comment": ""
  },
  {
   "name": "sona_net_look",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.28 avatar state, network sync and replays (1.2)",
   "comment": ""
  },
  {
   "name": "sona_net_stats",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.28 avatar state, network sync and replays (1.2)",
   "comment": ""
  },
  {
   "name": "sona_record_options",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.28 avatar state, network sync and replays (1.2)",
   "comment": ""
  },
  {
   "name": "sona_replay_info",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.28 avatar state, network sync and replays (1.2)",
   "comment": ""
  },
  {
   "name": "sona_light",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.12e lighting and shadows (1.2)",
   "comment": "The host's lights on a renderer (https://360sona.com/devs/docs/guides/lighting.html). A renderer starts with none: every picture is the original look, byte for byte. With a sona_lighting set (on the renderer, or for one draw) the avatars are lit by a key and a fill light (directional), an ambient colour and an environment (the built-in irradiance cube, or the host's as spherical harmonics or a cube, sona_renderer_set_environment), and the key casts shadows: the avatars draw into a shadow map fitted to them (or to the host's sphere or light matrix), receive it and the host's own map (sona_renderer_set_host_shadow), and can lay a soft shadow on a ground plane for a host without shadow maps. The map is the host's to read after the draw (sona_renderer_shadow_map). World space, y up; colours linear RGB. SONA_DRAW_SHADOW is ignored while a lighting is in use (its shadow field decides). Crowd sprites keep the look they were baked with and cast no shadow; an avatar culled out of the view casts none."
  },
  {
   "name": "sona_lighting",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.12e lighting and shadows (1.2)",
   "comment": ""
  },
  {
   "name": "sona_environment",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.12e lighting and shadows (1.2)",
   "comment": ""
  },
  {
   "name": "sona_host_shadow",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.12e lighting and shadows (1.2)",
   "comment": "The host's shadow map, sampled by the lit avatars (they receive the host scene's shadows), together with their own map. The texture is the host's, kept alive and in the state below while frames that use it run. Depth 0 near, 1 far; a texel is lit where the reference is below what is stored."
  },
  {
   "name": "sona_shadow_map",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.12e lighting and shadows (1.2)",
   "comment": "The renderer's own shadow map as its last lit frame with shadows drew it (the avatars only), for the host to shadow its scene with: sample it at the matrix's (u, v) and compare depth as above. The texture is the renderer's, drawn again by the next lit frame: Vulkan and D3D12 hosts read it after that frame's commands, in the same command buffer or once the frame is done."
  },
  {
   "name": "sona_style",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.12f art styles (1.2)",
   "comment": ""
  },
  {
   "name": "sona_placeholder_phase",
   "kind": "enum",
   "header": "sona.h",
   "section": "3.8d loading placeholders (1.2)",
   "comment": "A neutral figure stands where an avatar is still loading, so a scene never shows a hole or a pop (https://360sona.com/devs/docs/guides/placeholder.html). It is our own design, a soft jointed mannequin with no item art, of the avatar's height and body type once its manifest is known (a neutral one before). It plays the avatar's clip as soon as that clip has been read (a built-in idle until then) and crossfades into the avatar when it is READY, the avatar's clock taking the figure's time so the pose runs on. A FAILED avatar keeps a dimmed figure with a question mark over its head, or lets it fade. The figure draws on every backend in the main pass, poses at the crowd's rates (3.10b) and becomes a sprite past sprite_px like an avatar. Off on a new ctx (every existing picture stays the same): sona_placeholder_set(ctx, NULL) turns it on with the defaults. It shows from the moment the ctx has read the rig (avatar-rig.json, the first data every avatar needs). sona_snapshot leaves the READY crossfade out."
  },
  {
   "name": "sona_placeholder_options",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.8d loading placeholders (1.2)",
   "comment": ""
  },
  {
   "name": "sona_placeholder_info",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.8d loading placeholders (1.2)",
   "comment": ""
  },
  {
   "name": "sona_placeholder_stats",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.8d loading placeholders (1.2)",
   "comment": ""
  },
  {
   "name": "sona_overlay",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.29 overlays: a picture over the frame (Phase 4b)",
   "comment": "A straight-alpha RGBA8 picture that every sona_draw on the renderer blends over its target after the credit, on every backend: SRC_ALPHA, ONE_MINUS_SRC_ALPHA (alpha ONE, ONE_MINUS_SRC_ALPHA), nearest sampling, no depth. It is how the editor's UI (sona_editor.h) reaches the host's target, and it takes any HUD a host has as pixels. sona_snapshot and the renderer's other pictures never draw it. https://360sona.com/devs/docs/guides/overlay.html."
  },
  {
   "name": "sona_screen_action",
   "kind": "enum",
   "header": "sona.h",
   "section": "3.30 player screens: the quick creator and the wardrobe picker (Phase 4b)",
   "comment": ""
  },
  {
   "name": "sona_screen_event",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.30 player screens: the quick creator and the wardrobe picker (Phase 4b)",
   "comment": "One input event. Send PRESS once and RELEASE on release (drop the OS's own key repeats)."
  },
  {
   "name": "sona_screen_theme",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.30 player screens: the quick creator and the wardrobe picker (Phase 4b)",
   "comment": "Colours are 0xAARRGGBB. The host's own drawer may ignore them; the layout uses only scale, flags and corner."
  },
  {
   "name": "sona_screen_role",
   "kind": "enum",
   "header": "sona.h",
   "section": "3.30 player screens: the quick creator and the wardrobe picker (Phase 4b)",
   "comment": ""
  },
  {
   "name": "sona_screen_node",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.30 player screens: the quick creator and the wardrobe picker (Phase 4b)",
   "comment": "One thing to draw, in paint order. Strings are UTF-8, valid until the next call on the screen."
  },
  {
   "name": "sona_screen_status",
   "kind": "enum",
   "header": "sona.h",
   "section": "3.30 player screens: the quick creator and the wardrobe picker (Phase 4b)",
   "comment": ""
  },
  {
   "name": "sona_quick_options",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.30 player screens: the quick creator and the wardrobe picker (Phase 4b)",
   "comment": ""
  },
  {
   "name": "sona_wardrobe_options",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.30 player screens: the quick creator and the wardrobe picker (Phase 4b)",
   "comment": ""
  },
  {
   "name": "sona_screen_stats",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.30 player screens: the quick creator and the wardrobe picker (Phase 4b)",
   "comment": ""
  },
  {
   "name": "sona_pick_options",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.31 picking (1.2)",
   "comment": ""
  },
  {
   "name": "sona_body_region",
   "kind": "enum",
   "header": "sona.h",
   "section": "3.31 picking (1.2)",
   "comment": ""
  },
  {
   "name": "sona_pick_hit",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.31 picking (1.2)",
   "comment": ""
  },
  {
   "name": "sona_prop_part",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.32 props: held and worn objects (1.3)",
   "comment": ""
  },
  {
   "name": "sona_prop_load_options",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.32 props: held and worn objects (1.3)",
   "comment": ""
  },
  {
   "name": "sona_prop_mesh_info",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.32 props: held and worn objects (1.3)",
   "comment": ""
  },
  {
   "name": "sona_prop_data",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.32 props: held and worn objects (1.3)",
   "comment": "The meshes in the data API's own form (3.11), for hosts that draw props themselves: 76-byte vertices whose joint bytes index sona_prop_frame.palette (a host mesh uses joint 0 only), materials and textures. Valid while m lives."
  },
  {
   "name": "sona_prop_attach",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.32 props: held and worn objects (1.3)",
   "comment": ""
  },
  {
   "name": "sona_prop_frame",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.32 props: held and worn objects (1.3)",
   "comment": ""
  },
  {
   "name": "sona_ragdoll_options",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.33 physics-ready avatars: colliders, joint limits and the ragdoll handoff (1.2)",
   "comment": ""
  },
  {
   "name": "sona_ragdoll_body",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.33 physics-ready avatars: colliders, joint limits and the ragdoll handoff (1.2)",
   "comment": "One body. Its frame is the joint's: origin at the joint, axes the joint's with the scale taken out. The shape is placed in that frame; the joint to the parent sits at this body's origin. Limits: the child's frame_child turned from the parent's frame_parent, as a swing (about Y, then Z) after a twist (about X), each between its min and max; engines with symmetric cones take cone_frame with cone_y and cone_z instead of frame_parent."
  },
  {
   "name": "sona_ragdoll_state",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.33 physics-ready avatars: colliders, joint limits and the ragdoll handoff (1.2)",
   "comment": "A body's world transform and velocities, in sona_avatar_ragdoll's order."
  },
  {
   "name": "sona_ragdoll_info",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.33 physics-ready avatars: colliders, joint limits and the ragdoll handoff (1.2)",
   "comment": ""
  },
  {
   "name": "sona_ragdoll_motor",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.33 physics-ready avatars: colliders, joint limits and the ragdoll handoff (1.2)",
   "comment": "Powered ragdolls. What a body's joint motor drives to: the pose the avatar's clip, layers and IK give it now, whatever the host's bodies are doing (sona_avatar_ragdoll_drive does not change it). In sona_avatar_ragdoll's order; the root (the hips) has no joint, so its relative fields are its world ones."
  },
  {
   "name": "sona_sway",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.34 hair and cloth sway (1.2)",
   "comment": ""
  },
  {
   "name": "sona_sway_world",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.34 hair and cloth sway (1.2)",
   "comment": "The world every avatar of the ctx sways in."
  },
  {
   "name": "sona_sway_info",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.34 hair and cloth sway (1.2)",
   "comment": "What sways on an avatar, and what the last pose did."
  },
  {
   "name": "sona_seat",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.35 two-avatar interactions and seats (1.2)",
   "comment": ""
  },
  {
   "name": "sona_interaction_desc",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.35 two-avatar interactions and seats (1.2)",
   "comment": ""
  },
  {
   "name": "sona_interaction_plan",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.35 two-avatar interactions and seats (1.2)",
   "comment": "Where the interaction stands its avatars and where the contacts meet, before it starts (walk them there)."
  },
  {
   "name": "sona_interaction_status",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.35 two-avatar interactions and seats (1.2)",
   "comment": ""
  },
  {
   "name": "sona_emote",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.36 text to emote",
   "comment": ""
  },
  {
   "name": "sona_award_def",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.37 award items from your own game",
   "comment": "A developer defines award items for an app (on the devs site, or with sona_award_define and the app's developer key); the game unlocks one for a signed-in player and it joins their 360sona wardrobe. Each call goes to config.check_host (the devs site; https, or http to 127.0.0.1, localhost or [::1] with an optional port) through the ctx's HTTP layer and returns a ticket: sona_award_poll after sona_update says how it went."
  },
  {
   "name": "sona_capsule",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.8b game features (1.1)",
   "comment": "A vertical capsule around the posed body, in world space, for collisions: the segment a..b and its radius."
  },
  {
   "name": "sona_clip_event",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.8b game features (1.1)",
   "comment": ""
  },
  {
   "name": "sona_layer_event",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.8c animation layers, blend spaces and state machines (1.2)",
   "comment": ""
  },
  {
   "name": "sona_condition",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.8c animation layers, blend spaces and state machines (1.2)",
   "comment": ""
  },
  {
   "name": "sona_pass",
   "kind": "enum",
   "header": "sona.h",
   "section": "3.11 the data API",
   "comment": ""
  },
  {
   "name": "sona_shader_lang",
   "kind": "enum",
   "header": "sona.h",
   "section": "3.11 the data API",
   "comment": ""
  },
  {
   "name": "sona_corner",
   "kind": "enum",
   "header": "sona.h",
   "section": "3.12 drawing with our backends",
   "comment": ""
  },
  {
   "name": "sona_preset",
   "kind": "enum",
   "header": "sona.h",
   "section": "3.13 camera helpers (pure maths, as sdk/src/camera.js)",
   "comment": ""
  },
  {
   "name": "sona_guid",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.14 manifests (pure; no ctx needed)",
   "comment": ""
  },
  {
   "name": "sona_route",
   "kind": "enum",
   "header": "sona.h",
   "section": "3.14 manifests (pure; no ctx needed)",
   "comment": ""
  },
  {
   "name": "sona_face_record",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.14 manifests (pure; no ctx needed)",
   "comment": ""
  },
  {
   "name": "sona_body",
   "kind": "enum",
   "header": "sona.h",
   "section": "3.17 custom items (1.2)",
   "comment": ""
  },
  {
   "name": "sona_paint_image",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.17 custom items (1.2)",
   "comment": "Pixels in, a .sonaitem out (free with sona_free). The same bytes as scene.items.pack for the same input. The template must be readable through ctx's sources (surfaces and hash are checked): SONA_PENDING until it has been fetched, then call again after sona_update. Each surface takes the template's default layout (the template's own for the props, split for every garment). The file is not signed."
  },
  {
   "name": "sona_paint_surface",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.17 custom items (1.2)",
   "comment": ""
  },
  {
   "name": "sona_phoneme",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.18 lip sync and voice mouths (1.2)",
   "comment": "A phoneme with its time in seconds: ARPAbet (\"AH0\"), IPA (\"ʃ\"), the 15 viseme names (\"PP\", \"aa\"), the 22 viseme ids as digits (\"21\"), or a mouth name (\"AI\")."
  },
  {
   "name": "sona_mouth_key",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.18 lip sync and voice mouths (1.2)",
   "comment": "A mouth from time on."
  },
  {
   "name": "sona_vrm_face",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.20 skeleton maps and VRM export (1.2)",
   "comment": "The face an expression shows: a shape index per face part, in sona_avatar_expression's order (mouth, left eyebrow, right eyebrow, left eye, right eye; left is the avatar's own left), or 255 for a part it leaves to the others."
  },
  {
   "name": "sona_anim_format",
   "kind": "enum",
   "header": "sona.h",
   "section": "3.24 imported clips (1.2)",
   "comment": "Your own animation (https://360sona.com/devs/docs/guides/import.html): glTF 2.0 (.gltf, .glb), FBX (binary and ASCII) and BVH clips, retargeted onto the avatar rig. Bones are matched by name (Mixamo, Unity Humanoid, Unreal, BVH, 3ds Max Biped, Blender, Character Creator, Daz), then by the override map. Rest poses that differ (an A-pose source on the T-pose rig) are corrected, the hips' travel is kept and scaled to the avatar's legs. An imported clip is played by its key like a stock clip: sona_avatar_play, crossfade, queue, clip events, root motion."
  },
  {
   "name": "sona_bone_map",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.24 imported clips (1.2)",
   "comment": "One override: the source bone (its full name, or as matched: lower case, no prefix) drives joint (a sona_joint_find name). A NULL or empty joint leaves that source bone out of the matching."
  },
  {
   "name": "sona_like_item",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.26 making avatars in code: seeded random avatars, dress like, outfit rules (1.2)",
   "comment": ""
  },
  {
   "name": "sona_style_kind",
   "kind": "enum",
   "header": "sona.h",
   "section": "3.12f art styles (1.2)",
   "comment": "Looks beyond the original, for art-directed games (https://360sona.com/devs/docs/guides/styles.html): toon (cel bands of the key light and a hard highlight), flat (the colours, unlit) and silhouette (one colour, for UI and fog of war), each with an optional outline, an inverted hull a set number of pixels wide (the original look can have one too). A style is set on an avatar, or on a renderer for every avatar it draws (set it before each sona_draw to style one view and not another); with neither set every picture is the original, byte for byte. Sheets, stickers, previews and headless pictures draw through sona_snapshot and take the styles too. Drawn on Vulkan, GL, D3D11, D3D12, Metal and Xenos; where a device cannot, sona_renderer_set_style and sona_renderer_style return SONA_E_UNSUPPORTED and styled avatars draw in the original look (logged once). Crowd sprites (sona_lod_set) are baked in the avatar's style."
  },
  {
   "name": "sona_interaction_event",
   "kind": "struct",
   "header": "sona.h",
   "section": "3.35 two-avatar interactions and seats (1.2)",
   "comment": ""
  },
  {
   "name": "sona_ctx",
   "kind": "handle",
   "header": "sona.h",
   "section": "3.2 opaque handles",
   "comment": ""
  },
  {
   "name": "sona_avatar",
   "kind": "handle",
   "header": "sona.h",
   "section": "3.2 opaque handles",
   "comment": ""
  },
  {
   "name": "sona_renderer",
   "kind": "handle",
   "header": "sona.h",
   "section": "3.2 opaque handles",
   "comment": ""
  },
  {
   "name": "sona_request",
   "kind": "handle",
   "header": "sona.h",
   "section": "3.2 opaque handles",
   "comment": "one read in flight from a source"
  },
  {
   "name": "sona_http_reply",
   "kind": "handle",
   "header": "sona.h",
   "section": "3.2 opaque handles",
   "comment": ""
  },
  {
   "name": "sona_blend_space",
   "kind": "handle",
   "header": "sona.h",
   "section": "3.8c animation layers, blend spaces and state machines (1.2)",
   "comment": ""
  },
  {
   "name": "sona_state_machine",
   "kind": "handle",
   "header": "sona.h",
   "section": "3.8c animation layers, blend spaces and state machines (1.2)",
   "comment": ""
  },
  {
   "name": "sona_sheet",
   "kind": "handle",
   "header": "sona.h",
   "section": "3.12d 2D outputs: sprite sheets, stickers and pixel art (1.2)",
   "comment": ""
  },
  {
   "name": "sona_catalogue",
   "kind": "handle",
   "header": "sona.h",
   "section": "3.16 the offline catalogue (1.1)",
   "comment": "Every item id with its name, slots, game and source, from sona-catalogue.bin, so pickers need no web call. A loaded catalogue never changes: every read call is safe from any thread at once."
  },
  {
   "name": "sona_lipsync",
   "kind": "handle",
   "header": "sona.h",
   "section": "3.18 lip sync and voice mouths (1.2)",
   "comment": ""
  },
  {
   "name": "sona_headless",
   "kind": "handle",
   "header": "sona.h",
   "section": "3.19 headless rendering and video out (1.2)",
   "comment": "A device of the library's own, with no window and no display, for servers, bots and tools: the best GPU, or a software device (lavapipe, llvmpipe) where there is none, so it runs in a container. One call turns an avatar or a manifest into straight RGBA8 pixels, row 0 at the top; batches, turntables and clips give the same pixels, or go to a sona_video (PNG sequence, GIF, and MP4 or WebM through ffmpeg). Every call of a headless renderer runs on the ctx's owner thread and blocks until its pictures are read back. https://360sona.com/devs/docs/guides/headless.html."
  },
  {
   "name": "sona_video",
   "kind": "handle",
   "header": "sona.h",
   "section": "3.19 headless rendering and video out (1.2)",
   "comment": ""
  },
  {
   "name": "sona_print",
   "kind": "handle",
   "header": "sona.h",
   "section": "3.21 3D print export (1.2)",
   "comment": ""
  },
  {
   "name": "sona_anim_file",
   "kind": "handle",
   "header": "sona.h",
   "section": "3.24 imported clips (1.2)",
   "comment": "A parsed file: no ctx, nothing retargeted yet. why (may be NULL) gets the reason for a refusal: SONA_E_CORRUPT, SONA_E_UNSUPPORTED (a format this build does not read), SONA_E_LIMIT, SONA_E_IO (open). opts may be NULL; its map and flags give the mapping sona_anim_file_bone reports."
  },
  {
   "name": "sona_players",
   "kind": "handle",
   "header": "sona.h",
   "section": "3.24 imported clips (1.2)",
   "comment": ""
  },
  {
   "name": "sona_maker",
   "kind": "handle",
   "header": "sona.h",
   "section": "3.26 making avatars in code: seeded random avatars, dress like, outfit rules (1.2)",
   "comment": "A maker indexes a catalogue's outfit rules once: candidate items per body and section, gender variants and matched sets (https://360sona.com/devs/docs/guides/makers.html). It never changes after create, so every call is safe from any number of threads at once. It reads the catalogue: free it before the catalogue. ctx may be NULL (malloc, codes only)."
  },
  {
   "name": "sona_filter",
   "kind": "handle",
   "header": "sona.h",
   "section": "3.27 content filters (1.2)",
   "comment": "Which items a game allows (https://360sona.com/devs/docs/guides/filters.html): by section, slot, game (the franchise, brand or collection an item comes from), tag, source or id. A family game says \"no logos, no weapons\", a themed one \"only this game\". Made from a catalogue, whose data it copies: the catalogue may be freed first. With no allow rule every item is allowed; with allow rules an item must match one of them. A deny rule then takes it out. An id rule beats both (deny first). The slot defaults (the stock shirt, trousers, shoes and hair a body falls back to) pass every rule but a deny by id. Rule and tag calls change the filter; once it is set up, every read call is safe from any thread at once."
  },
  {
   "name": "sona_net_sender",
   "kind": "handle",
   "header": "sona.h",
   "section": "3.28 avatar state, network sync and replays (1.2)",
   "comment": "Network sync: a stream carries one avatar from a sender to one receiver. Each tick the sender writes a packet: the state quantised (times to 1/4096 s, positions to 1/1024 m, rotations to 1/32767, weights to 1/4096) and coded against the newest state the receiver acknowledged, clip times predicted from their speed, so a steady avatar costs a few bytes. The look goes along until acknowledged: the manifest, or an id of the host's. The receiver keeps what it decoded and shows any tick on a puppet, blending the two received ticks around it, so a lost packet only widens a gap. Integer maths throughout: receivers fed the same packets show the same pose bits for the same tick on any CPU, once the clips are loaded. The host moves the bytes (any transport; unreliable is fine) and the acknowledgements."
  },
  {
   "name": "sona_net_receiver",
   "kind": "handle",
   "header": "sona.h",
   "section": "3.28 avatar state, network sync and replays (1.2)",
   "comment": ""
  },
  {
   "name": "sona_recorder",
   "kind": "handle",
   "header": "sona.h",
   "section": "3.28 avatar state, network sync and replays (1.2)",
   "comment": "Replays (replays, kill-cams, bug reports): a recorder takes avatars' states at each tick into one compact file (the network coding, with a full state every keyframe_ticks so any moment is a short decode away); a replay shows any track at any time on a puppet, so seeking, slow motion, fast forward and reverse are where the host moves the time. keep_seconds keeps only the last seconds, for kill-cams."
  },
  {
   "name": "sona_replay",
   "kind": "handle",
   "header": "sona.h",
   "section": "3.28 avatar state, network sync and replays (1.2)",
   "comment": ""
  },
  {
   "name": "sona_screen",
   "kind": "handle",
   "header": "sona.h",
   "section": "3.30 player screens: the quick creator and the wardrobe picker (Phase 4b)",
   "comment": "Two ready-made screens a game opens and gets an avatar back from (https://360sona.com/devs/docs/guides/quick-creator.html). The quick creator shows eight generated looks, the player picks one, changes one thing (hair, its colour, skin, top) and is done. The wardrobe picker dresses the player's own avatar for this match from their wardrobe, or the catalogue under the host's filter, with a live preview of what has focus. The host draws a screen: it lays itself out in the host's pixels and lists what to draw as nodes (panels, text, buttons, tiles, avatar views), each with the role, state and spoken label a screen reader needs. Input comes as actions, so gamepad, keyboard, mouse and touch all drive it; the gamepad comes first. A screen's avatars live in the host's ctx but sona_draw never draws them: sona_screen_view_draw and _snapshot draw one view alone. The optional editor module (sona_editor.h) draws its own quick and wardrobe modes; its look hook can take this generator (sona_quick_look), so both show the same looks. A screen is used from the ctx's owner thread only."
  },
  {
   "name": "sona_prop_mesh",
   "kind": "handle",
   "header": "sona.h",
   "section": "3.32 props: held and worn objects (1.3)",
   "comment": ""
  },
  {
   "name": "sona_interaction",
   "kind": "handle",
   "header": "sona.h",
   "section": "3.35 two-avatar interactions and seats (1.2)",
   "comment": "Two avatars of any heights and shapes doing one thing together, or one avatar on a seat. The core stands them where the interaction needs them, plays matched clips (the stock sit clip, and the standing idle started on both at once under the rest), and solves arms and legs with IK so the contacts stay together: palms meet, hands hold, the hips rest on the seat and the feet on the floor. Spacing comes from each avatar's own measured body (clothes included), so the bodies do not pass into each other, and every solve stays inside the IK joint limits. Each interaction runs a start phase (reaching, sitting down), a hold and an end phase (letting go, standing up), with events. While it runs it owns its avatars' placement, clip, and IK hand and foot targets, and while it bends one (a crouch, a lean) or closes a hand (a handshake's grip) the ADD overrides of the Hips and the fingers; a hug also turns the heads (look-at). Layers and expressions stay the host's. Runs inside sona_update on the owner thread, deterministic. https://360sona.com/devs/docs/guides/interactions.html."
  },
  {
   "name": "sona_thumbnail_fn",
   "kind": "callback",
   "header": "sona.h",
   "section": "3.12d item thumbnails (1.2, https://360sona.com/devs/docs/guides/item-preview.html)",
   "signature": "typedef void (*sona_thumbnail_fn)(void *user, const char *item_id, sona_result status, const void *png, size_t len);",
   "comment": "The gate's own picture of an item, the one 360sona.com's wardrobe shows: a PNG, about 300 px square, a few KB. Much cheaper than a preview: nothing is decoded or drawn, a grid's tiles are asked 120 to a request, and the gate meters thumbnails apart from items, so a wardrobe does not spend the budget avatars need. The picture for an id never changes: keep it on disk. Needs the ctx's gate source. fn runs exactly once, on the owner thread, from a later sona_update (or from sona_close, with SONA_E_DESTROYED): SONA_OK with the bytes (valid during the call), SONA_E_NOT_FOUND when the gate has no picture of it, SONA_E_IO when it could not be fetched (ask again later). Asking again from inside fn is fine. SONA_E_UNSUPPORTED without a gate source (and in the WASM build), SONA_E_ARGUMENT for a malformed id, SONA_E_LIMIT past 60,000 asks in one ctx. Owner thread only."
  },
  {
   "name": "sona_picture_fn",
   "kind": "callback",
   "header": "sona.h",
   "section": "3.19 headless rendering and video out (1.2)",
   "signature": "typedef void (*sona_picture_fn)(void *user, uint32_t index, sona_result result, const uint8_t *rgba, uint32_t width, uint32_t height);",
   "comment": "One picture of a batch or a sequence. rgba is NULL when result is not SONA_OK; it lives until fn returns."
  },
  {
   "name": "sona_ik_ground_fn",
   "kind": "callback",
   "header": "sona.h",
   "section": "3.23 inverse kinematics (1.2)",
   "signature": "typedef int (*sona_ik_ground_fn)(void *user, const sona_avatar *a, const float from[3], float depth, float point[3], float normal[3]);",
   "comment": "A ray straight down (world -Y) from `from`, at most depth metres: return 1 with the first hit's point and unit normal (world), 0 for no ground (that foot is left as the clip has it). Called on the posing threads, at the same time for different avatars: it must be safe to call from any thread, give the same answer for the same question, and never call back into sona."
  },
  {
   "name": "sona_item_filter_fn",
   "kind": "callback",
   "header": "sona.h",
   "section": "3.30 player screens: the quick creator and the wardrobe picker (Phase 4b)",
   "signature": "typedef int (*sona_item_filter_fn)(void *user, const sona_item_info *item);",
   "comment": "A filter on catalogue items: 1 to offer it, 0 to leave it out (a content filter, items not in your sources)."
  },
  {
   "name": "sona_body_options",
   "kind": "struct",
   "header": "sona_body.h",
   "section": "",
   "comment": ""
  },
  {
   "name": "sona_body_input",
   "kind": "struct",
   "header": "sona_body.h",
   "section": "",
   "comment": "One frame of a body tracker. points: x, y, z per landmark in metres, the tracker's world space (+X to the right of the image, +Y up, +Z towards the viewer, origin between the hips). visibility: 0..1 per landmark, or NULL. image: x, y per landmark in the picture, 0..1 from its top left (MediaPipe's normalized landmarks), or NULL. A tracker guesses the parts of a body the camera does not show, often with a high visibility: with image, a landmark outside the picture is not seen, so a desk camera's guessed legs stay the clip's. Without it the module can only go by visibility and the body's shape."
  },
  {
   "name": "sona_body_tracker",
   "kind": "handle",
   "header": "sona_body.h",
   "section": "",
   "comment": ""
  },
  {
   "name": "sona_editor_options",
   "kind": "struct",
   "header": "sona_editor.h",
   "section": "",
   "comment": ""
  },
  {
   "name": "sona_editor_theme",
   "kind": "struct",
   "header": "sona_editor.h",
   "section": "",
   "comment": "Colours are 0xAARRGGBB, straight alpha. Sizes are pixels at scale 1."
  },
  {
   "name": "sona_editor_input",
   "kind": "struct",
   "header": "sona_editor.h",
   "section": "input",
   "comment": ""
  },
  {
   "name": "sona_editor_control",
   "kind": "struct",
   "header": "sona_editor.h",
   "section": "what is on screen, for screen readers",
   "comment": ""
  },
  {
   "name": "sona_editor_vertex",
   "kind": "struct",
   "header": "sona_editor.h",
   "section": "drawing",
   "comment": ""
  },
  {
   "name": "sona_editor_command",
   "kind": "struct",
   "header": "sona_editor.h",
   "section": "drawing",
   "comment": "Blend with SRC_ALPHA, ONE_MINUS_SRC_ALPHA (straight alpha), no depth, the scissor at clip."
  },
  {
   "name": "sona_editor_draw_data",
   "kind": "struct",
   "header": "sona_editor.h",
   "section": "drawing",
   "comment": ""
  },
  {
   "name": "sona_editor_texture",
   "kind": "struct",
   "header": "sona_editor.h",
   "section": "drawing",
   "comment": ""
  },
  {
   "name": "sona_editor",
   "kind": "handle",
   "header": "sona_editor.h",
   "section": "",
   "comment": ""
  },
  {
   "name": "sona_editor_filter_fn",
   "kind": "callback",
   "header": "sona_editor.h",
   "section": "",
   "signature": "typedef int (*sona_editor_filter_fn)(void *user, const sona_item_info *item);",
   "comment": "Content filter hook: return 0 to leave an item out of every list and every generated look."
  },
  {
   "name": "sona_editor_look_fn",
   "kind": "callback",
   "header": "sona_editor.h",
   "section": "",
   "signature": "typedef int (*sona_editor_look_fn)(void *user, uint64_t seed, uint32_t index, uint8_t manifest[SONA_MANIFEST_BYTES]);",
   "comment": "Seeded random hook: write look number index (0..7) of the given seed into manifest and return 1; return 0 for the editor's own generator."
  },
  {
   "name": "sona_editor_sound_fn",
   "kind": "callback",
   "header": "sona_editor.h",
   "section": "",
   "signature": "typedef void (*sona_editor_sound_fn)(void *user, uint32_t sound);",
   "comment": ""
  },
  {
   "name": "sona_npc_options",
   "kind": "struct",
   "header": "sona_npc.h",
   "section": "",
   "comment": ""
  },
  {
   "name": "sona_npc_state",
   "kind": "struct",
   "header": "sona_npc.h",
   "section": "",
   "comment": ""
  },
  {
   "name": "sona_npc",
   "kind": "handle",
   "header": "sona_npc.h",
   "section": "",
   "comment": ""
  },
  {
   "name": "sona_npc_speak_fn",
   "kind": "callback",
   "header": "sona_npc.h",
   "section": "",
   "signature": "typedef int (*sona_npc_speak_fn)(void *user, const char *text, const int16_t **pcm, uint32_t *samples, uint32_t *rate);",
   "comment": "The host's text to speech: mono 16-bit PCM for text. Return 1 with *pcm, *samples and *rate set (the samples stay valid until the next call), or 0 to show the line without a voice. Called on the owner thread."
  },
  {
   "name": "sona_npc_line_fn",
   "kind": "callback",
   "header": "sona_npc.h",
   "section": "",
   "signature": "typedef void (*sona_npc_line_fn)(void *user, uint32_t line, int started);",
   "comment": "Told when the avatar starts and stops saying a line (the host plays the audio from start)."
  },
  {
   "name": "sona_blendshape",
   "kind": "enum",
   "header": "sona_track.h",
   "section": "",
   "comment": "The blendshapes in ARKit's order (ARFaceAnchor.BlendShapeLocation, as Live Link Face streams them). Left and right are the subject's own."
  },
  {
   "name": "sona_track_options",
   "kind": "struct",
   "header": "sona_track.h",
   "section": "",
   "comment": ""
  },
  {
   "name": "sona_track_face_input",
   "kind": "struct",
   "header": "sona_track.h",
   "section": "",
   "comment": "One frame of a face tracker. head_rotation is a unit quaternion (x, y, z, w) in the tracker's camera space: +X to the right of the image, +Y up, +Z out of the screen towards the viewer; identity is a face looking straight into the camera. sona_track_quat_from_matrix turns MediaPipe's facial transformation matrix or an ARKit face anchor's transform into one."
  },
  {
   "name": "sona_track_mood",
   "kind": "enum",
   "header": "sona_track.h",
   "section": "",
   "comment": "The face's moods, the first seven shapes of every part of the avatar's face."
  },
  {
   "name": "sona_track_face_state",
   "kind": "struct",
   "header": "sona_track.h",
   "section": "",
   "comment": "What the tracker makes of the frames so far."
  },
  {
   "name": "sona_track_calibration",
   "kind": "struct",
   "header": "sona_track.h",
   "section": "",
   "comment": "Neutral face. calibrate_begin collects every frame with a face from then on; calibrate_end stops, makes each weight's 30th percentile over them (the first 300 frames) and their mean head rotation the neutral, and writes it to out (may be NULL); SONA_E_NOT_READY when no face came in between. Blinks and words said during it do not move a low percentile. Each weight's neutral value is taken off it and the rest rescaled to 0..1; the neutral head rotation becomes identity."
  },
  {
   "name": "sona_tracker",
   "kind": "handle",
   "header": "sona_track.h",
   "section": "",
   "comment": ""
  },
  {
   "name": "sona_xr_options",
   "kind": "struct",
   "header": "sona_xr.h",
   "section": "",
   "comment": ""
  },
  {
   "name": "sona_xr_input",
   "kind": "struct",
   "header": "sona_xr.h",
   "section": "",
   "comment": ""
  },
  {
   "name": "sona_xr_status",
   "kind": "struct",
   "header": "sona_xr.h",
   "section": "",
   "comment": "What the last sona_xr_apply did."
  },
  {
   "name": "sona_xr_pose",
   "kind": "struct",
   "header": "sona_xr.h",
   "section": "",
   "comment": "A pose in world metres, as XrPosef: position, then a unit quaternion (x, y, z, w)."
  },
  {
   "name": "sona_xr_body",
   "kind": "handle",
   "header": "sona_xr.h",
   "section": "",
   "comment": ""
  },
  {
   "name": "sona_xsdk_config",
   "kind": "struct",
   "header": "sona_xsdk.h",
   "section": "",
   "comment": ""
  },
  {
   "name": "sona_xsdk",
   "kind": "handle",
   "header": "sona_xsdk.h",
   "section": "",
   "comment": ""
  }
 ],
 "constants": [
  {
   "name": "SONA_VERSION_MAJOR",
   "kind": "define",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_VERSION_MINOR",
   "kind": "define",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_VERSION_PATCH",
   "kind": "define",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_ABI",
   "kind": "define",
   "value": "1",
   "header": "sona.h",
   "comment": "bumped when a struct below changes shape"
  },
  {
   "name": "SONA_MANIFEST_BYTES",
   "kind": "define",
   "value": "1000",
   "header": "sona.h",
   "comment": "an AvatarDescription"
  },
  {
   "name": "SONA_JOINTS",
   "kind": "define",
   "value": "72",
   "header": "sona.h",
   "comment": "palette slots; the avatar rig animates 71"
  },
  {
   "name": "SONA_PALETTE_FLOATS",
   "kind": "define",
   "value": "864",
   "header": "sona.h",
   "comment": "72 joints x 3 float4"
  },
  {
   "name": "SONA_CB_FLOATS",
   "kind": "define",
   "value": "896",
   "header": "sona.h",
   "comment": "the HQ constant buffer: proj 0..15, shadow 16..31, palette 32.."
  },
  {
   "name": "SONA_VERTEX_STRIDE",
   "kind": "define",
   "value": "76",
   "header": "sona.h",
   "comment": "the runtime vertex, see sona_mesh"
  },
  {
   "name": "SONA_MAX_SOURCES",
   "kind": "define",
   "value": "4",
   "header": "sona.h"
  },
  {
   "name": "SONA_ID_CHARS",
   "kind": "define",
   "value": "37",
   "header": "sona.h",
   "comment": "\"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\" + NUL"
  },
  {
   "name": "SONA_JOINT_COUNT",
   "kind": "define",
   "value": "72",
   "header": "sona.h"
  },
  {
   "name": "SONA_QUEUE_MAX",
   "kind": "define",
   "value": "8",
   "header": "sona.h",
   "comment": "Joints by name: the humanoid names (Hips, Spine, Chest, Neck, Head, LeftUpperArm, ... PropLeft, PropRight), \"shape_NN\" for the body-shape joints, or \"joint_NN\" for any joint by number. -1 when unknown."
  },
  {
   "name": "SONA_CLIP_EVENT_MAX",
   "kind": "define",
   "value": "32",
   "header": "sona.h"
  },
  {
   "name": "SONA_MARK_MAX",
   "kind": "define",
   "value": "16",
   "header": "sona.h"
  },
  {
   "name": "SONA_LAYER_MAX",
   "kind": "define",
   "value": "8",
   "header": "sona.h"
  },
  {
   "name": "SONA_PARAM_MAX",
   "kind": "define",
   "value": "32",
   "header": "sona.h"
  },
  {
   "name": "SONA_BLEND_SAMPLES_MAX",
   "kind": "define",
   "value": "16",
   "header": "sona.h"
  },
  {
   "name": "SONA_STATE_MAX",
   "kind": "define",
   "value": "32",
   "header": "sona.h"
  },
  {
   "name": "SONA_TRANSITION_MAX",
   "kind": "define",
   "value": "64",
   "header": "sona.h"
  },
  {
   "name": "SONA_CONDITION_MAX",
   "kind": "define",
   "value": "4",
   "header": "sona.h"
  },
  {
   "name": "SONA_LAYER_EVENT_MAX",
   "kind": "define",
   "value": "32",
   "header": "sona.h"
  },
  {
   "name": "SONA_MSAA_AUTO",
   "kind": "define",
   "value": "0u",
   "header": "sona.h",
   "comment": "4 samples on a hardware GPU, 1 on a software rasteriser"
  },
  {
   "name": "SONA_ATLAS_ALL_PAGES",
   "kind": "define",
   "value": "0xffffffffu",
   "header": "sona.h",
   "comment": "TexturePacker: every page in one file (the multi-atlas form)"
  },
  {
   "name": "SONA_CUSTOM_ITEM_MAX_BYTES",
   "kind": "define",
   "value": "(4u << 20)",
   "header": "sona.h"
  },
  {
   "name": "SONA_MESH_ITEM_FIT_NONE",
   "kind": "define",
   "value": "1u",
   "header": "sona.h",
   "comment": "spec.flags: fit \"none\", no coverage check"
  },
  {
   "name": "SONA_LIPSYNC_QUEUE",
   "kind": "define",
   "value": "256",
   "header": "sona.h",
   "comment": "frames held for sona_lipsync_read; past that the oldest go"
  },
  {
   "name": "SONA_MOUTH_UNKNOWN",
   "kind": "define",
   "value": "255u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_STAND_0",
   "kind": "define",
   "value": "0x00030003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_STAND_1",
   "kind": "define",
   "value": "0x00040003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_STAND_2",
   "kind": "define",
   "value": "0x00050003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_CLAP",
   "kind": "define",
   "value": "0x00060003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_WAVE",
   "kind": "define",
   "value": "0x00070003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_CELEBRATE",
   "kind": "define",
   "value": "0x00080003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_CHECKS_HAND_FEMALE",
   "kind": "define",
   "value": "0x00090002u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_LOOKS_AROUND_FEMALE",
   "kind": "define",
   "value": "0x000a0002u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_SHIFTS_WEIGHT_FEMALE",
   "kind": "define",
   "value": "0x000b0002u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_FIXES_SHOE_FEMALE",
   "kind": "define",
   "value": "0x000c0002u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_ANGRY_FEMALE",
   "kind": "define",
   "value": "0x000d0002u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_CONFUSED_FEMALE",
   "kind": "define",
   "value": "0x000e0002u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_LAUGH_FEMALE",
   "kind": "define",
   "value": "0x000f0002u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_CRY_FEMALE",
   "kind": "define",
   "value": "0x00100002u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_SHOCKED_FEMALE",
   "kind": "define",
   "value": "0x00110002u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_YAWN_FEMALE",
   "kind": "define",
   "value": "0x00120002u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_LOOKS_AROUND_MALE",
   "kind": "define",
   "value": "0x00130001u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_STRETCH_MALE",
   "kind": "define",
   "value": "0x00140001u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_SHIFTS_WEIGHT_MALE",
   "kind": "define",
   "value": "0x00150001u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_ANGRY_MALE",
   "kind": "define",
   "value": "0x00160001u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_CONFUSED_MALE",
   "kind": "define",
   "value": "0x00170001u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_LAUGH_MALE",
   "kind": "define",
   "value": "0x00180001u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_CRY_MALE",
   "kind": "define",
   "value": "0x00190001u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_SHOCKED_MALE",
   "kind": "define",
   "value": "0x001a0001u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_YAWN_MALE",
   "kind": "define",
   "value": "0x001b0001u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_LOOK_DOWN",
   "kind": "define",
   "value": "0x001c0003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_LOOK_LEFT",
   "kind": "define",
   "value": "0x001d0003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_LOOK_CENTER",
   "kind": "define",
   "value": "0x001e0003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_LOOK_RIGHT",
   "kind": "define",
   "value": "0x001f0003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_LOOK_UP",
   "kind": "define",
   "value": "0x00200003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_LOOK_DOWN_LEFT",
   "kind": "define",
   "value": "0x00210003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_LOOK_DOWN_RIGHT",
   "kind": "define",
   "value": "0x00220003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_LOOK_UP_LEFT",
   "kind": "define",
   "value": "0x00230003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_LOOK_UP_RIGHT",
   "kind": "define",
   "value": "0x00240003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_SLEEP",
   "kind": "define",
   "value": "0x00250003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_CHECKS_HAND_MALE",
   "kind": "define",
   "value": "0x00260001u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_STAND_3",
   "kind": "define",
   "value": "0x00270003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_STAND_4",
   "kind": "define",
   "value": "0x00280003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_STAND_5",
   "kind": "define",
   "value": "0x00290003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_STAND_6",
   "kind": "define",
   "value": "0x002a0003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_STAND_7",
   "kind": "define",
   "value": "0x002b0003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_EXAMINE_HEADWEAR",
   "kind": "define",
   "value": "0x002c0003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_FLOAT_UP_ALT",
   "kind": "define",
   "value": "0x002d0003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_EXAMINE_LOWER_BODY",
   "kind": "define",
   "value": "0x002e0003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_FIST_RAISE_MALE_ALT",
   "kind": "define",
   "value": "0x002f0001u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_EXAMINE_SHOES",
   "kind": "define",
   "value": "0x002f0003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_FIST_PUMP_MALE_ALT",
   "kind": "define",
   "value": "0x00300001u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_EXAMINE_UPPER_BODY",
   "kind": "define",
   "value": "0x00300003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_SLEEP_ALT",
   "kind": "define",
   "value": "0x00310003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_SPIN_LEFT",
   "kind": "define",
   "value": "0x00320003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_SPIN_RIGHT",
   "kind": "define",
   "value": "0x00330003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_RAISE_ARMS",
   "kind": "define",
   "value": "0x00340003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_FIST_RAISE_MALE",
   "kind": "define",
   "value": "0x00350001u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_FIST_PUMP_MALE",
   "kind": "define",
   "value": "0x00360001u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_DANCE_FEMALE",
   "kind": "define",
   "value": "0x00370002u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_HOP_AND_CLAP_FEMALE",
   "kind": "define",
   "value": "0x00380002u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_JUMP_TURN_RIGHT",
   "kind": "define",
   "value": "0x00390003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_JUMP_TURN_LEFT",
   "kind": "define",
   "value": "0x003a0003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_RUN_FORWARD",
   "kind": "define",
   "value": "0x003b0003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_RUN_FORWARD_2",
   "kind": "define",
   "value": "0x003c0003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_STEP_ASIDE_LEFT",
   "kind": "define",
   "value": "0x003d0003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_STEP_ASIDE_RIGHT",
   "kind": "define",
   "value": "0x003e0003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_JUMP_SQUAT",
   "kind": "define",
   "value": "0x003f0003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_FLOAT_SPIN_CELEBRATE",
   "kind": "define",
   "value": "0x00400003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_PICK_ME",
   "kind": "define",
   "value": "0x00410003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_FLOAT_HOVER",
   "kind": "define",
   "value": "0x00420003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_FLOAT_UP",
   "kind": "define",
   "value": "0x00430003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_FLOAT_DROP",
   "kind": "define",
   "value": "0x00440003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_RUN_OFF",
   "kind": "define",
   "value": "0x00450003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_RUN_ON",
   "kind": "define",
   "value": "0x00460003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_RUN_ON_2",
   "kind": "define",
   "value": "0x00470003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_RUN_ON_3",
   "kind": "define",
   "value": "0x00480003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_RUN_ON_4",
   "kind": "define",
   "value": "0x00490003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_CROUCH_TO_FLOAT",
   "kind": "define",
   "value": "0x004a0003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_CROUCH_CHEER",
   "kind": "define",
   "value": "0x004b0003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_STRUGGLE_TO_BALANCE",
   "kind": "define",
   "value": "0x004c0003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_STUMBLE",
   "kind": "define",
   "value": "0x004d0003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_CROUCH_LOOK_AROUND",
   "kind": "define",
   "value": "0x004e0003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_BASEBALL_SWING",
   "kind": "define",
   "value": "0x00500003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_BASEBALL_SWING_2",
   "kind": "define",
   "value": "0x00510003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_CRAWL",
   "kind": "define",
   "value": "0x00520003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_DRIVE",
   "kind": "define",
   "value": "0x00530003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_FAINT",
   "kind": "define",
   "value": "0x00540003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_JUMP",
   "kind": "define",
   "value": "0x00550003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_JUMP_CLIMB",
   "kind": "define",
   "value": "0x00560003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_KICK",
   "kind": "define",
   "value": "0x00570003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_PICK_UP",
   "kind": "define",
   "value": "0x00580003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_PULL",
   "kind": "define",
   "value": "0x00590003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_PUNCH",
   "kind": "define",
   "value": "0x005a0003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_PUSH",
   "kind": "define",
   "value": "0x005b0003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_RUN_FORWARD_3",
   "kind": "define",
   "value": "0x005c0003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_SIDE_STEP_LEFT",
   "kind": "define",
   "value": "0x005d0003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_SIDE_STEP_RIGHT",
   "kind": "define",
   "value": "0x005e0003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_SIT",
   "kind": "define",
   "value": "0x005f0003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_SLAP",
   "kind": "define",
   "value": "0x00600003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_SLAP_2",
   "kind": "define",
   "value": "0x00610003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_SWIM_2",
   "kind": "define",
   "value": "0x00620003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_SWIM",
   "kind": "define",
   "value": "0x00630003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_WALK_FORWARD",
   "kind": "define",
   "value": "0x00640003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_STAND_GESTURE",
   "kind": "define",
   "value": "0x00650003u",
   "header": "sona.h"
  },
  {
   "name": "SONA_STOCK_CLIP_COUNT",
   "kind": "define",
   "value": "100u",
   "header": "sona.h",
   "comment": "generated: end"
  },
  {
   "name": "SONA_PLAYER_ID_CHARS",
   "kind": "define",
   "value": "96",
   "header": "sona.h",
   "comment": "the longest id, NUL included"
  },
  {
   "name": "SONA_FILTER_CHANGES",
   "kind": "define",
   "value": "32",
   "header": "sona.h"
  },
  {
   "name": "SONA_PROP_MAX",
   "kind": "define",
   "value": "8",
   "header": "sona.h",
   "comment": "props on one avatar at once"
  },
  {
   "name": "SONA_PROP_JOINT_AUTO",
   "kind": "define",
   "value": "(-2)",
   "header": "sona.h",
   "comment": "a stock prop: its own grip, or the root; a host mesh: PropRight"
  },
  {
   "name": "SONA_PROP_ROOT",
   "kind": "define",
   "value": "(-1)",
   "header": "sona.h",
   "comment": "the avatar's own space: its feet, facing -Z, placement applied"
  },
  {
   "name": "SONA_RAGDOLL_BODIES",
   "kind": "define",
   "value": "16",
   "header": "sona.h"
  },
  {
   "name": "SONA_EMOTE_CLIPS",
   "kind": "define",
   "value": "4",
   "header": "sona.h"
  },
  {
   "name": "SONA_OK",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_PENDING",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_E_UNSUPPORTED",
   "kind": "enumerator",
   "value": "-1",
   "header": "sona.h"
  },
  {
   "name": "SONA_E_ORIGIN",
   "kind": "enumerator",
   "value": "-2",
   "header": "sona.h"
  },
  {
   "name": "SONA_E_LICENCE",
   "kind": "enumerator",
   "value": "-3",
   "header": "sona.h"
  },
  {
   "name": "SONA_E_APP",
   "kind": "enumerator",
   "value": "-4",
   "header": "sona.h"
  },
  {
   "name": "SONA_E_GATE",
   "kind": "enumerator",
   "value": "-5",
   "header": "sona.h"
  },
  {
   "name": "SONA_E_MANIFEST",
   "kind": "enumerator",
   "value": "-6",
   "header": "sona.h"
  },
  {
   "name": "SONA_E_CONTEXT",
   "kind": "enumerator",
   "value": "-7",
   "header": "sona.h"
  },
  {
   "name": "SONA_E_READBACK",
   "kind": "enumerator",
   "value": "-8",
   "header": "sona.h"
  },
  {
   "name": "SONA_E_LIMIT",
   "kind": "enumerator",
   "value": "-9",
   "header": "sona.h"
  },
  {
   "name": "SONA_E_DESTROYED",
   "kind": "enumerator",
   "value": "-10",
   "header": "sona.h"
  },
  {
   "name": "SONA_E_PLATFORM",
   "kind": "enumerator",
   "value": "-11",
   "header": "sona.h"
  },
  {
   "name": "SONA_E_BUILD",
   "kind": "enumerator",
   "value": "-12",
   "header": "sona.h"
  },
  {
   "name": "SONA_E_ARGUMENT",
   "kind": "enumerator",
   "value": "-13",
   "header": "sona.h"
  },
  {
   "name": "SONA_E_MEMORY",
   "kind": "enumerator",
   "value": "-14",
   "header": "sona.h"
  },
  {
   "name": "SONA_E_NOT_FOUND",
   "kind": "enumerator",
   "value": "-15",
   "header": "sona.h"
  },
  {
   "name": "SONA_E_IO",
   "kind": "enumerator",
   "value": "-16",
   "header": "sona.h"
  },
  {
   "name": "SONA_E_CORRUPT",
   "kind": "enumerator",
   "value": "-17",
   "header": "sona.h"
  },
  {
   "name": "SONA_E_NOT_READY",
   "kind": "enumerator",
   "value": "-18",
   "header": "sona.h"
  },
  {
   "name": "SONA_E_UNIMPLEMENTED",
   "kind": "enumerator",
   "value": "-19",
   "header": "sona.h"
  },
  {
   "name": "SONA_LOG_ERROR",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_LOG_WARN",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_LOG_INFO",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_LOG_DEBUG",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_READ_ASSET",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_READ_DATA",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_SOURCE_CUSTOM",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_SOURCE_GATE",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_SOURCE_DIR",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_SOURCE_CONSOLE",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_CFG_STILL_FACES",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_CFG_APP_BEHAVIOUR",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona.h"
  },
  {
   "name": "SONA_CFG_NO_CPU_SKIN",
   "kind": "enumerator",
   "value": "1u << 2",
   "header": "sona.h"
  },
  {
   "name": "SONA_EVENT_NONE",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_EVENT_READY",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_EVENT_FAILED",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_EVENT_ERROR",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_EVENT_LICENCE_OK",
   "kind": "enumerator",
   "value": "4",
   "header": "sona.h"
  },
  {
   "name": "SONA_AVATAR_QUEUED",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_AVATAR_LOADING",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_AVATAR_READY",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_AVATAR_FAILED",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_AVATAR_REMOVED",
   "kind": "enumerator",
   "value": "4",
   "header": "sona.h"
  },
  {
   "name": "SONA_OVERRIDE_REPLACE",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_OVERRIDE_ADD",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_MOUTH_NEUTRAL",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_MOUTH_O",
   "kind": "enumerator",
   "value": "7",
   "header": "sona.h"
  },
  {
   "name": "SONA_MOUTH_AI",
   "kind": "enumerator",
   "value": "8",
   "header": "sona.h"
  },
  {
   "name": "SONA_MOUTH_EE",
   "kind": "enumerator",
   "value": "9",
   "header": "sona.h"
  },
  {
   "name": "SONA_MOUTH_FV",
   "kind": "enumerator",
   "value": "10",
   "header": "sona.h"
  },
  {
   "name": "SONA_MOUTH_W",
   "kind": "enumerator",
   "value": "11",
   "header": "sona.h"
  },
  {
   "name": "SONA_MOUTH_L",
   "kind": "enumerator",
   "value": "12",
   "header": "sona.h"
  },
  {
   "name": "SONA_MOUTH_DTH",
   "kind": "enumerator",
   "value": "13",
   "header": "sona.h"
  },
  {
   "name": "SONA_CLIP_STARTED",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_CLIP_LOOPED",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_CLIP_ENDED",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_CLIP_FOOT_LEFT",
   "kind": "enumerator",
   "value": "4",
   "header": "sona.h"
  },
  {
   "name": "SONA_CLIP_FOOT_RIGHT",
   "kind": "enumerator",
   "value": "5",
   "header": "sona.h"
  },
  {
   "name": "SONA_CLIP_MARK",
   "kind": "enumerator",
   "value": "6",
   "header": "sona.h"
  },
  {
   "name": "SONA_ROOT_MOTION_OFF",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_ROOT_MOTION_EXTRACT",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_ROOT_MOTION_APPLY",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_LAYER_OVERRIDE",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_LAYER_ADDITIVE",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_LAYER_ONE_SHOT",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_LAYER_EMPTY",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_LAYER_CLIP",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_LAYER_BLEND",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_LAYER_MACHINE",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_LAYER_STARTED",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_LAYER_LOOPED",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_LAYER_ENDED",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_LAYER_STATE",
   "kind": "enumerator",
   "value": "4",
   "header": "sona.h"
  },
  {
   "name": "SONA_LAYER_STOPPED",
   "kind": "enumerator",
   "value": "5",
   "header": "sona.h"
  },
  {
   "name": "SONA_MASK_NONE",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_MASK_FULL",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_MASK_UPPER_BODY",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_MASK_LOWER_BODY",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_MASK_HEAD",
   "kind": "enumerator",
   "value": "4",
   "header": "sona.h"
  },
  {
   "name": "SONA_MASK_LEFT_ARM",
   "kind": "enumerator",
   "value": "5",
   "header": "sona.h"
  },
  {
   "name": "SONA_MASK_RIGHT_ARM",
   "kind": "enumerator",
   "value": "6",
   "header": "sona.h"
  },
  {
   "name": "SONA_MASK_ARMS",
   "kind": "enumerator",
   "value": "7",
   "header": "sona.h"
  },
  {
   "name": "SONA_BLEND_UNSYNCED",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_COND_GT",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_COND_LT",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_COND_GE",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_COND_LE",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_COND_EQ",
   "kind": "enumerator",
   "value": "4",
   "header": "sona.h"
  },
  {
   "name": "SONA_COND_NE",
   "kind": "enumerator",
   "value": "5",
   "header": "sona.h"
  },
  {
   "name": "SONA_COND_TRIGGER",
   "kind": "enumerator",
   "value": "6",
   "header": "sona.h"
  },
  {
   "name": "SONA_LOD_FULL",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_LOD_SAMPLED",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_LOD_QUARTER",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_LOD_SPRITE",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_PASS_OPAQUE",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_PASS_TRANSPARENT",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_TEX_RGBA8_SRGB",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_TEX_BC1_SRGB",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_TEX_BC3_SRGB",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_TEX_RGBA16F_CUBE",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_MAT_SKIN",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_MAT_REFLECTIVE",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona.h"
  },
  {
   "name": "SONA_MAT_FACE",
   "kind": "enumerator",
   "value": "1u << 2",
   "header": "sona.h"
  },
  {
   "name": "SONA_MAT_TRANSPARENT",
   "kind": "enumerator",
   "value": "1u << 3",
   "header": "sona.h"
  },
  {
   "name": "SONA_MAT_CARRYABLE",
   "kind": "enumerator",
   "value": "1u << 4",
   "header": "sona.h"
  },
  {
   "name": "SONA_SPACE_AVATAR",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_SPACE_WORLD",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_LANG_GLSL_ES300",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_LANG_GLSL_330",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_LANG_SPIRV",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_LANG_HLSL",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_LANG_MSL",
   "kind": "enumerator",
   "value": "4",
   "header": "sona.h"
  },
  {
   "name": "SONA_PROG_SHADOW",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_PROG_GBUFFER",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_PROG_SSAO",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_PROG_BRIGHT",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_PROG_BLUR",
   "kind": "enumerator",
   "value": "4",
   "header": "sona.h"
  },
  {
   "name": "SONA_PROG_PRESENT",
   "kind": "enumerator",
   "value": "5",
   "header": "sona.h"
  },
  {
   "name": "SONA_PROG_CLOTH",
   "kind": "enumerator",
   "value": "6",
   "header": "sona.h"
  },
  {
   "name": "SONA_PROG_SKIN",
   "kind": "enumerator",
   "value": "7",
   "header": "sona.h"
  },
  {
   "name": "SONA_PROG_REFL",
   "kind": "enumerator",
   "value": "8",
   "header": "sona.h"
  },
  {
   "name": "SONA_PROG_REFL_SKIN",
   "kind": "enumerator",
   "value": "9",
   "header": "sona.h"
  },
  {
   "name": "SONA_PROG_CREDIT",
   "kind": "enumerator",
   "value": "10",
   "header": "sona.h"
  },
  {
   "name": "SONA_PROG_COUNT",
   "kind": "enumerator",
   "value": "11",
   "header": "sona.h"
  },
  {
   "name": "SONA_BACKEND_GL",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_BACKEND_GLES",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_BACKEND_VULKAN",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_BACKEND_D3D11",
   "kind": "enumerator",
   "value": "4",
   "header": "sona.h"
  },
  {
   "name": "SONA_BACKEND_D3D12",
   "kind": "enumerator",
   "value": "5",
   "header": "sona.h"
  },
  {
   "name": "SONA_BACKEND_METAL",
   "kind": "enumerator",
   "value": "6",
   "header": "sona.h"
  },
  {
   "name": "SONA_BACKEND_XENOS",
   "kind": "enumerator",
   "value": "7",
   "header": "sona.h"
  },
  {
   "name": "SONA_DRAW_SHADOW",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_DRAW_NO_BLOOM",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona.h"
  },
  {
   "name": "SONA_DRAW_EDITOR_AO",
   "kind": "enumerator",
   "value": "1u << 3",
   "header": "sona.h"
  },
  {
   "name": "SONA_DRAW_NO_CREDIT",
   "kind": "enumerator",
   "value": "1u << 4",
   "header": "sona.h"
  },
  {
   "name": "SONA_CORNER_BOTTOM_RIGHT",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_CORNER_BOTTOM_LEFT",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_CORNER_TOP_RIGHT",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_CORNER_TOP_LEFT",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_PREVIEW_PLAY",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_PREVIEW_COLOURS",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona.h"
  },
  {
   "name": "SONA_QUALITY_MIPS",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_QUALITY_CUTOUT_MIPS",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona.h"
  },
  {
   "name": "SONA_VK_FEATURE_BINDLESS",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_VK_FEATURE_MULTI_DRAW",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona.h"
  },
  {
   "name": "SONA_TIER_AUTO",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_TIER_LOW",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_TIER_MEDIUM",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_TIER_HIGH",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_PIXEL_OUTLINE",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_PIXEL_OUTLINE_THIN",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona.h"
  },
  {
   "name": "SONA_PIXEL_DITHER",
   "kind": "enumerator",
   "value": "1u << 2",
   "header": "sona.h"
  },
  {
   "name": "SONA_PIXEL_KEEP_FRAME",
   "kind": "enumerator",
   "value": "1u << 3",
   "header": "sona.h"
  },
  {
   "name": "SONA_STICKER_SQUARE",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_SHEET_POW2",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_SHEET_NO_TRIM",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona.h"
  },
  {
   "name": "SONA_SHEET_ROOT_MOTION",
   "kind": "enumerator",
   "value": "1u << 2",
   "header": "sona.h"
  },
  {
   "name": "SONA_SHEET_NO_DEDUP",
   "kind": "enumerator",
   "value": "1u << 3",
   "header": "sona.h"
  },
  {
   "name": "SONA_SHEET_ENDS",
   "kind": "enumerator",
   "value": "1u << 4",
   "header": "sona.h"
  },
  {
   "name": "SONA_SHEET_GRID",
   "kind": "enumerator",
   "value": "1u << 5",
   "header": "sona.h"
  },
  {
   "name": "SONA_ATLAS_ASEPRITE",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_ATLAS_TEXTUREPACKER",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_PRESET_FULL",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_PRESET_UPPER",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_PRESET_BUST",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_PRESET_FACE",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_ROUTE_REJECTED",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_ROUTE_WORN",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_ROUTE_BARE",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_ROUTE_FACE",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_EDIT_NO_REQUIRED",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_EDIT_STACK_PROPS",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona.h"
  },
  {
   "name": "SONA_EDIT_NO_DRESS",
   "kind": "enumerator",
   "value": "1u << 2",
   "header": "sona.h"
  },
  {
   "name": "SONA_ITEM_OFFERED",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_ITEM_NAMED",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona.h"
  },
  {
   "name": "SONA_ITEM_STOCK",
   "kind": "enumerator",
   "value": "1u << 2",
   "header": "sona.h"
  },
  {
   "name": "SONA_ITEM_AWARD",
   "kind": "enumerator",
   "value": "1u << 3",
   "header": "sona.h"
  },
  {
   "name": "SONA_ITEM_MARKETPLACE",
   "kind": "enumerator",
   "value": "1u << 4",
   "header": "sona.h"
  },
  {
   "name": "SONA_ITEM_HIDDEN",
   "kind": "enumerator",
   "value": "1u << 5",
   "header": "sona.h"
  },
  {
   "name": "SONA_ITEM_NOT_PICKABLE",
   "kind": "enumerator",
   "value": "1u << 6",
   "header": "sona.h"
  },
  {
   "name": "SONA_ITEM_HAS_MODEL",
   "kind": "enumerator",
   "value": "1u << 7",
   "header": "sona.h"
  },
  {
   "name": "SONA_ITEM_GLB",
   "kind": "enumerator",
   "value": "1u << 8",
   "header": "sona.h"
  },
  {
   "name": "SONA_ITEM_COLOURABLE",
   "kind": "enumerator",
   "value": "1u << 9",
   "header": "sona.h"
  },
  {
   "name": "SONA_ITEM_COLOURWAYS",
   "kind": "enumerator",
   "value": "1u << 10",
   "header": "sona.h"
  },
  {
   "name": "SONA_ITEM_MULTI_SLOT",
   "kind": "enumerator",
   "value": "1u << 11",
   "header": "sona.h"
  },
  {
   "name": "SONA_ITEM_KIND_UNKNOWN",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_ITEM_KIND_MODEL",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_ITEM_KIND_TEXTURE",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_ITEM_KIND_SHAPE_OVERRIDE",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_ITEM_KIND_ANIMATION",
   "kind": "enumerator",
   "value": "4",
   "header": "sona.h"
  },
  {
   "name": "SONA_SECTION_ANY",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_SECTION_COSTUME",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_SECTION_SHIRT",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_SECTION_TROUSERS",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_SECTION_SHOES",
   "kind": "enumerator",
   "value": "4",
   "header": "sona.h"
  },
  {
   "name": "SONA_SECTION_HEADWEAR",
   "kind": "enumerator",
   "value": "5",
   "header": "sona.h"
  },
  {
   "name": "SONA_SECTION_GLASSES",
   "kind": "enumerator",
   "value": "6",
   "header": "sona.h"
  },
  {
   "name": "SONA_SECTION_GLOVES",
   "kind": "enumerator",
   "value": "7",
   "header": "sona.h"
  },
  {
   "name": "SONA_SECTION_WRISTWEAR",
   "kind": "enumerator",
   "value": "8",
   "header": "sona.h"
  },
  {
   "name": "SONA_SECTION_RING",
   "kind": "enumerator",
   "value": "9",
   "header": "sona.h"
  },
  {
   "name": "SONA_SECTION_EARRINGS",
   "kind": "enumerator",
   "value": "10",
   "header": "sona.h"
  },
  {
   "name": "SONA_SECTION_CARRYABLE",
   "kind": "enumerator",
   "value": "11",
   "header": "sona.h"
  },
  {
   "name": "SONA_SECTION_HAIR",
   "kind": "enumerator",
   "value": "12",
   "header": "sona.h"
  },
  {
   "name": "SONA_SECTION_EYES",
   "kind": "enumerator",
   "value": "13",
   "header": "sona.h"
  },
  {
   "name": "SONA_SECTION_EYEBROWS",
   "kind": "enumerator",
   "value": "14",
   "header": "sona.h"
  },
  {
   "name": "SONA_SECTION_MOUTH",
   "kind": "enumerator",
   "value": "15",
   "header": "sona.h"
  },
  {
   "name": "SONA_SECTION_FACIAL_HAIR",
   "kind": "enumerator",
   "value": "16",
   "header": "sona.h"
  },
  {
   "name": "SONA_SECTION_EYE_SHADOW",
   "kind": "enumerator",
   "value": "17",
   "header": "sona.h"
  },
  {
   "name": "SONA_SECTION_FACIAL_FEATURE",
   "kind": "enumerator",
   "value": "18",
   "header": "sona.h"
  },
  {
   "name": "SONA_SECTION_CHIN",
   "kind": "enumerator",
   "value": "19",
   "header": "sona.h"
  },
  {
   "name": "SONA_SECTION_NOSE",
   "kind": "enumerator",
   "value": "20",
   "header": "sona.h"
  },
  {
   "name": "SONA_SECTION_EARS",
   "kind": "enumerator",
   "value": "21",
   "header": "sona.h"
  },
  {
   "name": "SONA_SECTION_BODY",
   "kind": "enumerator",
   "value": "22",
   "header": "sona.h"
  },
  {
   "name": "SONA_SECTION_HEAD",
   "kind": "enumerator",
   "value": "23",
   "header": "sona.h"
  },
  {
   "name": "SONA_SECTION_ANIMATION",
   "kind": "enumerator",
   "value": "24",
   "header": "sona.h"
  },
  {
   "name": "SONA_SECTION_SHAPE",
   "kind": "enumerator",
   "value": "25",
   "header": "sona.h"
  },
  {
   "name": "SONA_SECTION_OTHER",
   "kind": "enumerator",
   "value": "26",
   "header": "sona.h"
  },
  {
   "name": "SONA_SECTION_COUNT",
   "kind": "enumerator",
   "value": "27",
   "header": "sona.h"
  },
  {
   "name": "SONA_BODY_MAN",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_BODY_WOMAN",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_BODY_BOTH",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_CUSTOM_ITEM_REGIONS",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_CUSTOM_ITEM_MESH",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona.h"
  },
  {
   "name": "SONA_CUSTOM_ITEM_SIGNED_CREATOR",
   "kind": "enumerator",
   "value": "1u << 2",
   "header": "sona.h"
  },
  {
   "name": "SONA_CUSTOM_ITEM_SIGNED_SITE",
   "kind": "enumerator",
   "value": "1u << 3",
   "header": "sona.h"
  },
  {
   "name": "SONA_CUSTOM_ITEM_UNBUILDABLE",
   "kind": "enumerator",
   "value": "1u << 4",
   "header": "sona.h"
  },
  {
   "name": "SONA_CUSTOM_ITEM_OWN_MESH",
   "kind": "enumerator",
   "value": "1u << 5",
   "header": "sona.h"
  },
  {
   "name": "SONA_PCM_F32",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_PCM_S16",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_LIPSYNC_VOICED",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_LIPSYNC_FRICATIVE",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona.h"
  },
  {
   "name": "SONA_LIPSYNC_HINTED",
   "kind": "enumerator",
   "value": "1u << 2",
   "header": "sona.h"
  },
  {
   "name": "SONA_LIPSYNC_CLOSURE",
   "kind": "enumerator",
   "value": "1u << 3",
   "header": "sona.h"
  },
  {
   "name": "SONA_LIPSYNC_WEB_RULES",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_DEVICE_AUTO",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_DEVICE_GPU",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_DEVICE_SOFTWARE",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_HEADLESS_VALIDATION",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_SEQUENCE_ORBIT",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_VIDEO_AUTO",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_VIDEO_PNG",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_VIDEO_GIF",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_VIDEO_MP4",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_VIDEO_WEBM",
   "kind": "enumerator",
   "value": "4",
   "header": "sona.h"
  },
  {
   "name": "SONA_VIDEO_OPAQUE",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_VIDEO_NO_DITHER",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona.h"
  },
  {
   "name": "SONA_SKELETON_UNITY",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_SKELETON_VRM",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_SKELETON_VRM0",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_SKELETON_UE4",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_SKELETON_UE5",
   "kind": "enumerator",
   "value": "4",
   "header": "sona.h"
  },
  {
   "name": "SONA_SKELETON_COUNT",
   "kind": "enumerator",
   "value": "5",
   "header": "sona.h"
  },
  {
   "name": "SONA_VRM_AA",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_VRM_IH",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_VRM_OU",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_VRM_EE",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_VRM_OH",
   "kind": "enumerator",
   "value": "4",
   "header": "sona.h"
  },
  {
   "name": "SONA_VRM_HAPPY",
   "kind": "enumerator",
   "value": "5",
   "header": "sona.h"
  },
  {
   "name": "SONA_VRM_ANGRY",
   "kind": "enumerator",
   "value": "6",
   "header": "sona.h"
  },
  {
   "name": "SONA_VRM_SAD",
   "kind": "enumerator",
   "value": "7",
   "header": "sona.h"
  },
  {
   "name": "SONA_VRM_RELAXED",
   "kind": "enumerator",
   "value": "8",
   "header": "sona.h"
  },
  {
   "name": "SONA_VRM_SURPRISED",
   "kind": "enumerator",
   "value": "9",
   "header": "sona.h"
  },
  {
   "name": "SONA_VRM_BLINK",
   "kind": "enumerator",
   "value": "10",
   "header": "sona.h"
  },
  {
   "name": "SONA_VRM_BLINK_LEFT",
   "kind": "enumerator",
   "value": "11",
   "header": "sona.h"
  },
  {
   "name": "SONA_VRM_BLINK_RIGHT",
   "kind": "enumerator",
   "value": "12",
   "header": "sona.h"
  },
  {
   "name": "SONA_VRM_LOOK_UP",
   "kind": "enumerator",
   "value": "13",
   "header": "sona.h"
  },
  {
   "name": "SONA_VRM_LOOK_DOWN",
   "kind": "enumerator",
   "value": "14",
   "header": "sona.h"
  },
  {
   "name": "SONA_VRM_LOOK_LEFT",
   "kind": "enumerator",
   "value": "15",
   "header": "sona.h"
  },
  {
   "name": "SONA_VRM_LOOK_RIGHT",
   "kind": "enumerator",
   "value": "16",
   "header": "sona.h"
  },
  {
   "name": "SONA_VRM_EXPRESSION_COUNT",
   "kind": "enumerator",
   "value": "17",
   "header": "sona.h"
  },
  {
   "name": "SONA_EXPORT_GLB",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_EXPORT_VRM",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_EXPORT_VRM0",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_EXPORT_FBX",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_EXPORT_ROBLOX",
   "kind": "enumerator",
   "value": "4",
   "header": "sona.h"
  },
  {
   "name": "SONA_EXPORT_NO_EXPRESSIONS",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_EXPORT_PBR",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona.h"
  },
  {
   "name": "SONA_EXPORT_NO_TEXTURES",
   "kind": "enumerator",
   "value": "1u << 2",
   "header": "sona.h"
  },
  {
   "name": "SONA_EXPORT_CLIPS",
   "kind": "enumerator",
   "value": "1u << 4",
   "header": "sona.h"
  },
  {
   "name": "SONA_VRM_ONLY_AUTHOR",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_VRM_SEPARATELY_LICENSED",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_VRM_EVERYONE",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_VRM_PERSONAL_NON_PROFIT",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_VRM_PERSONAL_PROFIT",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_VRM_CORPORATION",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_VRM_MODIFY_PROHIBITED",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_VRM_MODIFY_ALLOWED",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_VRM_MODIFY_REDISTRIBUTION",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_VRM_ALLOW_REDISTRIBUTION",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_VRM_ALLOW_VIOLENT",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona.h"
  },
  {
   "name": "SONA_VRM_ALLOW_SEXUAL",
   "kind": "enumerator",
   "value": "1u << 2",
   "header": "sona.h"
  },
  {
   "name": "SONA_VRM_ALLOW_POLITICAL",
   "kind": "enumerator",
   "value": "1u << 3",
   "header": "sona.h"
  },
  {
   "name": "SONA_VRM_ALLOW_ANTISOCIAL",
   "kind": "enumerator",
   "value": "1u << 4",
   "header": "sona.h"
  },
  {
   "name": "SONA_VRM_CREDIT_UNNECESSARY",
   "kind": "enumerator",
   "value": "1u << 5",
   "header": "sona.h"
  },
  {
   "name": "SONA_PRINT_BASE",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_PRINT_BASE_SQUARE",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona.h"
  },
  {
   "name": "SONA_PRINT_NO_COLOUR",
   "kind": "enumerator",
   "value": "1u << 2",
   "header": "sona.h"
  },
  {
   "name": "SONA_PRINT_LARGEST_ONLY",
   "kind": "enumerator",
   "value": "1u << 3",
   "header": "sona.h"
  },
  {
   "name": "SONA_PRINT_NO_PROPS",
   "kind": "enumerator",
   "value": "1u << 4",
   "header": "sona.h"
  },
  {
   "name": "SONA_PRINT_STL",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_PRINT_3MF",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_CLIP_TAG_IDLE",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_CLIP_TAG_EMOTE",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona.h"
  },
  {
   "name": "SONA_CLIP_TAG_REACTION",
   "kind": "enumerator",
   "value": "1u << 2",
   "header": "sona.h"
  },
  {
   "name": "SONA_CLIP_TAG_LOOK",
   "kind": "enumerator",
   "value": "1u << 3",
   "header": "sona.h"
  },
  {
   "name": "SONA_CLIP_TAG_EXAMINE",
   "kind": "enumerator",
   "value": "1u << 4",
   "header": "sona.h"
  },
  {
   "name": "SONA_CLIP_TAG_CELEBRATE",
   "kind": "enumerator",
   "value": "1u << 5",
   "header": "sona.h"
  },
  {
   "name": "SONA_CLIP_TAG_DANCE",
   "kind": "enumerator",
   "value": "1u << 6",
   "header": "sona.h"
  },
  {
   "name": "SONA_CLIP_TAG_SLEEP",
   "kind": "enumerator",
   "value": "1u << 7",
   "header": "sona.h"
  },
  {
   "name": "SONA_CLIP_TAG_SIT",
   "kind": "enumerator",
   "value": "1u << 8",
   "header": "sona.h"
  },
  {
   "name": "SONA_CLIP_TAG_ACTION",
   "kind": "enumerator",
   "value": "1u << 9",
   "header": "sona.h"
  },
  {
   "name": "SONA_CLIP_TAG_JUMP",
   "kind": "enumerator",
   "value": "1u << 10",
   "header": "sona.h"
  },
  {
   "name": "SONA_CLIP_TAG_FLOAT",
   "kind": "enumerator",
   "value": "1u << 11",
   "header": "sona.h"
  },
  {
   "name": "SONA_CLIP_TAG_LOCOMOTION",
   "kind": "enumerator",
   "value": "1u << 12",
   "header": "sona.h"
  },
  {
   "name": "SONA_CLIP_TAG_STAGE",
   "kind": "enumerator",
   "value": "1u << 13",
   "header": "sona.h"
  },
  {
   "name": "SONA_CLIP_TAG_LOOP",
   "kind": "enumerator",
   "value": "1u << 14",
   "header": "sona.h"
  },
  {
   "name": "SONA_CLIP_TAG_TRAVEL",
   "kind": "enumerator",
   "value": "1u << 15",
   "header": "sona.h"
  },
  {
   "name": "SONA_CLIP_TAG_MALE",
   "kind": "enumerator",
   "value": "1u << 16",
   "header": "sona.h"
  },
  {
   "name": "SONA_CLIP_TAG_FEMALE",
   "kind": "enumerator",
   "value": "1u << 17",
   "header": "sona.h"
  },
  {
   "name": "SONA_CLIP_TAG_COPY",
   "kind": "enumerator",
   "value": "1u << 18",
   "header": "sona.h"
  },
  {
   "name": "SONA_IDLE_BLINK",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_IDLE_GLANCE",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona.h"
  },
  {
   "name": "SONA_IDLE_SHIFT",
   "kind": "enumerator",
   "value": "1u << 2",
   "header": "sona.h"
  },
  {
   "name": "SONA_IDLE_BREATHE",
   "kind": "enumerator",
   "value": "1u << 3",
   "header": "sona.h"
  },
  {
   "name": "SONA_IDLE_ALL",
   "kind": "enumerator",
   "value": "0xFu",
   "header": "sona.h"
  },
  {
   "name": "SONA_IK_LEFT_HAND",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_IK_RIGHT_HAND",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_IK_LEFT_FOOT",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_IK_RIGHT_FOOT",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_IK_ROTATION",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_IK_POLE",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona.h"
  },
  {
   "name": "SONA_IK_RELATIVE",
   "kind": "enumerator",
   "value": "1u << 2",
   "header": "sona.h"
  },
  {
   "name": "SONA_IK_AVATAR_SPACE",
   "kind": "enumerator",
   "value": "1u << 3",
   "header": "sona.h"
  },
  {
   "name": "SONA_IK_WRIST",
   "kind": "enumerator",
   "value": "1u << 4",
   "header": "sona.h"
  },
  {
   "name": "SONA_IK_HIT_REACH",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_IK_HIT_BEND",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona.h"
  },
  {
   "name": "SONA_IK_HIT_POLE",
   "kind": "enumerator",
   "value": "1u << 2",
   "header": "sona.h"
  },
  {
   "name": "SONA_IK_HIT_BODY",
   "kind": "enumerator",
   "value": "1u << 3",
   "header": "sona.h"
  },
  {
   "name": "SONA_IK_HIT_ROTATION",
   "kind": "enumerator",
   "value": "1u << 4",
   "header": "sona.h"
  },
  {
   "name": "SONA_IK_HIT_GROUND",
   "kind": "enumerator",
   "value": "1u << 5",
   "header": "sona.h"
  },
  {
   "name": "SONA_IK_HIT_SWING",
   "kind": "enumerator",
   "value": "1u << 6",
   "header": "sona.h"
  },
  {
   "name": "SONA_IK_GROUND_PLANE",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_IK_GROUND_POINTS",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_IK_GROUND_CALLBACK",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_IK_LOOK_HEAD",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_IK_LOOK_EYES",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona.h"
  },
  {
   "name": "SONA_IK_NO_BODY",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_IK_ACTIVE_FEET",
   "kind": "enumerator",
   "value": "1u << 4",
   "header": "sona.h"
  },
  {
   "name": "SONA_IK_ACTIVE_LOOK",
   "kind": "enumerator",
   "value": "1u << 5",
   "header": "sona.h"
  },
  {
   "name": "SONA_IK_EYES_SACCADES",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_ANIM_AUTO",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_ANIM_GLTF",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_ANIM_FBX",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_ANIM_BVH",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_IMPORT_NO_ROOT_MOTION",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_IMPORT_NO_TRANSLATION",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona.h"
  },
  {
   "name": "SONA_IMPORT_REST_BIND",
   "kind": "enumerator",
   "value": "1u << 2",
   "header": "sona.h"
  },
  {
   "name": "SONA_IMPORT_REST_NODES",
   "kind": "enumerator",
   "value": "1u << 3",
   "header": "sona.h"
  },
  {
   "name": "SONA_IMPORT_REST_FIRST_FRAME",
   "kind": "enumerator",
   "value": "1u << 4",
   "header": "sona.h"
  },
  {
   "name": "SONA_IMPORT_MAP_ONLY",
   "kind": "enumerator",
   "value": "1u << 5",
   "header": "sona.h"
  },
  {
   "name": "SONA_IMPORT_NO_ALIGN",
   "kind": "enumerator",
   "value": "1u << 6",
   "header": "sona.h"
  },
  {
   "name": "SONA_IMPORT_NO_FINGERS",
   "kind": "enumerator",
   "value": "1u << 7",
   "header": "sona.h"
  },
  {
   "name": "SONA_IMPORT_HOLD_END",
   "kind": "enumerator",
   "value": "1u << 8",
   "header": "sona.h"
  },
  {
   "name": "SONA_NAMING_NONE",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_NAMING_MIXAMO",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_NAMING_UNITY",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_NAMING_UNREAL",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_NAMING_BVH",
   "kind": "enumerator",
   "value": "4",
   "header": "sona.h"
  },
  {
   "name": "SONA_NAMING_BIPED",
   "kind": "enumerator",
   "value": "5",
   "header": "sona.h"
  },
  {
   "name": "SONA_NAMING_BLENDER",
   "kind": "enumerator",
   "value": "6",
   "header": "sona.h"
  },
  {
   "name": "SONA_NAMING_CC",
   "kind": "enumerator",
   "value": "7",
   "header": "sona.h"
  },
  {
   "name": "SONA_NAMING_DAZ",
   "kind": "enumerator",
   "value": "8",
   "header": "sona.h"
  },
  {
   "name": "SONA_NAMING_MAP",
   "kind": "enumerator",
   "value": "9",
   "header": "sona.h"
  },
  {
   "name": "SONA_PLAYER_WAITING",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_PLAYER_FRESH",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_PLAYER_STALE",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_PLAYER_PRIVATE",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_PLAYER_NONE",
   "kind": "enumerator",
   "value": "4",
   "header": "sona.h"
  },
  {
   "name": "SONA_PLAYER_EVENT_NONE",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_PLAYER_EVENT_LOOK",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_PLAYER_EVENT_GONE",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_PLAYER_EVENT_FAILED",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_STYLE_ANY",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_STYLE_CASUAL",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_STYLE_SMART",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_STYLE_SPORTY",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_STYLE_COSTUME",
   "kind": "enumerator",
   "value": "4",
   "header": "sona.h"
  },
  {
   "name": "SONA_STYLE_COUNT",
   "kind": "enumerator",
   "value": "5",
   "header": "sona.h"
  },
  {
   "name": "SONA_PALETTE_NATURAL",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_PALETTE_VIVID",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_PALETTE_PASTEL",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_PALETTE_MONO",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_PALETTE_FANTASY",
   "kind": "enumerator",
   "value": "4",
   "header": "sona.h"
  },
  {
   "name": "SONA_PALETTE_COUNT",
   "kind": "enumerator",
   "value": "5",
   "header": "sona.h"
  },
  {
   "name": "SONA_RANDOM_NO_COSTUME",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_RANDOM_PROPS",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona.h"
  },
  {
   "name": "SONA_RANDOM_MATCHED_SET",
   "kind": "enumerator",
   "value": "1u << 2",
   "header": "sona.h"
  },
  {
   "name": "SONA_RANDOM_PLAIN",
   "kind": "enumerator",
   "value": "1u << 3",
   "header": "sona.h"
  },
  {
   "name": "SONA_RANDOM_KEEP_FACE",
   "kind": "enumerator",
   "value": "1u << 4",
   "header": "sona.h"
  },
  {
   "name": "SONA_RANDOM_KEEP_HAIR",
   "kind": "enumerator",
   "value": "1u << 5",
   "header": "sona.h"
  },
  {
   "name": "SONA_RANDOM_KEEP_COLOURS",
   "kind": "enumerator",
   "value": "1u << 6",
   "header": "sona.h"
  },
  {
   "name": "SONA_RANDOM_KEEP_SHAPE",
   "kind": "enumerator",
   "value": "1u << 7",
   "header": "sona.h"
  },
  {
   "name": "SONA_LIKE_CLOTHES",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_LIKE_PROPS",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona.h"
  },
  {
   "name": "SONA_LIKE_HAIR",
   "kind": "enumerator",
   "value": "1u << 2",
   "header": "sona.h"
  },
  {
   "name": "SONA_LIKE_FACE",
   "kind": "enumerator",
   "value": "1u << 3",
   "header": "sona.h"
  },
  {
   "name": "SONA_LIKE_COLOURS",
   "kind": "enumerator",
   "value": "1u << 4",
   "header": "sona.h"
  },
  {
   "name": "SONA_LIKE_SHAPE",
   "kind": "enumerator",
   "value": "1u << 5",
   "header": "sona.h"
  },
  {
   "name": "SONA_LIKE_ALL",
   "kind": "enumerator",
   "value": "0x3fu",
   "header": "sona.h"
  },
  {
   "name": "SONA_LIKE_LAYER",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_MATCH_SAME",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_MATCH_SIMILAR",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_MATCH_ANY",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_RESOLVED_DROPPED",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_RESOLVED_KEPT",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_RESOLVED_VARIANT",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_RESOLVED_SIMILAR",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_RESOLVED_SUBSTITUTE",
   "kind": "enumerator",
   "value": "4",
   "header": "sona.h"
  },
  {
   "name": "SONA_RESOLVED_COVERED",
   "kind": "enumerator",
   "value": "5",
   "header": "sona.h"
  },
  {
   "name": "SONA_CLASH_SLOT",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_CLASH_BODY",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona.h"
  },
  {
   "name": "SONA_CLASH_SAME",
   "kind": "enumerator",
   "value": "1u << 2",
   "header": "sona.h"
  },
  {
   "name": "SONA_SEVERITY_INFO",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_SEVERITY_WARNING",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_SEVERITY_ERROR",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_ISSUE_NO_BODY",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_ISSUE_CLASH",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_ISSUE_WRONG_BODY",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_ISSUE_DUPLICATE",
   "kind": "enumerator",
   "value": "4",
   "header": "sona.h"
  },
  {
   "name": "SONA_ISSUE_WRONG_PLACE",
   "kind": "enumerator",
   "value": "5",
   "header": "sona.h"
  },
  {
   "name": "SONA_ISSUE_MISSING",
   "kind": "enumerator",
   "value": "6",
   "header": "sona.h"
  },
  {
   "name": "SONA_ISSUE_BAD_SHAPE",
   "kind": "enumerator",
   "value": "7",
   "header": "sona.h"
  },
  {
   "name": "SONA_ISSUE_TOO_MANY_PROPS",
   "kind": "enumerator",
   "value": "8",
   "header": "sona.h"
  },
  {
   "name": "SONA_ISSUE_SHAPE_RANGE",
   "kind": "enumerator",
   "value": "9",
   "header": "sona.h"
  },
  {
   "name": "SONA_ISSUE_STALE_CACHE",
   "kind": "enumerator",
   "value": "10",
   "header": "sona.h"
  },
  {
   "name": "SONA_ISSUE_BAD_MASK",
   "kind": "enumerator",
   "value": "11",
   "header": "sona.h"
  },
  {
   "name": "SONA_ISSUE_UNKNOWN",
   "kind": "enumerator",
   "value": "12",
   "header": "sona.h"
  },
  {
   "name": "SONA_ISSUE_PROPS",
   "kind": "enumerator",
   "value": "13",
   "header": "sona.h"
  },
  {
   "name": "SONA_ISSUE_NOT_OFFERED",
   "kind": "enumerator",
   "value": "14",
   "header": "sona.h"
  },
  {
   "name": "SONA_ISSUE_CUSTOM",
   "kind": "enumerator",
   "value": "15",
   "header": "sona.h"
  },
  {
   "name": "SONA_ISSUE_COUNT",
   "kind": "enumerator",
   "value": "16",
   "header": "sona.h"
  },
  {
   "name": "SONA_FIELD_WORN",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_FIELD_FACE",
   "kind": "enumerator",
   "value": "16",
   "header": "sona.h"
  },
  {
   "name": "SONA_FIELD_CHIN",
   "kind": "enumerator",
   "value": "24",
   "header": "sona.h"
  },
  {
   "name": "SONA_FIELD_NOSE",
   "kind": "enumerator",
   "value": "25",
   "header": "sona.h"
  },
  {
   "name": "SONA_FIELD_EARS",
   "kind": "enumerator",
   "value": "26",
   "header": "sona.h"
  },
  {
   "name": "SONA_FIELD_REQUIRED",
   "kind": "enumerator",
   "value": "28",
   "header": "sona.h"
  },
  {
   "name": "SONA_FIELD_BODY",
   "kind": "enumerator",
   "value": "32",
   "header": "sona.h"
  },
  {
   "name": "SONA_FIELD_HEAD",
   "kind": "enumerator",
   "value": "33",
   "header": "sona.h"
  },
  {
   "name": "SONA_FIELD_SHAPE",
   "kind": "enumerator",
   "value": "34",
   "header": "sona.h"
  },
  {
   "name": "SONA_FIELD_NONE",
   "kind": "enumerator",
   "value": "255",
   "header": "sona.h"
  },
  {
   "name": "SONA_CONTENT_ALLOW",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_CONTENT_DENY",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_CONTENT_STOCK",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_CONTENT_AWARD",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona.h"
  },
  {
   "name": "SONA_CONTENT_MARKETPLACE",
   "kind": "enumerator",
   "value": "1u << 2",
   "header": "sona.h"
  },
  {
   "name": "SONA_CONTENT_CUSTOM",
   "kind": "enumerator",
   "value": "1u << 3",
   "header": "sona.h"
  },
  {
   "name": "SONA_CONTENT_UNLISTED",
   "kind": "enumerator",
   "value": "1u << 4",
   "header": "sona.h"
  },
  {
   "name": "SONA_CONTENT_TAG_LICENSED",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_CONTENT_TAG_LOGO",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_CONTENT_TAG_WEAPON",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_CONTENT_TAG_HORROR",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_CONTENT_TAG_MILITARY",
   "kind": "enumerator",
   "value": "4",
   "header": "sona.h"
  },
  {
   "name": "SONA_CONTENT_TAG_SEASONAL",
   "kind": "enumerator",
   "value": "5",
   "header": "sona.h"
  },
  {
   "name": "SONA_CONTENT_TAG_HIDES_FACE",
   "kind": "enumerator",
   "value": "6",
   "header": "sona.h"
  },
  {
   "name": "SONA_CONTENT_TAG_ALCOHOL",
   "kind": "enumerator",
   "value": "7",
   "header": "sona.h"
  },
  {
   "name": "SONA_CONTENT_TAG_BUILTIN",
   "kind": "enumerator",
   "value": "8",
   "header": "sona.h"
  },
  {
   "name": "SONA_CONTENT_TAG_MAX",
   "kind": "enumerator",
   "value": "64",
   "header": "sona.h"
  },
  {
   "name": "SONA_CONTENT_FAMILY",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_CONTENT_NO_LOGOS",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_CONTENT_NO_LICENSED",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_CONTENT_OK",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_CONTENT_BY_ID",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_CONTENT_BY_SOURCE",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_CONTENT_BY_SECTION",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_CONTENT_BY_SLOT",
   "kind": "enumerator",
   "value": "4",
   "header": "sona.h"
  },
  {
   "name": "SONA_CONTENT_BY_GAME",
   "kind": "enumerator",
   "value": "5",
   "header": "sona.h"
  },
  {
   "name": "SONA_CONTENT_BY_TAG",
   "kind": "enumerator",
   "value": "6",
   "header": "sona.h"
  },
  {
   "name": "SONA_CONTENT_NOT_ALLOWED",
   "kind": "enumerator",
   "value": "7",
   "header": "sona.h"
  },
  {
   "name": "SONA_CONTENT_REPLACED",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_CONTENT_HIDDEN",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_STATE_NO_LOOK",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_STATE_PART_FADE",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_STATE_PART_LAYERS",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona.h"
  },
  {
   "name": "SONA_STATE_PART_OVERRIDES",
   "kind": "enumerator",
   "value": "1u << 2",
   "header": "sona.h"
  },
  {
   "name": "SONA_STATE_PART_IK",
   "kind": "enumerator",
   "value": "1u << 3",
   "header": "sona.h"
  },
  {
   "name": "SONA_STATE_PART_IDLE",
   "kind": "enumerator",
   "value": "1u << 4",
   "header": "sona.h"
  },
  {
   "name": "SONA_STATE_PART_QUEUE",
   "kind": "enumerator",
   "value": "1u << 5",
   "header": "sona.h"
  },
  {
   "name": "SONA_STATE_PART_PROPS",
   "kind": "enumerator",
   "value": "1u << 6",
   "header": "sona.h"
  },
  {
   "name": "SONA_STATE_MISSING_CLIP",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_STATE_MISSING_BLEND",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona.h"
  },
  {
   "name": "SONA_STATE_MISSING_MACHINE",
   "kind": "enumerator",
   "value": "1u << 2",
   "header": "sona.h"
  },
  {
   "name": "SONA_STATE_MISSING_GROUND",
   "kind": "enumerator",
   "value": "1u << 3",
   "header": "sona.h"
  },
  {
   "name": "SONA_STATE_MISSING_POSE",
   "kind": "enumerator",
   "value": "1u << 4",
   "header": "sona.h"
  },
  {
   "name": "SONA_STATE_MISSING_LOOK",
   "kind": "enumerator",
   "value": "1u << 5",
   "header": "sona.h"
  },
  {
   "name": "SONA_STATE_MISSING_PROP",
   "kind": "enumerator",
   "value": "1u << 6",
   "header": "sona.h"
  },
  {
   "name": "SONA_STATE_LIVE",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_STATE_WAITING",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_STATE_PUPPET",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_NET_LOOK_NONE",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_NET_LOOK_MANIFEST",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_NET_LOOK_ID",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_SHADOW_NONE",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_SHADOW_FIT",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_SHADOW_SPHERE",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_SHADOW_MATRIX",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_LIGHTING_GROUND",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_LIGHTING_PROXY_CASTERS",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona.h"
  },
  {
   "name": "SONA_LIGHTING_MESH_CASTERS",
   "kind": "enumerator",
   "value": "1u << 3",
   "header": "sona.h"
  },
  {
   "name": "SONA_ENV_BUILTIN",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_ENV_SH9",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_ENV_CUBE",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_STYLE_ORIGINAL",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_STYLE_TOON",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_STYLE_FLAT",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_STYLE_SILHOUETTE",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_STYLE_PROMO",
   "kind": "enumerator",
   "value": "4",
   "header": "sona.h"
  },
  {
   "name": "SONA_STYLE_OUTLINE",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_STYLE_OVERRIDE",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona.h"
  },
  {
   "name": "SONA_PLACEHOLDER_NONE",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_PLACEHOLDER_WAITING",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_PLACEHOLDER_LOADING",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_PLACEHOLDER_REVEAL",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_PLACEHOLDER_FAILED",
   "kind": "enumerator",
   "value": "4",
   "header": "sona.h"
  },
  {
   "name": "SONA_PH_HIDE_FAILED",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_PH_NO_CLIP",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona.h"
  },
  {
   "name": "SONA_PH_NO_SPRITES",
   "kind": "enumerator",
   "value": "1u << 2",
   "header": "sona.h"
  },
  {
   "name": "SONA_PH_NO_GLOW",
   "kind": "enumerator",
   "value": "1u << 3",
   "header": "sona.h"
  },
  {
   "name": "SONA_ACT_NONE",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_ACT_UP",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_ACT_DOWN",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_ACT_LEFT",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_ACT_RIGHT",
   "kind": "enumerator",
   "value": "4",
   "header": "sona.h"
  },
  {
   "name": "SONA_ACT_ACCEPT",
   "kind": "enumerator",
   "value": "5",
   "header": "sona.h"
  },
  {
   "name": "SONA_ACT_BACK",
   "kind": "enumerator",
   "value": "6",
   "header": "sona.h"
  },
  {
   "name": "SONA_ACT_X",
   "kind": "enumerator",
   "value": "7",
   "header": "sona.h"
  },
  {
   "name": "SONA_ACT_Y",
   "kind": "enumerator",
   "value": "8",
   "header": "sona.h"
  },
  {
   "name": "SONA_ACT_PREV_TAB",
   "kind": "enumerator",
   "value": "9",
   "header": "sona.h"
  },
  {
   "name": "SONA_ACT_NEXT_TAB",
   "kind": "enumerator",
   "value": "10",
   "header": "sona.h"
  },
  {
   "name": "SONA_ACT_MENU",
   "kind": "enumerator",
   "value": "11",
   "header": "sona.h"
  },
  {
   "name": "SONA_ACT_COUNT",
   "kind": "enumerator",
   "value": "12",
   "header": "sona.h"
  },
  {
   "name": "SONA_INPUT_PRESS",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_INPUT_RELEASE",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_INPUT_POINTER_MOVE",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_INPUT_POINTER_DOWN",
   "kind": "enumerator",
   "value": "4",
   "header": "sona.h"
  },
  {
   "name": "SONA_INPUT_POINTER_UP",
   "kind": "enumerator",
   "value": "5",
   "header": "sona.h"
  },
  {
   "name": "SONA_INPUT_SCROLL",
   "kind": "enumerator",
   "value": "6",
   "header": "sona.h"
  },
  {
   "name": "SONA_INPUT_TURN",
   "kind": "enumerator",
   "value": "7",
   "header": "sona.h"
  },
  {
   "name": "SONA_INPUT_POINTER_LEAVE",
   "kind": "enumerator",
   "value": "8",
   "header": "sona.h"
  },
  {
   "name": "SONA_INPUT_FROM_GAMEPAD",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_INPUT_FROM_KEYBOARD",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_INPUT_FROM_MOUSE",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_INPUT_FROM_TOUCH",
   "kind": "enumerator",
   "value": "4",
   "header": "sona.h"
  },
  {
   "name": "SONA_THEME_DARK",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_THEME_LIGHT",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_THEME_CONTRAST",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_THEME_HIGH_CONTRAST",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_THEME_REDUCE_MOTION",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona.h"
  },
  {
   "name": "SONA_THEME_LARGE_TEXT",
   "kind": "enumerator",
   "value": "1u << 2",
   "header": "sona.h"
  },
  {
   "name": "SONA_ROLE_SCREEN",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_ROLE_PANEL",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_ROLE_TITLE",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_ROLE_TEXT",
   "kind": "enumerator",
   "value": "4",
   "header": "sona.h"
  },
  {
   "name": "SONA_ROLE_BUTTON",
   "kind": "enumerator",
   "value": "5",
   "header": "sona.h"
  },
  {
   "name": "SONA_ROLE_LOOK",
   "kind": "enumerator",
   "value": "6",
   "header": "sona.h"
  },
  {
   "name": "SONA_ROLE_ITEM",
   "kind": "enumerator",
   "value": "7",
   "header": "sona.h"
  },
  {
   "name": "SONA_ROLE_SWATCH",
   "kind": "enumerator",
   "value": "8",
   "header": "sona.h"
  },
  {
   "name": "SONA_ROLE_ROW",
   "kind": "enumerator",
   "value": "9",
   "header": "sona.h"
  },
  {
   "name": "SONA_ROLE_TAB",
   "kind": "enumerator",
   "value": "10",
   "header": "sona.h"
  },
  {
   "name": "SONA_ROLE_VIEW",
   "kind": "enumerator",
   "value": "11",
   "header": "sona.h"
  },
  {
   "name": "SONA_ROLE_HINT",
   "kind": "enumerator",
   "value": "12",
   "header": "sona.h"
  },
  {
   "name": "SONA_ROLE_STATUS",
   "kind": "enumerator",
   "value": "13",
   "header": "sona.h"
  },
  {
   "name": "SONA_ROLE_SCROLLBAR",
   "kind": "enumerator",
   "value": "14",
   "header": "sona.h"
  },
  {
   "name": "SONA_NODE_FOCUSED",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_NODE_SELECTED",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona.h"
  },
  {
   "name": "SONA_NODE_DISABLED",
   "kind": "enumerator",
   "value": "1u << 2",
   "header": "sona.h"
  },
  {
   "name": "SONA_NODE_HOVERED",
   "kind": "enumerator",
   "value": "1u << 3",
   "header": "sona.h"
  },
  {
   "name": "SONA_NODE_LOADING",
   "kind": "enumerator",
   "value": "1u << 4",
   "header": "sona.h"
  },
  {
   "name": "SONA_NODE_PRESSED",
   "kind": "enumerator",
   "value": "1u << 5",
   "header": "sona.h"
  },
  {
   "name": "SONA_NODE_FOCUSABLE",
   "kind": "enumerator",
   "value": "1u << 6",
   "header": "sona.h"
  },
  {
   "name": "SONA_NODE_WORN",
   "kind": "enumerator",
   "value": "1u << 7",
   "header": "sona.h"
  },
  {
   "name": "SONA_NODE_HIDDEN_RING",
   "kind": "enumerator",
   "value": "1u << 8",
   "header": "sona.h"
  },
  {
   "name": "SONA_SCREEN_RUNNING",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_SCREEN_DONE",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_SCREEN_CANCELLED",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_SCREEN_FINE_TUNE",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_QUICK_NO_FINE_TUNE",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_QUICK_NO_BACK",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona.h"
  },
  {
   "name": "SONA_QUICK_NO_COSTUMES",
   "kind": "enumerator",
   "value": "1u << 2",
   "header": "sona.h"
  },
  {
   "name": "SONA_WARDROBE_STOCK",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_WARDROBE_NO_COSTUMES",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona.h"
  },
  {
   "name": "SONA_WARDROBE_NO_PREVIEW",
   "kind": "enumerator",
   "value": "1u << 2",
   "header": "sona.h"
  },
  {
   "name": "SONA_SCREEN_KIND_QUICK",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_SCREEN_KIND_WARDROBE",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_PICK_HIDDEN",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_PICK_CULLED",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona.h"
  },
  {
   "name": "SONA_PICK_BACK_FACES",
   "kind": "enumerator",
   "value": "1u << 2",
   "header": "sona.h"
  },
  {
   "name": "SONA_PICK_NO_ALPHA",
   "kind": "enumerator",
   "value": "1u << 3",
   "header": "sona.h"
  },
  {
   "name": "SONA_PICK_NO_PROPS",
   "kind": "enumerator",
   "value": "1u << 4",
   "header": "sona.h"
  },
  {
   "name": "SONA_PICK_BOUNDS",
   "kind": "enumerator",
   "value": "1u << 5",
   "header": "sona.h"
  },
  {
   "name": "SONA_PICK_SPRITES_AS_MESH",
   "kind": "enumerator",
   "value": "1u << 6",
   "header": "sona.h"
  },
  {
   "name": "SONA_PICK_SOURCE_MESH",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_PICK_SOURCE_SPRITE",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_PICK_SOURCE_BOUNDS",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_PICK_BODY",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_PICK_ITEM",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_PICK_PROP",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_PICK_HIT_BACK",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_PICK_HIT_FACE",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona.h"
  },
  {
   "name": "SONA_PICK_HIT_GPU",
   "kind": "enumerator",
   "value": "1u << 2",
   "header": "sona.h"
  },
  {
   "name": "SONA_REGION_NONE",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_REGION_HEAD",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_REGION_NECK",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_REGION_TORSO",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_REGION_HIPS",
   "kind": "enumerator",
   "value": "4",
   "header": "sona.h"
  },
  {
   "name": "SONA_REGION_LEFT_ARM",
   "kind": "enumerator",
   "value": "5",
   "header": "sona.h"
  },
  {
   "name": "SONA_REGION_RIGHT_ARM",
   "kind": "enumerator",
   "value": "6",
   "header": "sona.h"
  },
  {
   "name": "SONA_REGION_LEFT_HAND",
   "kind": "enumerator",
   "value": "7",
   "header": "sona.h"
  },
  {
   "name": "SONA_REGION_RIGHT_HAND",
   "kind": "enumerator",
   "value": "8",
   "header": "sona.h"
  },
  {
   "name": "SONA_REGION_LEFT_LEG",
   "kind": "enumerator",
   "value": "9",
   "header": "sona.h"
  },
  {
   "name": "SONA_REGION_RIGHT_LEG",
   "kind": "enumerator",
   "value": "10",
   "header": "sona.h"
  },
  {
   "name": "SONA_REGION_LEFT_FOOT",
   "kind": "enumerator",
   "value": "11",
   "header": "sona.h"
  },
  {
   "name": "SONA_REGION_RIGHT_FOOT",
   "kind": "enumerator",
   "value": "12",
   "header": "sona.h"
  },
  {
   "name": "SONA_REGION_COUNT",
   "kind": "enumerator",
   "value": "13",
   "header": "sona.h"
  },
  {
   "name": "SONA_PROP_PART_TRANSPARENT",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_PROP_PART_RIGHT_HANDED",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona.h"
  },
  {
   "name": "SONA_PROP_LOAD_NO_TEXTURES",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_PROP_LOAD_CENTER",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona.h"
  },
  {
   "name": "SONA_PROP_KIND_HOST",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_PROP_KIND_STOCK",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_PROP_INFO_PET",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_PROP_INFO_CLIP",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona.h"
  },
  {
   "name": "SONA_PROP_INFO_UNTEXTURED",
   "kind": "enumerator",
   "value": "1u << 2",
   "header": "sona.h"
  },
  {
   "name": "SONA_PROP_HIDDEN",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_PROP_PLAY",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona.h"
  },
  {
   "name": "SONA_PROP_ONCE",
   "kind": "enumerator",
   "value": "1u << 2",
   "header": "sona.h"
  },
  {
   "name": "SONA_PROP_PERFORM",
   "kind": "enumerator",
   "value": "1u << 3",
   "header": "sona.h"
  },
  {
   "name": "SONA_PROP_NO_BODY_SCALE",
   "kind": "enumerator",
   "value": "1u << 4",
   "header": "sona.h"
  },
  {
   "name": "SONA_PROP_FRAME_POSED",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_PROP_FRAME_READY",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona.h"
  },
  {
   "name": "SONA_PROP_FRAME_DRAWN",
   "kind": "enumerator",
   "value": "1u << 2",
   "header": "sona.h"
  },
  {
   "name": "SONA_EXPORT_NO_PROPS",
   "kind": "enumerator",
   "value": "1u << 3",
   "header": "sona.h"
  },
  {
   "name": "SONA_RAGDOLL_CAPSULE",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_RAGDOLL_BOX",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_RAGDOLL_ROOT",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_RAGDOLL_SWING_TWIST",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_RAGDOLL_HINGE",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_RAGDOLL_ALL_CAPSULES",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_RAGDOLL_REST_POSE",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona.h"
  },
  {
   "name": "SONA_RAGDOLL_KEEP_LENGTHS",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_RAGDOLL_OFF",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_RAGDOLL_TRACKING",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_RAGDOLL_DRIVEN",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_RAGDOLL_BLENDING",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_SWAY_HAIR",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_SWAY_CLOTH",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona.h"
  },
  {
   "name": "SONA_SWAY_ACCESSORIES",
   "kind": "enumerator",
   "value": "1u << 2",
   "header": "sona.h"
  },
  {
   "name": "SONA_SWAY_HEADWEAR",
   "kind": "enumerator",
   "value": "1u << 3",
   "header": "sona.h"
  },
  {
   "name": "SONA_SWAY_DEFAULT",
   "kind": "enumerator",
   "value": "7u",
   "header": "sona.h"
  },
  {
   "name": "SONA_SWAY_ALL",
   "kind": "enumerator",
   "value": "15u",
   "header": "sona.h"
  },
  {
   "name": "SONA_SWAY_LOW",
   "kind": "enumerator",
   "value": "0",
   "header": "sona.h"
  },
  {
   "name": "SONA_SWAY_MEDIUM",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_SWAY_HIGH",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_INTERACT_HOLD_HANDS",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_INTERACT_HIGH_FIVE",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_INTERACT_HANDSHAKE",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_INTERACT_HUG",
   "kind": "enumerator",
   "value": "4",
   "header": "sona.h"
  },
  {
   "name": "SONA_INTERACT_SIT",
   "kind": "enumerator",
   "value": "5",
   "header": "sona.h"
  },
  {
   "name": "SONA_INTERACT_MIRROR",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona.h"
  },
  {
   "name": "SONA_INTERACT_HANDS",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona.h"
  },
  {
   "name": "SONA_INTERACT_NO_ALIGN",
   "kind": "enumerator",
   "value": "1u << 2",
   "header": "sona.h"
  },
  {
   "name": "SONA_SEAT_CHAIR",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_SEAT_BENCH",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_SEAT_GROUND",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_INTERACT_STARTING",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_INTERACT_HOLDING",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_INTERACT_ENDING",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_INTERACT_DONE",
   "kind": "enumerator",
   "value": "4",
   "header": "sona.h"
  },
  {
   "name": "SONA_INTERACT_EV_START",
   "kind": "enumerator",
   "value": "1",
   "header": "sona.h"
  },
  {
   "name": "SONA_INTERACT_EV_CONTACT",
   "kind": "enumerator",
   "value": "2",
   "header": "sona.h"
  },
  {
   "name": "SONA_INTERACT_EV_HOLD",
   "kind": "enumerator",
   "value": "3",
   "header": "sona.h"
  },
  {
   "name": "SONA_INTERACT_EV_SHAKE",
   "kind": "enumerator",
   "value": "4",
   "header": "sona.h"
  },
  {
   "name": "SONA_INTERACT_EV_RELEASE",
   "kind": "enumerator",
   "value": "5",
   "header": "sona.h"
  },
  {
   "name": "SONA_INTERACT_EV_END",
   "kind": "enumerator",
   "value": "6",
   "header": "sona.h"
  },
  {
   "name": "SONA_INTERACT_EV_CANCEL",
   "kind": "enumerator",
   "value": "7",
   "header": "sona.h"
  },
  {
   "name": "SONA_BODY_LANDMARKS",
   "kind": "define",
   "value": "33",
   "header": "sona_body.h",
   "comment": "How .points is laid out. MEDIAPIPE: the pose landmarker's 33 world landmarks, nose first, in its order."
  },
  {
   "name": "SONA_BODY_LAYOUT_MEDIAPIPE",
   "kind": "enumerator",
   "value": "0",
   "header": "sona_body.h"
  },
  {
   "name": "SONA_BODY_MIRROR",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona_body.h"
  },
  {
   "name": "SONA_BODY_NO_LEGS",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona_body.h"
  },
  {
   "name": "SONA_BODY_NO_ROOT",
   "kind": "enumerator",
   "value": "1u << 2",
   "header": "sona_body.h"
  },
  {
   "name": "SONA_BODY_FOUND",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona_body.h"
  },
  {
   "name": "SONA_EDITOR_MODE_FULL",
   "kind": "enumerator",
   "value": "0",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_MODE_QUICK",
   "kind": "enumerator",
   "value": "1",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_MODE_WARDROBE",
   "kind": "enumerator",
   "value": "2",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_SCREEN_LOOKS",
   "kind": "enumerator",
   "value": "0",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_SCREEN_BODY",
   "kind": "enumerator",
   "value": "1",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_SCREEN_FACE",
   "kind": "enumerator",
   "value": "2",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_SCREEN_HAIR",
   "kind": "enumerator",
   "value": "3",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_SCREEN_COLOURS",
   "kind": "enumerator",
   "value": "4",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_SCREEN_WARDROBE",
   "kind": "enumerator",
   "value": "5",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_SCREEN_QUICK",
   "kind": "enumerator",
   "value": "6",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_SCREEN_COUNT",
   "kind": "enumerator",
   "value": "7",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_SCREEN_APPEARANCE",
   "kind": "enumerator",
   "value": "7",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_RUNNING",
   "kind": "enumerator",
   "value": "0",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_DONE",
   "kind": "enumerator",
   "value": "1",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_CANCELLED",
   "kind": "enumerator",
   "value": "2",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_SOUND_MOVE",
   "kind": "enumerator",
   "value": "1",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_SOUND_SELECT",
   "kind": "enumerator",
   "value": "2",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_SOUND_BACK",
   "kind": "enumerator",
   "value": "3",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_SOUND_TAB",
   "kind": "enumerator",
   "value": "4",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_SOUND_PAGE",
   "kind": "enumerator",
   "value": "5",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_SOUND_DONE",
   "kind": "enumerator",
   "value": "6",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_SOUND_CANCEL",
   "kind": "enumerator",
   "value": "7",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_SOUND_ERROR",
   "kind": "enumerator",
   "value": "8",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_SOUND_RANDOM",
   "kind": "enumerator",
   "value": "9",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_NO_THUMBNAILS",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_NO_CANCEL",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_HOST_UPDATES",
   "kind": "enumerator",
   "value": "1u << 2",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_ALL_ITEMS",
   "kind": "enumerator",
   "value": "1u << 3",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_GARMENT_COLOURS",
   "kind": "enumerator",
   "value": "1u << 4",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_SHARP_THUMBNAILS",
   "kind": "enumerator",
   "value": "1u << 5",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_HOST_HINTS",
   "kind": "enumerator",
   "value": "1u << 6",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_DOORS",
   "kind": "enumerator",
   "value": "1u << 7",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_THEME_DARK",
   "kind": "enumerator",
   "value": "0",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_THEME_LIGHT",
   "kind": "enumerator",
   "value": "1",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_IN_BUTTON",
   "kind": "enumerator",
   "value": "1",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_IN_AXIS",
   "kind": "enumerator",
   "value": "2",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_IN_KEY",
   "kind": "enumerator",
   "value": "3",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_IN_TEXT",
   "kind": "enumerator",
   "value": "4",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_IN_POINTER",
   "kind": "enumerator",
   "value": "5",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_IN_WHEEL",
   "kind": "enumerator",
   "value": "6",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_PAD_A",
   "kind": "enumerator",
   "value": "0",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_PAD_B",
   "kind": "enumerator",
   "value": "1",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_PAD_X",
   "kind": "enumerator",
   "value": "2",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_PAD_Y",
   "kind": "enumerator",
   "value": "3",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_PAD_LB",
   "kind": "enumerator",
   "value": "4",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_PAD_RB",
   "kind": "enumerator",
   "value": "5",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_PAD_LT",
   "kind": "enumerator",
   "value": "6",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_PAD_RT",
   "kind": "enumerator",
   "value": "7",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_PAD_UP",
   "kind": "enumerator",
   "value": "8",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_PAD_DOWN",
   "kind": "enumerator",
   "value": "9",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_PAD_LEFT",
   "kind": "enumerator",
   "value": "10",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_PAD_RIGHT",
   "kind": "enumerator",
   "value": "11",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_PAD_START",
   "kind": "enumerator",
   "value": "12",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_PAD_BACK",
   "kind": "enumerator",
   "value": "13",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_PAD_COUNT",
   "kind": "enumerator",
   "value": "14",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_AXIS_LX",
   "kind": "enumerator",
   "value": "0",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_AXIS_LY",
   "kind": "enumerator",
   "value": "1",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_AXIS_RX",
   "kind": "enumerator",
   "value": "2",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_AXIS_RY",
   "kind": "enumerator",
   "value": "3",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_AXIS_LT",
   "kind": "enumerator",
   "value": "4",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_AXIS_RT",
   "kind": "enumerator",
   "value": "5",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_KEY_UP",
   "kind": "enumerator",
   "value": "1",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_KEY_DOWN",
   "kind": "enumerator",
   "value": "2",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_KEY_LEFT",
   "kind": "enumerator",
   "value": "3",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_KEY_RIGHT",
   "kind": "enumerator",
   "value": "4",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_KEY_ENTER",
   "kind": "enumerator",
   "value": "5",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_KEY_SPACE",
   "kind": "enumerator",
   "value": "6",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_KEY_ESCAPE",
   "kind": "enumerator",
   "value": "7",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_KEY_BACKSPACE",
   "kind": "enumerator",
   "value": "8",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_KEY_TAB",
   "kind": "enumerator",
   "value": "9",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_KEY_PAGE_UP",
   "kind": "enumerator",
   "value": "10",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_KEY_PAGE_DOWN",
   "kind": "enumerator",
   "value": "11",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_KEY_HOME",
   "kind": "enumerator",
   "value": "12",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_KEY_END",
   "kind": "enumerator",
   "value": "13",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_KEY_F2",
   "kind": "enumerator",
   "value": "14",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_KEY_F3",
   "kind": "enumerator",
   "value": "15",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_KEY_F10",
   "kind": "enumerator",
   "value": "16",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_MOD_SHIFT",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_MOD_CTRL",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_MOD_ALT",
   "kind": "enumerator",
   "value": "1u << 2",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_ROLE_BUTTON",
   "kind": "enumerator",
   "value": "1",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_ROLE_TAB",
   "kind": "enumerator",
   "value": "2",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_ROLE_LIST_ITEM",
   "kind": "enumerator",
   "value": "3",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_ROLE_OPTION",
   "kind": "enumerator",
   "value": "4",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_ROLE_SLIDER",
   "kind": "enumerator",
   "value": "5",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_ROLE_SPIN",
   "kind": "enumerator",
   "value": "6",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_ROLE_SEARCH",
   "kind": "enumerator",
   "value": "7",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_CTRL_FOCUSED",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_CTRL_SELECTED",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_CTRL_DISABLED",
   "kind": "enumerator",
   "value": "1u << 2",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_CTRL_IN_DIALOG",
   "kind": "enumerator",
   "value": "1u << 3",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_TEXTURE_ATLAS",
   "kind": "enumerator",
   "value": "1",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_EDITOR_TEXTURE_THUMBS",
   "kind": "enumerator",
   "value": "2",
   "header": "sona_editor.h"
  },
  {
   "name": "SONA_NPC_NO_EMOTE",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona_npc.h"
  },
  {
   "name": "SONA_NPC_NO_LOOK",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona_npc.h"
  },
  {
   "name": "SONA_NPC_IDLE",
   "kind": "enumerator",
   "value": "0",
   "header": "sona_npc.h"
  },
  {
   "name": "SONA_NPC_SPEAKING",
   "kind": "enumerator",
   "value": "1",
   "header": "sona_npc.h"
  },
  {
   "name": "SONA_NPC_EMOTING",
   "kind": "enumerator",
   "value": "2",
   "header": "sona_npc.h"
  },
  {
   "name": "SONA_TRACK_BLENDSHAPES",
   "kind": "define",
   "value": "52",
   "header": "sona_track.h",
   "comment": "The blendshapes in ARKit's order (ARFaceAnchor.BlendShapeLocation, as Live Link Face streams them). Left and right are the subject's own."
  },
  {
   "name": "SONA_BS_EYE_BLINK_LEFT",
   "kind": "enumerator",
   "value": "0",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_EYE_LOOK_DOWN_LEFT",
   "kind": "enumerator",
   "value": "1",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_EYE_LOOK_IN_LEFT",
   "kind": "enumerator",
   "value": "2",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_EYE_LOOK_OUT_LEFT",
   "kind": "enumerator",
   "value": "3",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_EYE_LOOK_UP_LEFT",
   "kind": "enumerator",
   "value": "4",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_EYE_SQUINT_LEFT",
   "kind": "enumerator",
   "value": "5",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_EYE_WIDE_LEFT",
   "kind": "enumerator",
   "value": "6",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_EYE_BLINK_RIGHT",
   "kind": "enumerator",
   "value": "7",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_EYE_LOOK_DOWN_RIGHT",
   "kind": "enumerator",
   "value": "8",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_EYE_LOOK_IN_RIGHT",
   "kind": "enumerator",
   "value": "9",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_EYE_LOOK_OUT_RIGHT",
   "kind": "enumerator",
   "value": "10",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_EYE_LOOK_UP_RIGHT",
   "kind": "enumerator",
   "value": "11",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_EYE_SQUINT_RIGHT",
   "kind": "enumerator",
   "value": "12",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_EYE_WIDE_RIGHT",
   "kind": "enumerator",
   "value": "13",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_JAW_FORWARD",
   "kind": "enumerator",
   "value": "14",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_JAW_LEFT",
   "kind": "enumerator",
   "value": "15",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_JAW_RIGHT",
   "kind": "enumerator",
   "value": "16",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_JAW_OPEN",
   "kind": "enumerator",
   "value": "17",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_MOUTH_CLOSE",
   "kind": "enumerator",
   "value": "18",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_MOUTH_FUNNEL",
   "kind": "enumerator",
   "value": "19",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_MOUTH_PUCKER",
   "kind": "enumerator",
   "value": "20",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_MOUTH_LEFT",
   "kind": "enumerator",
   "value": "21",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_MOUTH_RIGHT",
   "kind": "enumerator",
   "value": "22",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_MOUTH_SMILE_LEFT",
   "kind": "enumerator",
   "value": "23",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_MOUTH_SMILE_RIGHT",
   "kind": "enumerator",
   "value": "24",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_MOUTH_FROWN_LEFT",
   "kind": "enumerator",
   "value": "25",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_MOUTH_FROWN_RIGHT",
   "kind": "enumerator",
   "value": "26",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_MOUTH_DIMPLE_LEFT",
   "kind": "enumerator",
   "value": "27",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_MOUTH_DIMPLE_RIGHT",
   "kind": "enumerator",
   "value": "28",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_MOUTH_STRETCH_LEFT",
   "kind": "enumerator",
   "value": "29",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_MOUTH_STRETCH_RIGHT",
   "kind": "enumerator",
   "value": "30",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_MOUTH_ROLL_LOWER",
   "kind": "enumerator",
   "value": "31",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_MOUTH_ROLL_UPPER",
   "kind": "enumerator",
   "value": "32",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_MOUTH_SHRUG_LOWER",
   "kind": "enumerator",
   "value": "33",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_MOUTH_SHRUG_UPPER",
   "kind": "enumerator",
   "value": "34",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_MOUTH_PRESS_LEFT",
   "kind": "enumerator",
   "value": "35",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_MOUTH_PRESS_RIGHT",
   "kind": "enumerator",
   "value": "36",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_MOUTH_LOWER_DOWN_LEFT",
   "kind": "enumerator",
   "value": "37",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_MOUTH_LOWER_DOWN_RIGHT",
   "kind": "enumerator",
   "value": "38",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_MOUTH_UPPER_UP_LEFT",
   "kind": "enumerator",
   "value": "39",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_MOUTH_UPPER_UP_RIGHT",
   "kind": "enumerator",
   "value": "40",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_BROW_DOWN_LEFT",
   "kind": "enumerator",
   "value": "41",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_BROW_DOWN_RIGHT",
   "kind": "enumerator",
   "value": "42",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_BROW_INNER_UP",
   "kind": "enumerator",
   "value": "43",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_BROW_OUTER_UP_LEFT",
   "kind": "enumerator",
   "value": "44",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_BROW_OUTER_UP_RIGHT",
   "kind": "enumerator",
   "value": "45",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_CHEEK_PUFF",
   "kind": "enumerator",
   "value": "46",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_CHEEK_SQUINT_LEFT",
   "kind": "enumerator",
   "value": "47",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_CHEEK_SQUINT_RIGHT",
   "kind": "enumerator",
   "value": "48",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_NOSE_SNEER_LEFT",
   "kind": "enumerator",
   "value": "49",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_NOSE_SNEER_RIGHT",
   "kind": "enumerator",
   "value": "50",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_BS_TONGUE_OUT",
   "kind": "enumerator",
   "value": "51",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_TRACK_LAYOUT_ARKIT",
   "kind": "enumerator",
   "value": "0",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_TRACK_LAYOUT_MEDIAPIPE",
   "kind": "enumerator",
   "value": "1",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_TRACK_MIRROR",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_TRACK_NO_HEAD",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_TRACK_NO_FACE",
   "kind": "enumerator",
   "value": "1u << 2",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_TRACK_NO_GAZE",
   "kind": "enumerator",
   "value": "1u << 3",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_TRACK_FOUND",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_TRACK_HAS_HEAD",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_TRACK_MOOD_NEUTRAL",
   "kind": "enumerator",
   "value": "0",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_TRACK_MOOD_SAD",
   "kind": "enumerator",
   "value": "1",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_TRACK_MOOD_ANGRY",
   "kind": "enumerator",
   "value": "2",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_TRACK_MOOD_CONFUSED",
   "kind": "enumerator",
   "value": "3",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_TRACK_MOOD_LAUGHING",
   "kind": "enumerator",
   "value": "4",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_TRACK_MOOD_SHOCKED",
   "kind": "enumerator",
   "value": "5",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_TRACK_MOOD_HAPPY",
   "kind": "enumerator",
   "value": "6",
   "header": "sona_track.h"
  },
  {
   "name": "SONA_XR_FIRST_PERSON",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona_xr.h"
  },
  {
   "name": "SONA_XR_NO_LEGS",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona_xr.h"
  },
  {
   "name": "SONA_XR_OPENXR_SPACE",
   "kind": "enumerator",
   "value": "1u << 2",
   "header": "sona_xr.h"
  },
  {
   "name": "SONA_XR_HAS_HEAD",
   "kind": "enumerator",
   "value": "1u << 0",
   "header": "sona_xr.h"
  },
  {
   "name": "SONA_XR_HAS_LEFT",
   "kind": "enumerator",
   "value": "1u << 1",
   "header": "sona_xr.h"
  },
  {
   "name": "SONA_XR_HAS_RIGHT",
   "kind": "enumerator",
   "value": "1u << 2",
   "header": "sona_xr.h"
  }
 ]
}
