MiniQuake

src/miniquake/audio.ml

Package
miniquake.audio
Reachable
Yes

Imports

Declarations

capacity

function capacity(state)

Return the backend queue capacity.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.audio` state used by `capacity`.

View source

close

function close(state)

Implements the `close` operation for `miniquake.audio` (close).

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.audio` state used by `close`.

View source

completed

function completed(state)

Return completed for the active module state.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.audio` state used by `completed`.

View source

create

function create()

Implements the `create` operation for `miniquake.audio` (create).

View source

headerState

function headerState(state, index)

Return header state derived from the active module state.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.audio` state used by `headerState`.
indexdynamic—Zero-based index of the requested entry.

View source

open

function open(state, rate, channels, width)

Implements the `open` operation for `miniquake.audio` (open).

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.audio` state used by `open`.
ratedynamic—Sample or update rate used by the operation.
channelsdynamic—Number of interleaved audio channels.
widthdynamic—Requested width in pixels or data units.

View source

position

function position(state, sampleMask)

Return the current backend playback position.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.audio` state used by `position`.
sampleMaskdynamic—The sample mask input consumed by `position`.

View source

queued

function queued(state)

Add state for queued.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.audio` state used by `queued`.

View source

reset

function reset(state)

Implements the `reset` operation for `miniquake.audio` (reset).

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.audio` state used by `reset`.

View source

submit

function submit(state, data)

Submit state for submit.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.audio` state used by `submit`.
datadynamic—Input data consumed by the operation.

View source

submitted

function submitted(state)

Return the number of buffers submitted to the backend.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.audio` state used by `submitted`.

View source

underruns

function underruns(state)

Return underruns for the active module state.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.audio` state used by `underruns`.

View source