# capacity
function capacity(state)Return the backend queue capacity.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.audio` state used by `capacity`. |
src/miniquake/audio.mlminiquake/native.ml as native → src/miniquake/native.mlminiquake/types.ml as t → src/miniquake/types.mlfunction capacity(state)Return the backend queue capacity.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.audio` state used by `capacity`. |
function close(state)Implements the `close` operation for `miniquake.audio` (close).
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.audio` state used by `close`. |
function completed(state)Return completed for the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.audio` state used by `completed`. |
function create()Implements the `create` operation for `miniquake.audio` (create).
function headerState(state, index)Return header state derived from the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.audio` state used by `headerState`. |
index | dynamic | — | Zero-based index of the requested entry. |
function open(state, rate, channels, width)Implements the `open` operation for `miniquake.audio` (open).
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.audio` state used by `open`. |
rate | dynamic | — | Sample or update rate used by the operation. |
channels | dynamic | — | Number of interleaved audio channels. |
width | dynamic | — | Requested width in pixels or data units. |
function position(state, sampleMask)Return the current backend playback position.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.audio` state used by `position`. |
sampleMask | dynamic | — | The sample mask input consumed by `position`. |
function queued(state)Add state for queued.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.audio` state used by `queued`. |
function reset(state)Implements the `reset` operation for `miniquake.audio` (reset).
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.audio` state used by `reset`. |
function submit(state, data)Submit state for submit.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.audio` state used by `submit`. |
data | dynamic | — | Input data consumed by the operation. |
function submitted(state)Return the number of buffers submitted to the backend.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.audio` state used by `submitted`. |
function underruns(state)Return underruns for the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.audio` state used by `underruns`. |