Skip to content

Kaplay.AudioPlay

Types

t

type t = {mutable paused: bool}
Fields
paused bool

Values

play

Start playing audio. Use audio.paused = true to pause it.

let play: (t, ~time: float=?) => unit
Parameters
t
option < float >
Return type
unit

stop

Stop playing audio. Will start playing from the beginning when play is called again.

let stop: t => unit
Parameters
t
Return type
unit