webaudio

package
v0.0.0-...-d1c7de7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 7 Imported by: 3

Documentation

Overview

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

Constants

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

Command names.

Variables

This section is empty.

Functions

This section is empty.

Types

type AudioListener

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

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (AudioListener) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*AudioListener) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*AudioListener) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type AudioNode

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

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (AudioNode) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*AudioNode) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*AudioNode) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type AudioParam

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

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (AudioParam) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*AudioParam) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*AudioParam) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type AutomationRate

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

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (AutomationRate) MarshalJSON

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

MarshalJSON satisfies json.Marshaler.

func (AutomationRate) String

func (t AutomationRate) String() string

String returns the AutomationRate as string value.

func (*AutomationRate) UnmarshalEasyJSON

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*AutomationRate) UnmarshalJSON

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

UnmarshalJSON satisfies json.Unmarshaler.

type BaseAudioContext

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

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (BaseAudioContext) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*BaseAudioContext) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*BaseAudioContext) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type ChannelCountMode

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

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (ChannelCountMode) MarshalJSON

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

MarshalJSON satisfies json.Marshaler.

func (ChannelCountMode) String

func (t ChannelCountMode) String() string

String returns the ChannelCountMode as string value.

func (*ChannelCountMode) UnmarshalEasyJSON

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*ChannelCountMode) UnmarshalJSON

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

UnmarshalJSON satisfies json.Unmarshaler.

type ChannelInterpretation

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

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (ChannelInterpretation) MarshalJSON

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

MarshalJSON satisfies json.Marshaler.

func (ChannelInterpretation) String

func (t ChannelInterpretation) String() string

String returns the ChannelInterpretation as string value.

func (*ChannelInterpretation) UnmarshalEasyJSON

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*ChannelInterpretation) UnmarshalJSON

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

UnmarshalJSON satisfies json.Unmarshaler.

type ContextRealtimeData

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

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (ContextRealtimeData) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*ContextRealtimeData) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ContextRealtimeData) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type ContextState

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"
	ContextStateInterrupted ContextState = "interrupted"
)

ContextState values.

func (ContextState) MarshalEasyJSON

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (ContextState) MarshalJSON

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

MarshalJSON satisfies json.Marshaler.

func (ContextState) String

func (t ContextState) String() string

String returns the ContextState as string value.

func (*ContextState) UnmarshalEasyJSON

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*ContextState) UnmarshalJSON

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

UnmarshalJSON satisfies json.Unmarshaler.

type ContextType

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

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (ContextType) MarshalJSON

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

MarshalJSON satisfies json.Marshaler.

func (ContextType) String

func (t ContextType) String() string

String returns the ContextType as string value.

func (*ContextType) UnmarshalEasyJSON

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*ContextType) UnmarshalJSON

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

UnmarshalJSON satisfies json.Unmarshaler.

type DisableParams

type DisableParams struct{}

DisableParams disables the WebAudio domain.

func Disable

func Disable() *DisableParams

Disable disables the WebAudio domain.

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

func (*DisableParams) Do

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

Do executes WebAudio.disable against the provided context.

func (DisableParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (DisableParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*DisableParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DisableParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type EnableParams

type EnableParams struct{}

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

func Enable

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

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

Do executes WebAudio.enable against the provided context.

func (EnableParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EnableParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*EnableParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EnableParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type EventAudioListenerCreated

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

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventAudioListenerCreated) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*EventAudioListenerCreated) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventAudioListenerCreated) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type EventAudioListenerWillBeDestroyed

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

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventAudioListenerWillBeDestroyed) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*EventAudioListenerWillBeDestroyed) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventAudioListenerWillBeDestroyed) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type EventAudioNodeCreated

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

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventAudioNodeCreated) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*EventAudioNodeCreated) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventAudioNodeCreated) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type EventAudioNodeWillBeDestroyed

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

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventAudioNodeWillBeDestroyed) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*EventAudioNodeWillBeDestroyed) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventAudioNodeWillBeDestroyed) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type EventAudioParamCreated

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

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventAudioParamCreated) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*EventAudioParamCreated) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventAudioParamCreated) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type EventAudioParamWillBeDestroyed

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

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventAudioParamWillBeDestroyed) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*EventAudioParamWillBeDestroyed) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventAudioParamWillBeDestroyed) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type EventContextChanged

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

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventContextChanged) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*EventContextChanged) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventContextChanged) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type EventContextCreated

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

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventContextCreated) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*EventContextCreated) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventContextCreated) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type EventContextWillBeDestroyed

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

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventContextWillBeDestroyed) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*EventContextWillBeDestroyed) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventContextWillBeDestroyed) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type EventNodeParamConnected

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

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventNodeParamConnected) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*EventNodeParamConnected) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventNodeParamConnected) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type EventNodeParamDisconnected

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

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventNodeParamDisconnected) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*EventNodeParamDisconnected) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventNodeParamDisconnected) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type EventNodesConnected

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

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventNodesConnected) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*EventNodesConnected) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventNodesConnected) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type EventNodesDisconnected

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

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventNodesDisconnected) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*EventNodesDisconnected) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventNodesDisconnected) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type GetRealtimeDataParams

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

GetRealtimeDataParams fetch the realtime data from the registered contexts.

func GetRealtimeData

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

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

Do executes WebAudio.getRealtimeData against the provided context.

returns:

realtimeData

func (GetRealtimeDataParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetRealtimeDataParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*GetRealtimeDataParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetRealtimeDataParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type GetRealtimeDataReturns

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

GetRealtimeDataReturns return values.

func (GetRealtimeDataReturns) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetRealtimeDataReturns) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*GetRealtimeDataReturns) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetRealtimeDataReturns) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type GraphObjectID

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

func (t GraphObjectID) String() string

String returns the GraphObjectID as string value.

type NodeType

type NodeType string

NodeType enum of AudioNode types.

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

func (NodeType) String

func (t NodeType) String() string

String returns the NodeType as string value.

type ParamType

type ParamType string

ParamType enum of AudioParam types.

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

func (ParamType) String

func (t ParamType) String() string

String returns the ParamType as string value.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL