package brr

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Audio.ContextSource

Audio contexts.

Base audio contexts

Sourcemodule State : sig ... end

The context state enumeration.

Sourcemodule Base : sig ... end

Base audio contexts.

Audio contexts

Sourcemodule Latency_category : sig ... end

Audio latency category enumeration.

Sourcetype opts

The type for AudioContextOptions.

Sourceval opts : ?latency_hint:[ `Category of Latency_category.t | `Secs of float ] -> ?sample_rate_hz:float -> unit -> opts

opts () are audio context options with the given properties.

Sourcetype t

The type for AudioContext objects.

Sourceval create : ?opts:opts -> unit -> t

create ~opts () creates an audio context.

Sourceval as_target : t -> Brr.Ev.target

as_target c is c as an event target.

Sourceval as_base : t -> Base.t

as_base c is c as a base audio context.

Sourceval base_latency : t -> float

base_latency c is the base latency of c.

Sourceval output_latency : t -> float

output_latency c is the output latency of c.

Sourceval get_output_timestamp : t -> Timestamp.t

get_output_timestamp c is the output timestamp of c.

Sourceval resume : t -> unit Fut.or_error

resume c resumes progression of time in c.

Sourceval suspend : t -> unit Fut.or_error

suspend c suspend progression of time in c.

Sourceval close : t -> unit Fut.or_error

close c closes the audio context c.

Offline audio contexts

Sourcemodule Offline : sig ... end

Offline audio contexts.