# Sprite · API · zvuk

zvuk v1.14.1 · MIT · https://zvuk.schmooky.dev/api/Sprite/

One buffer, many named regions, one fetch.

Use for cascades, UI variants, low-latency one-shots — anything where the
cost of N separate decodes outweighs the cost of N region offsets into a
single buffer. Built on top of an underlying Sound (the buffer); regions
are cooperative — overlapping regions just produce overlapping voices.

[← API](/api/)

Class

# Sprite

One buffer, many named regions, one fetch. Use for cascades, UI variants, low-latency one-shots — anything where the cost of N separate decodes outweighs the cost of N region offsets into a single buffer. Built on top of an underlying Sound (the buffer); regions are cooperative — overlapping regions just produce overlapping voices.

## Members

-   constructor
-   name
-   has
-   list
-   play
-   region
