CDPotion.Domain.WebAudio (cdpotion v0.1.4)
Summary
Types
Protocol object for AudioListener
Protocol object for AudioNode
Protocol object for AudioParam
Enum of AudioParam::AutomationRate from the spec
Protocol object for BaseAudioContext
Enum of AudioNode::ChannelCountMode from the spec
Enum of AudioNode::ChannelInterpretation from the spec
Fields in AudioContext that change in real-time.
Enum of AudioContextState from the spec
Enum of BaseAudioContext types
An unique ID for a graph object (AudioContext, AudioNode, AudioParam) in Web Audio API
Enum of AudioNode types
Enum of AudioParam types
Functions
Disables the WebAudio domain.
Enables the WebAudio domain and starts sending context lifetime events.
Fetch the realtime data from the registered contexts.
Types
audio_listener()
@type audio_listener() :: %{ contextId: graph_object_id(), listenerId: graph_object_id() }
Protocol object for AudioListener
audio_node()
@type audio_node() :: %{ channelCount: number(), channelCountMode: channel_count_mode(), channelInterpretation: channel_interpretation(), contextId: graph_object_id(), nodeId: graph_object_id(), nodeType: node_type(), numberOfInputs: number(), numberOfOutputs: number() }
Protocol object for AudioNode
audio_param()
@type audio_param() :: %{ contextId: graph_object_id(), defaultValue: number(), maxValue: number(), minValue: number(), nodeId: graph_object_id(), paramId: graph_object_id(), paramType: param_type(), rate: automation_rate() }
Protocol object for AudioParam
automation_rate()
@type automation_rate() :: :"a-rate" | :"k-rate"
Enum of AudioParam::AutomationRate from the spec
base_audio_context()
@type base_audio_context() :: %{ callbackBufferSize: number(), contextId: graph_object_id(), contextState: context_state(), contextType: context_type(), maxOutputChannelCount: number(), realtimeData: context_realtime_data() | nil, sampleRate: number() }
Protocol object for BaseAudioContext
channel_count_mode()
@type channel_count_mode() :: :"clamped-max" | :explicit | :max
Enum of AudioNode::ChannelCountMode from the spec
channel_interpretation()
@type channel_interpretation() :: :discrete | :speakers
Enum of AudioNode::ChannelInterpretation from the spec
context_realtime_data()
@type context_realtime_data() :: %{ callbackIntervalMean: number(), callbackIntervalVariance: number(), currentTime: number(), renderCapacity: number() }
Fields in AudioContext that change in real-time.
context_state()
@type context_state() :: :suspended | :running | :closed
Enum of AudioContextState from the spec
context_type()
@type context_type() :: :realtime | :offline
Enum of BaseAudioContext types
graph_object_id()
@type graph_object_id() :: String.t()
An unique ID for a graph object (AudioContext, AudioNode, AudioParam) in Web Audio API
node_type()
@type node_type() :: String.t()
Enum of AudioNode types
param_type()
@type param_type() :: String.t()
Enum of AudioParam types
Functions
disable()
Disables the WebAudio domain.
enable()
Enables the WebAudio domain and starts sending context lifetime events.
get_realtime_data(context_id)
@spec get_realtime_data(graph_object_id()) :: {String.t(), map()}
Fetch the realtime data from the registered contexts.
Parameters:
- (Required)
context_id
: description not provided :(