cdproto: github.com/chromedp/cdproto/webaudio Index | Files

package webaudio

import "github.com/chromedp/cdproto/webaudio"

Package webaudio provides the Chrome DevTools Protocol commands, types, and events for the WebAudio domain.

This domain allows inspection of Web Audio API. https://webaudio.github.io/web-audio-api/.

Generated by the cdproto-gen command.

Index

Package Files

easyjson.go events.go types.go webaudio.go

Constants

const (
    CommandEnable          = "WebAudio.enable"
    CommandDisable         = "WebAudio.disable"
    CommandGetRealtimeData = "WebAudio.getRealtimeData"
)

Command names.

type AudioListener Uses

type AudioListener struct {
    ListenerID GraphObjectID `json:"listenerId"`
    ContextID  GraphObjectID `json:"contextId"`
}

AudioListener protocol object for AudioListener.

See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#type-AudioListener

func (AudioListener) MarshalEasyJSON Uses

func (v AudioListener) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (AudioListener) MarshalJSON Uses

func (v AudioListener) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*AudioListener) UnmarshalEasyJSON Uses

func (v *AudioListener) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*AudioListener) UnmarshalJSON Uses

func (v *AudioListener) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type AudioNode Uses

type AudioNode struct {
    NodeID                GraphObjectID         `json:"nodeId"`
    ContextID             GraphObjectID         `json:"contextId"`
    NodeType              cdp.NodeType          `json:"nodeType"`
    NumberOfInputs        float64               `json:"numberOfInputs"`
    NumberOfOutputs       float64               `json:"numberOfOutputs"`
    ChannelCount          float64               `json:"channelCount"`
    ChannelCountMode      ChannelCountMode      `json:"channelCountMode"`
    ChannelInterpretation ChannelInterpretation `json:"channelInterpretation"`
}

AudioNode protocol object for AudioNode.

See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#type-AudioNode

func (AudioNode) MarshalEasyJSON Uses

func (v AudioNode) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (AudioNode) MarshalJSON Uses

func (v AudioNode) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*AudioNode) UnmarshalEasyJSON Uses

func (v *AudioNode) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*AudioNode) UnmarshalJSON Uses

func (v *AudioNode) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type AudioParam Uses

type AudioParam struct {
    ParamID      GraphObjectID  `json:"paramId"`
    NodeID       GraphObjectID  `json:"nodeId"`
    ContextID    GraphObjectID  `json:"contextId"`
    ParamType    ParamType      `json:"paramType"`
    Rate         AutomationRate `json:"rate"`
    DefaultValue float64        `json:"defaultValue"`
    MinValue     float64        `json:"minValue"`
    MaxValue     float64        `json:"maxValue"`
}

AudioParam protocol object for AudioParam.

See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#type-AudioParam

func (AudioParam) MarshalEasyJSON Uses

func (v AudioParam) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (AudioParam) MarshalJSON Uses

func (v AudioParam) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*AudioParam) UnmarshalEasyJSON Uses

func (v *AudioParam) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*AudioParam) UnmarshalJSON Uses

func (v *AudioParam) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type AutomationRate Uses

type AutomationRate string

AutomationRate enum of AudioParam::AutomationRate from the spec.

See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#type-AutomationRate

const (
    AutomationRateARate AutomationRate = "a-rate"
    AutomationRateKRate AutomationRate = "k-rate"
)

AutomationRate values.

func (AutomationRate) MarshalEasyJSON Uses

func (t AutomationRate) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (AutomationRate) MarshalJSON Uses

func (t AutomationRate) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (AutomationRate) String Uses

func (t AutomationRate) String() string

String returns the AutomationRate as string value.

func (*AutomationRate) UnmarshalEasyJSON Uses

func (t *AutomationRate) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*AutomationRate) UnmarshalJSON Uses

func (t *AutomationRate) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type BaseAudioContext Uses

type BaseAudioContext struct {
    ContextID             GraphObjectID        `json:"contextId"`
    ContextType           ContextType          `json:"contextType"`
    ContextState          ContextState         `json:"contextState"`
    RealtimeData          *ContextRealtimeData `json:"realtimeData,omitempty"`
    CallbackBufferSize    float64              `json:"callbackBufferSize"`    // Platform-dependent callback buffer size.
    MaxOutputChannelCount float64              `json:"maxOutputChannelCount"` // Number of output channels supported by audio hardware in use.
    SampleRate            float64              `json:"sampleRate"`            // Context sample rate.
}

BaseAudioContext protocol object for BaseAudioContext.

See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#type-BaseAudioContext

func (BaseAudioContext) MarshalEasyJSON Uses

func (v BaseAudioContext) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (BaseAudioContext) MarshalJSON Uses

func (v BaseAudioContext) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*BaseAudioContext) UnmarshalEasyJSON Uses

func (v *BaseAudioContext) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*BaseAudioContext) UnmarshalJSON Uses

func (v *BaseAudioContext) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ChannelCountMode Uses

type ChannelCountMode string

ChannelCountMode enum of AudioNode::ChannelCountMode from the spec.

See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#type-ChannelCountMode

const (
    ChannelCountModeClampedMax ChannelCountMode = "clamped-max"
    ChannelCountModeExplicit   ChannelCountMode = "explicit"
    ChannelCountModeMax        ChannelCountMode = "max"
)

ChannelCountMode values.

func (ChannelCountMode) MarshalEasyJSON Uses

func (t ChannelCountMode) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (ChannelCountMode) MarshalJSON Uses

func (t ChannelCountMode) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (ChannelCountMode) String Uses

func (t ChannelCountMode) String() string

String returns the ChannelCountMode as string value.

func (*ChannelCountMode) UnmarshalEasyJSON Uses

func (t *ChannelCountMode) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*ChannelCountMode) UnmarshalJSON Uses

func (t *ChannelCountMode) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type ChannelInterpretation Uses

type ChannelInterpretation string

ChannelInterpretation enum of AudioNode::ChannelInterpretation from the spec.

See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#type-ChannelInterpretation

const (
    ChannelInterpretationDiscrete ChannelInterpretation = "discrete"
    ChannelInterpretationSpeakers ChannelInterpretation = "speakers"
)

ChannelInterpretation values.

func (ChannelInterpretation) MarshalEasyJSON Uses

func (t ChannelInterpretation) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (ChannelInterpretation) MarshalJSON Uses

func (t ChannelInterpretation) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (ChannelInterpretation) String Uses

func (t ChannelInterpretation) String() string

String returns the ChannelInterpretation as string value.

func (*ChannelInterpretation) UnmarshalEasyJSON Uses

func (t *ChannelInterpretation) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*ChannelInterpretation) UnmarshalJSON Uses

func (t *ChannelInterpretation) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type ContextRealtimeData Uses

type ContextRealtimeData struct {
    CurrentTime              float64 `json:"currentTime"`              // The current context time in second in BaseAudioContext.
    RenderCapacity           float64 `json:"renderCapacity"`           // The time spent on rendering graph divided by render quantum duration, and multiplied by 100. 100 means the audio renderer reached the full capacity and glitch may occur.
    CallbackIntervalMean     float64 `json:"callbackIntervalMean"`     // A running mean of callback interval.
    CallbackIntervalVariance float64 `json:"callbackIntervalVariance"` // A running variance of callback interval.
}

ContextRealtimeData fields in AudioContext that change in real-time.

See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#type-ContextRealtimeData

func (ContextRealtimeData) MarshalEasyJSON Uses

func (v ContextRealtimeData) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ContextRealtimeData) MarshalJSON Uses

func (v ContextRealtimeData) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ContextRealtimeData) UnmarshalEasyJSON Uses

func (v *ContextRealtimeData) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ContextRealtimeData) UnmarshalJSON Uses

func (v *ContextRealtimeData) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ContextState Uses

type ContextState string

ContextState enum of AudioContextState from the spec.

See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#type-ContextState

const (
    ContextStateSuspended ContextState = "suspended"
    ContextStateRunning   ContextState = "running"
    ContextStateClosed    ContextState = "closed"
)

ContextState values.

func (ContextState) MarshalEasyJSON Uses

func (t ContextState) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (ContextState) MarshalJSON Uses

func (t ContextState) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (ContextState) String Uses

func (t ContextState) String() string

String returns the ContextState as string value.

func (*ContextState) UnmarshalEasyJSON Uses

func (t *ContextState) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*ContextState) UnmarshalJSON Uses

func (t *ContextState) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type ContextType Uses

type ContextType string

ContextType enum of BaseAudioContext types.

See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#type-ContextType

const (
    ContextTypeRealtime ContextType = "realtime"
    ContextTypeOffline  ContextType = "offline"
)

ContextType values.

func (ContextType) MarshalEasyJSON Uses

func (t ContextType) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (ContextType) MarshalJSON Uses

func (t ContextType) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (ContextType) String Uses

func (t ContextType) String() string

String returns the ContextType as string value.

func (*ContextType) UnmarshalEasyJSON Uses

func (t *ContextType) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*ContextType) UnmarshalJSON Uses

func (t *ContextType) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type DisableParams Uses

type DisableParams struct{}

DisableParams disables the WebAudio domain.

func Disable Uses

func Disable() *DisableParams

Disable disables the WebAudio domain.

See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#method-disable

func (*DisableParams) Do Uses

func (p *DisableParams) Do(ctx context.Context) (err error)

Do executes WebAudio.disable against the provided context.

func (DisableParams) MarshalEasyJSON Uses

func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DisableParams) MarshalJSON Uses

func (v DisableParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*DisableParams) UnmarshalEasyJSON Uses

func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DisableParams) UnmarshalJSON Uses

func (v *DisableParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EnableParams Uses

type EnableParams struct{}

EnableParams enables the WebAudio domain and starts sending context lifetime events.

func Enable Uses

func Enable() *EnableParams

Enable enables the WebAudio domain and starts sending context lifetime events.

See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#method-enable

func (*EnableParams) Do Uses

func (p *EnableParams) Do(ctx context.Context) (err error)

Do executes WebAudio.enable against the provided context.

func (EnableParams) MarshalEasyJSON Uses

func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EnableParams) MarshalJSON Uses

func (v EnableParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EnableParams) UnmarshalEasyJSON Uses

func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EnableParams) UnmarshalJSON Uses

func (v *EnableParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventAudioListenerCreated Uses

type EventAudioListenerCreated struct {
    Listener *AudioListener `json:"listener"`
}

EventAudioListenerCreated notifies that the construction of an AudioListener has finished.

See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#event-audioListenerCreated

func (EventAudioListenerCreated) MarshalEasyJSON Uses

func (v EventAudioListenerCreated) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventAudioListenerCreated) MarshalJSON Uses

func (v EventAudioListenerCreated) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventAudioListenerCreated) UnmarshalEasyJSON Uses

func (v *EventAudioListenerCreated) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventAudioListenerCreated) UnmarshalJSON Uses

func (v *EventAudioListenerCreated) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventAudioListenerWillBeDestroyed Uses

type EventAudioListenerWillBeDestroyed struct {
    ContextID  GraphObjectID `json:"contextId"`
    ListenerID GraphObjectID `json:"listenerId"`
}

EventAudioListenerWillBeDestroyed notifies that a new AudioListener has been created.

See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#event-audioListenerWillBeDestroyed

func (EventAudioListenerWillBeDestroyed) MarshalEasyJSON Uses

func (v EventAudioListenerWillBeDestroyed) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventAudioListenerWillBeDestroyed) MarshalJSON Uses

func (v EventAudioListenerWillBeDestroyed) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventAudioListenerWillBeDestroyed) UnmarshalEasyJSON Uses

func (v *EventAudioListenerWillBeDestroyed) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventAudioListenerWillBeDestroyed) UnmarshalJSON Uses

func (v *EventAudioListenerWillBeDestroyed) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventAudioNodeCreated Uses

type EventAudioNodeCreated struct {
    Node *AudioNode `json:"node"`
}

EventAudioNodeCreated notifies that a new AudioNode has been created.

See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#event-audioNodeCreated

func (EventAudioNodeCreated) MarshalEasyJSON Uses

func (v EventAudioNodeCreated) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventAudioNodeCreated) MarshalJSON Uses

func (v EventAudioNodeCreated) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventAudioNodeCreated) UnmarshalEasyJSON Uses

func (v *EventAudioNodeCreated) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventAudioNodeCreated) UnmarshalJSON Uses

func (v *EventAudioNodeCreated) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventAudioNodeWillBeDestroyed Uses

type EventAudioNodeWillBeDestroyed struct {
    ContextID GraphObjectID `json:"contextId"`
    NodeID    GraphObjectID `json:"nodeId"`
}

EventAudioNodeWillBeDestroyed notifies that an existing AudioNode has been destroyed.

See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#event-audioNodeWillBeDestroyed

func (EventAudioNodeWillBeDestroyed) MarshalEasyJSON Uses

func (v EventAudioNodeWillBeDestroyed) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventAudioNodeWillBeDestroyed) MarshalJSON Uses

func (v EventAudioNodeWillBeDestroyed) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventAudioNodeWillBeDestroyed) UnmarshalEasyJSON Uses

func (v *EventAudioNodeWillBeDestroyed) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventAudioNodeWillBeDestroyed) UnmarshalJSON Uses

func (v *EventAudioNodeWillBeDestroyed) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventAudioParamCreated Uses

type EventAudioParamCreated struct {
    Param *AudioParam `json:"param"`
}

EventAudioParamCreated notifies that a new AudioParam has been created.

See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#event-audioParamCreated

func (EventAudioParamCreated) MarshalEasyJSON Uses

func (v EventAudioParamCreated) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventAudioParamCreated) MarshalJSON Uses

func (v EventAudioParamCreated) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventAudioParamCreated) UnmarshalEasyJSON Uses

func (v *EventAudioParamCreated) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventAudioParamCreated) UnmarshalJSON Uses

func (v *EventAudioParamCreated) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventAudioParamWillBeDestroyed Uses

type EventAudioParamWillBeDestroyed struct {
    ContextID GraphObjectID `json:"contextId"`
    NodeID    GraphObjectID `json:"nodeId"`
    ParamID   GraphObjectID `json:"paramId"`
}

EventAudioParamWillBeDestroyed notifies that an existing AudioParam has been destroyed.

See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#event-audioParamWillBeDestroyed

func (EventAudioParamWillBeDestroyed) MarshalEasyJSON Uses

func (v EventAudioParamWillBeDestroyed) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventAudioParamWillBeDestroyed) MarshalJSON Uses

func (v EventAudioParamWillBeDestroyed) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventAudioParamWillBeDestroyed) UnmarshalEasyJSON Uses

func (v *EventAudioParamWillBeDestroyed) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventAudioParamWillBeDestroyed) UnmarshalJSON Uses

func (v *EventAudioParamWillBeDestroyed) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventContextChanged Uses

type EventContextChanged struct {
    Context *BaseAudioContext `json:"context"`
}

EventContextChanged notifies that existing BaseAudioContext has changed some properties (id stays the same)..

See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#event-contextChanged

func (EventContextChanged) MarshalEasyJSON Uses

func (v EventContextChanged) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventContextChanged) MarshalJSON Uses

func (v EventContextChanged) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventContextChanged) UnmarshalEasyJSON Uses

func (v *EventContextChanged) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventContextChanged) UnmarshalJSON Uses

func (v *EventContextChanged) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventContextCreated Uses

type EventContextCreated struct {
    Context *BaseAudioContext `json:"context"`
}

EventContextCreated notifies that a new BaseAudioContext has been created.

See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#event-contextCreated

func (EventContextCreated) MarshalEasyJSON Uses

func (v EventContextCreated) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventContextCreated) MarshalJSON Uses

func (v EventContextCreated) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventContextCreated) UnmarshalEasyJSON Uses

func (v *EventContextCreated) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventContextCreated) UnmarshalJSON Uses

func (v *EventContextCreated) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventContextWillBeDestroyed Uses

type EventContextWillBeDestroyed struct {
    ContextID GraphObjectID `json:"contextId"`
}

EventContextWillBeDestroyed notifies that an existing BaseAudioContext will be destroyed.

See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#event-contextWillBeDestroyed

func (EventContextWillBeDestroyed) MarshalEasyJSON Uses

func (v EventContextWillBeDestroyed) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventContextWillBeDestroyed) MarshalJSON Uses

func (v EventContextWillBeDestroyed) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventContextWillBeDestroyed) UnmarshalEasyJSON Uses

func (v *EventContextWillBeDestroyed) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventContextWillBeDestroyed) UnmarshalJSON Uses

func (v *EventContextWillBeDestroyed) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventNodeParamConnected Uses

type EventNodeParamConnected struct {
    ContextID         GraphObjectID `json:"contextId"`
    SourceID          GraphObjectID `json:"sourceId"`
    DestinationID     GraphObjectID `json:"destinationId"`
    SourceOutputIndex float64       `json:"sourceOutputIndex,omitempty"`
}

EventNodeParamConnected notifies that an AudioNode is connected to an AudioParam.

See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#event-nodeParamConnected

func (EventNodeParamConnected) MarshalEasyJSON Uses

func (v EventNodeParamConnected) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventNodeParamConnected) MarshalJSON Uses

func (v EventNodeParamConnected) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventNodeParamConnected) UnmarshalEasyJSON Uses

func (v *EventNodeParamConnected) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventNodeParamConnected) UnmarshalJSON Uses

func (v *EventNodeParamConnected) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventNodeParamDisconnected Uses

type EventNodeParamDisconnected struct {
    ContextID         GraphObjectID `json:"contextId"`
    SourceID          GraphObjectID `json:"sourceId"`
    DestinationID     GraphObjectID `json:"destinationId"`
    SourceOutputIndex float64       `json:"sourceOutputIndex,omitempty"`
}

EventNodeParamDisconnected notifies that an AudioNode is disconnected to an AudioParam.

See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#event-nodeParamDisconnected

func (EventNodeParamDisconnected) MarshalEasyJSON Uses

func (v EventNodeParamDisconnected) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventNodeParamDisconnected) MarshalJSON Uses

func (v EventNodeParamDisconnected) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventNodeParamDisconnected) UnmarshalEasyJSON Uses

func (v *EventNodeParamDisconnected) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventNodeParamDisconnected) UnmarshalJSON Uses

func (v *EventNodeParamDisconnected) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventNodesConnected Uses

type EventNodesConnected struct {
    ContextID             GraphObjectID `json:"contextId"`
    SourceID              GraphObjectID `json:"sourceId"`
    DestinationID         GraphObjectID `json:"destinationId"`
    SourceOutputIndex     float64       `json:"sourceOutputIndex,omitempty"`
    DestinationInputIndex float64       `json:"destinationInputIndex,omitempty"`
}

EventNodesConnected notifies that two AudioNodes are connected.

See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#event-nodesConnected

func (EventNodesConnected) MarshalEasyJSON Uses

func (v EventNodesConnected) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventNodesConnected) MarshalJSON Uses

func (v EventNodesConnected) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventNodesConnected) UnmarshalEasyJSON Uses

func (v *EventNodesConnected) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventNodesConnected) UnmarshalJSON Uses

func (v *EventNodesConnected) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventNodesDisconnected Uses

type EventNodesDisconnected struct {
    ContextID             GraphObjectID `json:"contextId"`
    SourceID              GraphObjectID `json:"sourceId"`
    DestinationID         GraphObjectID `json:"destinationId"`
    SourceOutputIndex     float64       `json:"sourceOutputIndex,omitempty"`
    DestinationInputIndex float64       `json:"destinationInputIndex,omitempty"`
}

EventNodesDisconnected notifies that AudioNodes are disconnected. The destination can be null, and it means all the outgoing connections from the source are disconnected.

See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#event-nodesDisconnected

func (EventNodesDisconnected) MarshalEasyJSON Uses

func (v EventNodesDisconnected) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventNodesDisconnected) MarshalJSON Uses

func (v EventNodesDisconnected) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventNodesDisconnected) UnmarshalEasyJSON Uses

func (v *EventNodesDisconnected) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventNodesDisconnected) UnmarshalJSON Uses

func (v *EventNodesDisconnected) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetRealtimeDataParams Uses

type GetRealtimeDataParams struct {
    ContextID GraphObjectID `json:"contextId"`
}

GetRealtimeDataParams fetch the realtime data from the registered contexts.

func GetRealtimeData Uses

func GetRealtimeData(contextID GraphObjectID) *GetRealtimeDataParams

GetRealtimeData fetch the realtime data from the registered contexts.

See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#method-getRealtimeData

parameters:

contextID

func (*GetRealtimeDataParams) Do Uses

func (p *GetRealtimeDataParams) Do(ctx context.Context) (realtimeData *ContextRealtimeData, err error)

Do executes WebAudio.getRealtimeData against the provided context.

returns:

realtimeData

func (GetRealtimeDataParams) MarshalEasyJSON Uses

func (v GetRealtimeDataParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetRealtimeDataParams) MarshalJSON Uses

func (v GetRealtimeDataParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetRealtimeDataParams) UnmarshalEasyJSON Uses

func (v *GetRealtimeDataParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetRealtimeDataParams) UnmarshalJSON Uses

func (v *GetRealtimeDataParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetRealtimeDataReturns Uses

type GetRealtimeDataReturns struct {
    RealtimeData *ContextRealtimeData `json:"realtimeData,omitempty"`
}

GetRealtimeDataReturns return values.

func (GetRealtimeDataReturns) MarshalEasyJSON Uses

func (v GetRealtimeDataReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetRealtimeDataReturns) MarshalJSON Uses

func (v GetRealtimeDataReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetRealtimeDataReturns) UnmarshalEasyJSON Uses

func (v *GetRealtimeDataReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetRealtimeDataReturns) UnmarshalJSON Uses

func (v *GetRealtimeDataReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GraphObjectID Uses

type GraphObjectID string

GraphObjectID an unique ID for a graph object (AudioContext, AudioNode, AudioParam) in Web Audio API.

See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#type-GraphObjectId

func (GraphObjectID) String Uses

func (t GraphObjectID) String() string

String returns the GraphObjectID as string value.

type NodeType Uses

type NodeType string

NodeType enum of AudioNode types.

See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#type-NodeType

func (NodeType) String Uses

func (t NodeType) String() string

String returns the NodeType as string value.

type ParamType Uses

type ParamType string

ParamType enum of AudioParam types.

See: https://chromedevtools.github.io/devtools-protocol/tot/WebAudio#type-ParamType

func (ParamType) String Uses

func (t ParamType) String() string

String returns the ParamType as string value.

Package webaudio imports 7 packages (graph) and is imported by 2 packages. Updated 2021-01-08. Refresh now. Tools for package owners.