webapi: github.com/gowebapi/webapi/media/audio Index | Files

package audio

import "github.com/gowebapi/webapi/media/audio"

Package audio is high-level Web API for processing and synthesizing audio in web applications.

Index

Package Files

audio.go doc.go

type AnalyserNode Uses

type AnalyserNode struct {
    AudioNode
}

class: AnalyserNode

func AnalyserNodeFromJS Uses

func AnalyserNodeFromJS(value js.Wrapper) *AnalyserNode

AnalyserNodeFromJS is casting a js.Wrapper into AnalyserNode.

func NewAnalyserNode Uses

func NewAnalyserNode(context *BaseAudioContext, options *AnalyserOptions) (_result *AnalyserNode)

func (*AnalyserNode) FftSize Uses

func (_this *AnalyserNode) FftSize() uint

FftSize returning attribute 'fftSize' with type uint (idl: unsigned long).

func (*AnalyserNode) FrequencyBinCount Uses

func (_this *AnalyserNode) FrequencyBinCount() uint

FrequencyBinCount returning attribute 'frequencyBinCount' with type uint (idl: unsigned long).

func (*AnalyserNode) GetByteFrequencyData Uses

func (_this *AnalyserNode) GetByteFrequencyData(array *javascript.Uint8Array)

func (*AnalyserNode) GetByteTimeDomainData Uses

func (_this *AnalyserNode) GetByteTimeDomainData(array *javascript.Uint8Array)

func (*AnalyserNode) GetFloatFrequencyData Uses

func (_this *AnalyserNode) GetFloatFrequencyData(array *javascript.Float32Array)

func (*AnalyserNode) GetFloatTimeDomainData Uses

func (_this *AnalyserNode) GetFloatTimeDomainData(array *javascript.Float32Array)

func (*AnalyserNode) MaxDecibels Uses

func (_this *AnalyserNode) MaxDecibels() float64

MaxDecibels returning attribute 'maxDecibels' with type float64 (idl: double).

func (*AnalyserNode) MinDecibels Uses

func (_this *AnalyserNode) MinDecibels() float64

MinDecibels returning attribute 'minDecibels' with type float64 (idl: double).

func (*AnalyserNode) SetFftSize Uses

func (_this *AnalyserNode) SetFftSize(value uint)

SetFftSize setting attribute 'fftSize' with type uint (idl: unsigned long).

func (*AnalyserNode) SetMaxDecibels Uses

func (_this *AnalyserNode) SetMaxDecibels(value float64)

SetMaxDecibels setting attribute 'maxDecibels' with type float64 (idl: double).

func (*AnalyserNode) SetMinDecibels Uses

func (_this *AnalyserNode) SetMinDecibels(value float64)

SetMinDecibels setting attribute 'minDecibels' with type float64 (idl: double).

func (*AnalyserNode) SetSmoothingTimeConstant Uses

func (_this *AnalyserNode) SetSmoothingTimeConstant(value float64)

SetSmoothingTimeConstant setting attribute 'smoothingTimeConstant' with type float64 (idl: double).

func (*AnalyserNode) SmoothingTimeConstant Uses

func (_this *AnalyserNode) SmoothingTimeConstant() float64

SmoothingTimeConstant returning attribute 'smoothingTimeConstant' with type float64 (idl: double).

type AnalyserOptions Uses

type AnalyserOptions struct {
    ChannelCount          uint
    ChannelCountMode      ChannelCountMode
    ChannelInterpretation ChannelInterpretation
    FftSize               uint
    MaxDecibels           float64
    MinDecibels           float64
    SmoothingTimeConstant float64
}

dictionary: AnalyserOptions

func AnalyserOptionsFromJS Uses

func AnalyserOptionsFromJS(value js.Wrapper) *AnalyserOptions

AnalyserOptionsFromJS is allocating a new AnalyserOptions object and copy all values from input javascript object

func (*AnalyserOptions) JSValue Uses

func (_this *AnalyserOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type AudioBuffer Uses

type AudioBuffer struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: AudioBuffer

func AudioBufferFromJS Uses

func AudioBufferFromJS(value js.Wrapper) *AudioBuffer

AudioBufferFromJS is casting a js.Wrapper into AudioBuffer.

func NewAudioBuffer Uses

func NewAudioBuffer(options *AudioBufferOptions) (_result *AudioBuffer)

func (*AudioBuffer) CopyFromChannel Uses

func (_this *AudioBuffer) CopyFromChannel(destination *javascript.Float32Array, channelNumber uint, startInChannel *uint)

func (*AudioBuffer) CopyToChannel Uses

func (_this *AudioBuffer) CopyToChannel(source *javascript.Float32Array, channelNumber uint, startInChannel *uint)

func (*AudioBuffer) Duration Uses

func (_this *AudioBuffer) Duration() float64

Duration returning attribute 'duration' with type float64 (idl: double).

func (*AudioBuffer) GetChannelData Uses

func (_this *AudioBuffer) GetChannelData(channel uint) (_result *javascript.Float32Array)

func (*AudioBuffer) JSValue Uses

func (_this *AudioBuffer) JSValue() js.Value

func (*AudioBuffer) Length Uses

func (_this *AudioBuffer) Length() uint

Length returning attribute 'length' with type uint (idl: unsigned long).

func (*AudioBuffer) NumberOfChannels Uses

func (_this *AudioBuffer) NumberOfChannels() uint

NumberOfChannels returning attribute 'numberOfChannels' with type uint (idl: unsigned long).

func (*AudioBuffer) SampleRate Uses

func (_this *AudioBuffer) SampleRate() float32

SampleRate returning attribute 'sampleRate' with type float32 (idl: float).

type AudioBufferOptions Uses

type AudioBufferOptions struct {
    NumberOfChannels uint
    Length           uint
    SampleRate       float32
}

dictionary: AudioBufferOptions

func AudioBufferOptionsFromJS Uses

func AudioBufferOptionsFromJS(value js.Wrapper) *AudioBufferOptions

AudioBufferOptionsFromJS is allocating a new AudioBufferOptions object and copy all values from input javascript object

func (*AudioBufferOptions) JSValue Uses

func (_this *AudioBufferOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type AudioBufferSourceNode Uses

type AudioBufferSourceNode struct {
    AudioScheduledSourceNode
}

class: AudioBufferSourceNode

func AudioBufferSourceNodeFromJS Uses

func AudioBufferSourceNodeFromJS(value js.Wrapper) *AudioBufferSourceNode

AudioBufferSourceNodeFromJS is casting a js.Wrapper into AudioBufferSourceNode.

func NewAudioBufferSourceNode Uses

func NewAudioBufferSourceNode(context *BaseAudioContext, options *AudioBufferSourceOptions) (_result *AudioBufferSourceNode)

func (*AudioBufferSourceNode) Buffer Uses

func (_this *AudioBufferSourceNode) Buffer() *AudioBuffer

Buffer returning attribute 'buffer' with type AudioBuffer (idl: AudioBuffer).

func (*AudioBufferSourceNode) Detune Uses

func (_this *AudioBufferSourceNode) Detune() *AudioParam

Detune returning attribute 'detune' with type AudioParam (idl: AudioParam).

func (*AudioBufferSourceNode) Loop Uses

func (_this *AudioBufferSourceNode) Loop() bool

Loop returning attribute 'loop' with type bool (idl: boolean).

func (*AudioBufferSourceNode) LoopEnd Uses

func (_this *AudioBufferSourceNode) LoopEnd() float64

LoopEnd returning attribute 'loopEnd' with type float64 (idl: double).

func (*AudioBufferSourceNode) LoopStart Uses

func (_this *AudioBufferSourceNode) LoopStart() float64

LoopStart returning attribute 'loopStart' with type float64 (idl: double).

func (*AudioBufferSourceNode) PlaybackRate Uses

func (_this *AudioBufferSourceNode) PlaybackRate() *AudioParam

PlaybackRate returning attribute 'playbackRate' with type AudioParam (idl: AudioParam).

func (*AudioBufferSourceNode) SetBuffer Uses

func (_this *AudioBufferSourceNode) SetBuffer(value *AudioBuffer)

SetBuffer setting attribute 'buffer' with type AudioBuffer (idl: AudioBuffer).

func (*AudioBufferSourceNode) SetLoop Uses

func (_this *AudioBufferSourceNode) SetLoop(value bool)

SetLoop setting attribute 'loop' with type bool (idl: boolean).

func (*AudioBufferSourceNode) SetLoopEnd Uses

func (_this *AudioBufferSourceNode) SetLoopEnd(value float64)

SetLoopEnd setting attribute 'loopEnd' with type float64 (idl: double).

func (*AudioBufferSourceNode) SetLoopStart Uses

func (_this *AudioBufferSourceNode) SetLoopStart(value float64)

SetLoopStart setting attribute 'loopStart' with type float64 (idl: double).

func (*AudioBufferSourceNode) Start2 Uses

func (_this *AudioBufferSourceNode) Start2(when *float64, offset *float64, duration *float64)

type AudioBufferSourceOptions Uses

type AudioBufferSourceOptions struct {
    Buffer       *AudioBuffer
    Detune       float32
    Loop         bool
    LoopEnd      float64
    LoopStart    float64
    PlaybackRate float32
}

dictionary: AudioBufferSourceOptions

func AudioBufferSourceOptionsFromJS Uses

func AudioBufferSourceOptionsFromJS(value js.Wrapper) *AudioBufferSourceOptions

AudioBufferSourceOptionsFromJS is allocating a new AudioBufferSourceOptions object and copy all values from input javascript object

func (*AudioBufferSourceOptions) JSValue Uses

func (_this *AudioBufferSourceOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type AudioContext Uses

type AudioContext struct {
    BaseAudioContext
}

class: AudioContext

func AudioContextFromJS Uses

func AudioContextFromJS(value js.Wrapper) *AudioContext

AudioContextFromJS is casting a js.Wrapper into AudioContext.

func NewAudioContext Uses

func NewAudioContext(contextOptions *AudioContextOptions) (_result *AudioContext)

func (*AudioContext) BaseLatency Uses

func (_this *AudioContext) BaseLatency() float64

BaseLatency returning attribute 'baseLatency' with type float64 (idl: double).

func (*AudioContext) Close Uses

func (_this *AudioContext) Close() (_result *javascript.PromiseVoid)

func (*AudioContext) CreateMediaElementSource Uses

func (_this *AudioContext) CreateMediaElementSource(mediaElement *media.HTMLMediaElement) (_result *MediaElementAudioSourceNode)

func (*AudioContext) CreateMediaStreamDestination Uses

func (_this *AudioContext) CreateMediaStreamDestination() (_result *MediaStreamAudioDestinationNode)

func (*AudioContext) CreateMediaStreamSource Uses

func (_this *AudioContext) CreateMediaStreamSource(mediaStream *local.MediaStream) (_result *MediaStreamAudioSourceNode)

func (*AudioContext) CreateMediaStreamTrackSource Uses

func (_this *AudioContext) CreateMediaStreamTrackSource(mediaStreamTrack *local.MediaStreamTrack) (_result *MediaStreamTrackAudioSourceNode)

func (*AudioContext) GetOutputTimestamp Uses

func (_this *AudioContext) GetOutputTimestamp() (_result *AudioTimestamp)

func (*AudioContext) OutputLatency Uses

func (_this *AudioContext) OutputLatency() float64

OutputLatency returning attribute 'outputLatency' with type float64 (idl: double).

func (*AudioContext) Resume Uses

func (_this *AudioContext) Resume() (_result *javascript.PromiseVoid)

func (*AudioContext) Suspend Uses

func (_this *AudioContext) Suspend() (_result *javascript.PromiseVoid)

type AudioContextLatencyCategory Uses

type AudioContextLatencyCategory int

enum: AudioContextLatencyCategory

const (
    BalancedAudioContextLatencyCategory AudioContextLatencyCategory = iota
    InteractiveAudioContextLatencyCategory
    PlaybackAudioContextLatencyCategory
)

func AudioContextLatencyCategoryFromJS Uses

func AudioContextLatencyCategoryFromJS(value js.Value) AudioContextLatencyCategory

AudioContextLatencyCategoryFromJS is converting a javascript value into a AudioContextLatencyCategory enum value.

func (*AudioContextLatencyCategory) JSValue Uses

func (this *AudioContextLatencyCategory) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (AudioContextLatencyCategory) Value Uses

func (this AudioContextLatencyCategory) Value() string

Value is converting this into javascript defined string value

type AudioContextOptions Uses

type AudioContextOptions struct {
    LatencyHint *Union
    SampleRate  float32
}

dictionary: AudioContextOptions

func AudioContextOptionsFromJS Uses

func AudioContextOptionsFromJS(value js.Wrapper) *AudioContextOptions

AudioContextOptionsFromJS is allocating a new AudioContextOptions object and copy all values from input javascript object

func (*AudioContextOptions) JSValue Uses

func (_this *AudioContextOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type AudioContextState Uses

type AudioContextState int

enum: AudioContextState

const (
    SuspendedAudioContextState AudioContextState = iota
    RunningAudioContextState
    ClosedAudioContextState
)

func AudioContextStateFromJS Uses

func AudioContextStateFromJS(value js.Value) AudioContextState

AudioContextStateFromJS is converting a javascript value into a AudioContextState enum value.

func (*AudioContextState) JSValue Uses

func (this *AudioContextState) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (AudioContextState) Value Uses

func (this AudioContextState) Value() string

Value is converting this into javascript defined string value

type AudioDestinationNode Uses

type AudioDestinationNode struct {
    AudioNode
}

class: AudioDestinationNode

func AudioDestinationNodeFromJS Uses

func AudioDestinationNodeFromJS(value js.Wrapper) *AudioDestinationNode

AudioDestinationNodeFromJS is casting a js.Wrapper into AudioDestinationNode.

func (*AudioDestinationNode) MaxChannelCount Uses

func (_this *AudioDestinationNode) MaxChannelCount() uint

MaxChannelCount returning attribute 'maxChannelCount' with type uint (idl: unsigned long).

type AudioListener Uses

type AudioListener struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: AudioListener

func AudioListenerFromJS Uses

func AudioListenerFromJS(value js.Wrapper) *AudioListener

AudioListenerFromJS is casting a js.Wrapper into AudioListener.

func (*AudioListener) ForwardX Uses

func (_this *AudioListener) ForwardX() *AudioParam

ForwardX returning attribute 'forwardX' with type AudioParam (idl: AudioParam).

func (*AudioListener) ForwardY Uses

func (_this *AudioListener) ForwardY() *AudioParam

ForwardY returning attribute 'forwardY' with type AudioParam (idl: AudioParam).

func (*AudioListener) ForwardZ Uses

func (_this *AudioListener) ForwardZ() *AudioParam

ForwardZ returning attribute 'forwardZ' with type AudioParam (idl: AudioParam).

func (*AudioListener) JSValue Uses

func (_this *AudioListener) JSValue() js.Value

func (*AudioListener) PositionX Uses

func (_this *AudioListener) PositionX() *AudioParam

PositionX returning attribute 'positionX' with type AudioParam (idl: AudioParam).

func (*AudioListener) PositionY Uses

func (_this *AudioListener) PositionY() *AudioParam

PositionY returning attribute 'positionY' with type AudioParam (idl: AudioParam).

func (*AudioListener) PositionZ Uses

func (_this *AudioListener) PositionZ() *AudioParam

PositionZ returning attribute 'positionZ' with type AudioParam (idl: AudioParam).

func (*AudioListener) SetOrientation Uses

func (_this *AudioListener) SetOrientation(x float32, y float32, z float32, xUp float32, yUp float32, zUp float32)

func (*AudioListener) SetPosition Uses

func (_this *AudioListener) SetPosition(x float32, y float32, z float32)

func (*AudioListener) UpX Uses

func (_this *AudioListener) UpX() *AudioParam

UpX returning attribute 'upX' with type AudioParam (idl: AudioParam).

func (*AudioListener) UpY Uses

func (_this *AudioListener) UpY() *AudioParam

UpY returning attribute 'upY' with type AudioParam (idl: AudioParam).

func (*AudioListener) UpZ Uses

func (_this *AudioListener) UpZ() *AudioParam

UpZ returning attribute 'upZ' with type AudioParam (idl: AudioParam).

type AudioNode Uses

type AudioNode struct {
    domcore.EventTarget
}

class: AudioNode

func AudioNodeFromJS Uses

func AudioNodeFromJS(value js.Wrapper) *AudioNode

AudioNodeFromJS is casting a js.Wrapper into AudioNode.

func (*AudioNode) ChannelCount Uses

func (_this *AudioNode) ChannelCount() uint

ChannelCount returning attribute 'channelCount' with type uint (idl: unsigned long).

func (*AudioNode) ChannelCountMode Uses

func (_this *AudioNode) ChannelCountMode() ChannelCountMode

ChannelCountMode returning attribute 'channelCountMode' with type ChannelCountMode (idl: ChannelCountMode).

func (*AudioNode) ChannelInterpretation Uses

func (_this *AudioNode) ChannelInterpretation() ChannelInterpretation

ChannelInterpretation returning attribute 'channelInterpretation' with type ChannelInterpretation (idl: ChannelInterpretation).

func (*AudioNode) Connect Uses

func (_this *AudioNode) Connect(destinationNode *AudioNode, output *uint, input *uint) (_result *AudioNode)

func (*AudioNode) Connect2 Uses

func (_this *AudioNode) Connect2(destinationParam *AudioParam, output *uint)

func (*AudioNode) Context Uses

func (_this *AudioNode) Context() *BaseAudioContext

Context returning attribute 'context' with type BaseAudioContext (idl: BaseAudioContext).

func (*AudioNode) Disconnect Uses

func (_this *AudioNode) Disconnect()

func (*AudioNode) Disconnect2 Uses

func (_this *AudioNode) Disconnect2(output uint)

func (*AudioNode) Disconnect3 Uses

func (_this *AudioNode) Disconnect3(destinationNode *AudioNode)

func (*AudioNode) Disconnect4 Uses

func (_this *AudioNode) Disconnect4(destinationNode *AudioNode, output uint)

func (*AudioNode) Disconnect5 Uses

func (_this *AudioNode) Disconnect5(destinationNode *AudioNode, output uint, input uint)

func (*AudioNode) Disconnect6 Uses

func (_this *AudioNode) Disconnect6(destinationParam *AudioParam)

func (*AudioNode) Disconnect7 Uses

func (_this *AudioNode) Disconnect7(destinationParam *AudioParam, output uint)

func (*AudioNode) NumberOfInputs Uses

func (_this *AudioNode) NumberOfInputs() uint

NumberOfInputs returning attribute 'numberOfInputs' with type uint (idl: unsigned long).

func (*AudioNode) NumberOfOutputs Uses

func (_this *AudioNode) NumberOfOutputs() uint

NumberOfOutputs returning attribute 'numberOfOutputs' with type uint (idl: unsigned long).

func (*AudioNode) SetChannelCount Uses

func (_this *AudioNode) SetChannelCount(value uint)

SetChannelCount setting attribute 'channelCount' with type uint (idl: unsigned long).

func (*AudioNode) SetChannelCountMode Uses

func (_this *AudioNode) SetChannelCountMode(value ChannelCountMode)

SetChannelCountMode setting attribute 'channelCountMode' with type ChannelCountMode (idl: ChannelCountMode).

func (*AudioNode) SetChannelInterpretation Uses

func (_this *AudioNode) SetChannelInterpretation(value ChannelInterpretation)

SetChannelInterpretation setting attribute 'channelInterpretation' with type ChannelInterpretation (idl: ChannelInterpretation).

type AudioNodeOptions Uses

type AudioNodeOptions struct {
    ChannelCount          uint
    ChannelCountMode      ChannelCountMode
    ChannelInterpretation ChannelInterpretation
}

dictionary: AudioNodeOptions

func AudioNodeOptionsFromJS Uses

func AudioNodeOptionsFromJS(value js.Wrapper) *AudioNodeOptions

AudioNodeOptionsFromJS is allocating a new AudioNodeOptions object and copy all values from input javascript object

func (*AudioNodeOptions) JSValue Uses

func (_this *AudioNodeOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type AudioParam Uses

type AudioParam struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: AudioParam

func AudioParamFromJS Uses

func AudioParamFromJS(value js.Wrapper) *AudioParam

AudioParamFromJS is casting a js.Wrapper into AudioParam.

func (*AudioParam) AutomationRate Uses

func (_this *AudioParam) AutomationRate() AutomationRate

AutomationRate returning attribute 'automationRate' with type AutomationRate (idl: AutomationRate).

func (*AudioParam) CancelAndHoldAtTime Uses

func (_this *AudioParam) CancelAndHoldAtTime(cancelTime float64) (_result *AudioParam)

func (*AudioParam) CancelScheduledValues Uses

func (_this *AudioParam) CancelScheduledValues(cancelTime float64) (_result *AudioParam)

func (*AudioParam) DefaultValue Uses

func (_this *AudioParam) DefaultValue() float32

DefaultValue returning attribute 'defaultValue' with type float32 (idl: float).

func (*AudioParam) ExponentialRampToValueAtTime Uses

func (_this *AudioParam) ExponentialRampToValueAtTime(value float32, endTime float64) (_result *AudioParam)

func (*AudioParam) JSValue Uses

func (_this *AudioParam) JSValue() js.Value

func (*AudioParam) LinearRampToValueAtTime Uses

func (_this *AudioParam) LinearRampToValueAtTime(value float32, endTime float64) (_result *AudioParam)

func (*AudioParam) MaxValue Uses

func (_this *AudioParam) MaxValue() float32

MaxValue returning attribute 'maxValue' with type float32 (idl: float).

func (*AudioParam) MinValue Uses

func (_this *AudioParam) MinValue() float32

MinValue returning attribute 'minValue' with type float32 (idl: float).

func (*AudioParam) SetAutomationRate Uses

func (_this *AudioParam) SetAutomationRate(value AutomationRate)

SetAutomationRate setting attribute 'automationRate' with type AutomationRate (idl: AutomationRate).

func (*AudioParam) SetTargetAtTime Uses

func (_this *AudioParam) SetTargetAtTime(target float32, startTime float64, timeConstant float32) (_result *AudioParam)

func (*AudioParam) SetValue Uses

func (_this *AudioParam) SetValue(value float32)

SetValue setting attribute 'value' with type float32 (idl: float).

func (*AudioParam) SetValueAtTime Uses

func (_this *AudioParam) SetValueAtTime(value float32, startTime float64) (_result *AudioParam)

func (*AudioParam) SetValueCurveAtTime Uses

func (_this *AudioParam) SetValueCurveAtTime(values []float32, startTime float64, duration float64) (_result *AudioParam)

func (*AudioParam) Value Uses

func (_this *AudioParam) Value() float32

Value returning attribute 'value' with type float32 (idl: float).

type AudioParamDescriptor Uses

type AudioParamDescriptor struct {
    Name           string
    DefaultValue   float32
    MinValue       float32
    MaxValue       float32
    AutomationRate AutomationRate
}

dictionary: AudioParamDescriptor

func AudioParamDescriptorFromJS Uses

func AudioParamDescriptorFromJS(value js.Wrapper) *AudioParamDescriptor

AudioParamDescriptorFromJS is allocating a new AudioParamDescriptor object and copy all values from input javascript object

func (*AudioParamDescriptor) JSValue Uses

func (_this *AudioParamDescriptor) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type AudioParamMap Uses

type AudioParamMap struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: AudioParamMap

func AudioParamMapFromJS Uses

func AudioParamMapFromJS(value js.Wrapper) *AudioParamMap

AudioParamMapFromJS is casting a js.Wrapper into AudioParamMap.

func (*AudioParamMap) Entries Uses

func (_this *AudioParamMap) Entries() (_result *AudioParamMapEntryIterator)

func (*AudioParamMap) ForEach Uses

func (_this *AudioParamMap) ForEach(callback *AudioParamMapForEach, optionalThisForCallbackArgument interface{})

func (*AudioParamMap) Get Uses

func (_this *AudioParamMap) Get(key string) (_result *AudioParam)

func (*AudioParamMap) Has Uses

func (_this *AudioParamMap) Has(key string) (_result bool)

func (*AudioParamMap) JSValue Uses

func (_this *AudioParamMap) JSValue() js.Value

func (*AudioParamMap) Keys Uses

func (_this *AudioParamMap) Keys() (_result *AudioParamMapKeyIterator)

func (*AudioParamMap) Size Uses

func (_this *AudioParamMap) Size() int

Size returning attribute 'size' with type int (idl: long).

func (*AudioParamMap) Values Uses

func (_this *AudioParamMap) Values() (_result *AudioParamMapValueIterator)

type AudioParamMapEntryIterator Uses

type AudioParamMapEntryIterator struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: AudioParamMapEntryIterator

func AudioParamMapEntryIteratorFromJS Uses

func AudioParamMapEntryIteratorFromJS(value js.Wrapper) *AudioParamMapEntryIterator

AudioParamMapEntryIteratorFromJS is casting a js.Wrapper into AudioParamMapEntryIterator.

func (*AudioParamMapEntryIterator) JSValue Uses

func (_this *AudioParamMapEntryIterator) JSValue() js.Value

func (*AudioParamMapEntryIterator) Next Uses

func (_this *AudioParamMapEntryIterator) Next() (_result *AudioParamMapEntryIteratorValue)

type AudioParamMapEntryIteratorValue Uses

type AudioParamMapEntryIteratorValue struct {
    Value []js.Value
    Done  bool
}

dictionary: AudioParamMapEntryIteratorValue

func AudioParamMapEntryIteratorValueFromJS Uses

func AudioParamMapEntryIteratorValueFromJS(value js.Wrapper) *AudioParamMapEntryIteratorValue

AudioParamMapEntryIteratorValueFromJS is allocating a new AudioParamMapEntryIteratorValue object and copy all values from input javascript object

func (*AudioParamMapEntryIteratorValue) JSValue Uses

func (_this *AudioParamMapEntryIteratorValue) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type AudioParamMapForEach Uses

type AudioParamMapForEach js.Func

AudioParamMapForEach is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func AudioParamMapForEachToJS Uses

func AudioParamMapForEachToJS(callback AudioParamMapForEachFunc) *AudioParamMapForEach

type AudioParamMapForEachFunc Uses

type AudioParamMapForEachFunc func(currentValue *AudioParam, currentKey string, listObj *AudioParamMap)

callback: AudioParamMapForEach

func AudioParamMapForEachFromJS Uses

func AudioParamMapForEachFromJS(_value js.Value) AudioParamMapForEachFunc

type AudioParamMapKeyIterator Uses

type AudioParamMapKeyIterator struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: AudioParamMapKeyIterator

func AudioParamMapKeyIteratorFromJS Uses

func AudioParamMapKeyIteratorFromJS(value js.Wrapper) *AudioParamMapKeyIterator

AudioParamMapKeyIteratorFromJS is casting a js.Wrapper into AudioParamMapKeyIterator.

func (*AudioParamMapKeyIterator) JSValue Uses

func (_this *AudioParamMapKeyIterator) JSValue() js.Value

func (*AudioParamMapKeyIterator) Next Uses

func (_this *AudioParamMapKeyIterator) Next() (_result *AudioParamMapKeyIteratorValue)

type AudioParamMapKeyIteratorValue Uses

type AudioParamMapKeyIteratorValue struct {
    Value string
    Done  bool
}

dictionary: AudioParamMapKeyIteratorValue

func AudioParamMapKeyIteratorValueFromJS Uses

func AudioParamMapKeyIteratorValueFromJS(value js.Wrapper) *AudioParamMapKeyIteratorValue

AudioParamMapKeyIteratorValueFromJS is allocating a new AudioParamMapKeyIteratorValue object and copy all values from input javascript object

func (*AudioParamMapKeyIteratorValue) JSValue Uses

func (_this *AudioParamMapKeyIteratorValue) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type AudioParamMapValueIterator Uses

type AudioParamMapValueIterator struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: AudioParamMapValueIterator

func AudioParamMapValueIteratorFromJS Uses

func AudioParamMapValueIteratorFromJS(value js.Wrapper) *AudioParamMapValueIterator

AudioParamMapValueIteratorFromJS is casting a js.Wrapper into AudioParamMapValueIterator.

func (*AudioParamMapValueIterator) JSValue Uses

func (_this *AudioParamMapValueIterator) JSValue() js.Value

func (*AudioParamMapValueIterator) Next Uses

func (_this *AudioParamMapValueIterator) Next() (_result *AudioParamMapValueIteratorValue)

type AudioParamMapValueIteratorValue Uses

type AudioParamMapValueIteratorValue struct {
    Value *AudioParam
    Done  bool
}

dictionary: AudioParamMapValueIteratorValue

func AudioParamMapValueIteratorValueFromJS Uses

func AudioParamMapValueIteratorValueFromJS(value js.Wrapper) *AudioParamMapValueIteratorValue

AudioParamMapValueIteratorValueFromJS is allocating a new AudioParamMapValueIteratorValue object and copy all values from input javascript object

func (*AudioParamMapValueIteratorValue) JSValue Uses

func (_this *AudioParamMapValueIteratorValue) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type AudioProcessingEvent Uses

type AudioProcessingEvent struct {
    domcore.Event
}

class: AudioProcessingEvent

func AudioProcessingEventFromJS Uses

func AudioProcessingEventFromJS(value js.Wrapper) *AudioProcessingEvent

AudioProcessingEventFromJS is casting a js.Wrapper into AudioProcessingEvent.

func NewAudioProcessingEvent Uses

func NewAudioProcessingEvent(_type string, eventInitDict *AudioProcessingEventInit) (_result *AudioProcessingEvent)

func (*AudioProcessingEvent) InputBuffer Uses

func (_this *AudioProcessingEvent) InputBuffer() *AudioBuffer

InputBuffer returning attribute 'inputBuffer' with type AudioBuffer (idl: AudioBuffer).

func (*AudioProcessingEvent) OutputBuffer Uses

func (_this *AudioProcessingEvent) OutputBuffer() *AudioBuffer

OutputBuffer returning attribute 'outputBuffer' with type AudioBuffer (idl: AudioBuffer).

func (*AudioProcessingEvent) PlaybackTime Uses

func (_this *AudioProcessingEvent) PlaybackTime() float64

PlaybackTime returning attribute 'playbackTime' with type float64 (idl: double).

type AudioProcessingEventInit Uses

type AudioProcessingEventInit struct {
    Bubbles      bool
    Cancelable   bool
    Composed     bool
    PlaybackTime float64
    InputBuffer  *AudioBuffer
    OutputBuffer *AudioBuffer
}

dictionary: AudioProcessingEventInit

func AudioProcessingEventInitFromJS Uses

func AudioProcessingEventInitFromJS(value js.Wrapper) *AudioProcessingEventInit

AudioProcessingEventInitFromJS is allocating a new AudioProcessingEventInit object and copy all values from input javascript object

func (*AudioProcessingEventInit) JSValue Uses

func (_this *AudioProcessingEventInit) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type AudioScheduledSourceNode Uses

type AudioScheduledSourceNode struct {
    AudioNode
}

class: AudioScheduledSourceNode

func AudioScheduledSourceNodeFromJS Uses

func AudioScheduledSourceNodeFromJS(value js.Wrapper) *AudioScheduledSourceNode

AudioScheduledSourceNodeFromJS is casting a js.Wrapper into AudioScheduledSourceNode.

func (*AudioScheduledSourceNode) AddEventEnded Uses

func (_this *AudioScheduledSourceNode) AddEventEnded(listener func(event *domcore.Event, currentTarget *AudioScheduledSourceNode)) js.Func

AddEnded is adding doing AddEventListener for 'Ended' on target. This method is returning allocated javascript function that need to be released.

func (*AudioScheduledSourceNode) OnEnded Uses

func (_this *AudioScheduledSourceNode) OnEnded() domcore.EventHandlerFunc

OnEnded returning attribute 'onended' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*AudioScheduledSourceNode) SetOnEnded Uses

func (_this *AudioScheduledSourceNode) SetOnEnded(listener func(event *domcore.Event, currentTarget *AudioScheduledSourceNode)) js.Func

SetOnEnded is assigning a function to 'onended'. This This method is returning allocated javascript function that need to be released.

func (*AudioScheduledSourceNode) Start Uses

func (_this *AudioScheduledSourceNode) Start(when *float64)

func (*AudioScheduledSourceNode) Stop Uses

func (_this *AudioScheduledSourceNode) Stop(when *float64)

type AudioTimestamp Uses

type AudioTimestamp struct {
    ContextTime     float64
    PerformanceTime float64
}

dictionary: AudioTimestamp

func AudioTimestampFromJS Uses

func AudioTimestampFromJS(value js.Wrapper) *AudioTimestamp

AudioTimestampFromJS is allocating a new AudioTimestamp object and copy all values from input javascript object

func (*AudioTimestamp) JSValue Uses

func (_this *AudioTimestamp) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type AudioWorklet Uses

type AudioWorklet struct {
    worklets.Worklet
}

class: AudioWorklet

func AudioWorkletFromJS Uses

func AudioWorkletFromJS(value js.Wrapper) *AudioWorklet

AudioWorkletFromJS is casting a js.Wrapper into AudioWorklet.

type AudioWorkletGlobalScope Uses

type AudioWorkletGlobalScope struct {
    worklets.WorkletGlobalScope
}

class: AudioWorkletGlobalScope

func AudioWorkletGlobalScopeFromJS Uses

func AudioWorkletGlobalScopeFromJS(value js.Wrapper) *AudioWorkletGlobalScope

AudioWorkletGlobalScopeFromJS is casting a js.Wrapper into AudioWorkletGlobalScope.

func (*AudioWorkletGlobalScope) CurrentFrame Uses

func (_this *AudioWorkletGlobalScope) CurrentFrame() int

CurrentFrame returning attribute 'currentFrame' with type int (idl: unsigned long long).

func (*AudioWorkletGlobalScope) CurrentTime Uses

func (_this *AudioWorkletGlobalScope) CurrentTime() float64

CurrentTime returning attribute 'currentTime' with type float64 (idl: double).

func (*AudioWorkletGlobalScope) RegisterProcessor Uses

func (_this *AudioWorkletGlobalScope) RegisterProcessor(name string, processorCtor *webidl.VoidFunction)

func (*AudioWorkletGlobalScope) SampleRate Uses

func (_this *AudioWorkletGlobalScope) SampleRate() float32

SampleRate returning attribute 'sampleRate' with type float32 (idl: float).

type AudioWorkletNode Uses

type AudioWorkletNode struct {
    AudioNode
}

class: AudioWorkletNode

func AudioWorkletNodeFromJS Uses

func AudioWorkletNodeFromJS(value js.Wrapper) *AudioWorkletNode

AudioWorkletNodeFromJS is casting a js.Wrapper into AudioWorkletNode.

func NewAudioWorkletNode Uses

func NewAudioWorkletNode(context *BaseAudioContext, name string, options *AudioWorkletNodeOptions) (_result *AudioWorkletNode)

func (*AudioWorkletNode) AddEventProcessorError Uses

func (_this *AudioWorkletNode) AddEventProcessorError(listener func(event *htmlevent.ErrorEvent, currentTarget *AudioWorkletNode)) js.Func

AddProcessorError is adding doing AddEventListener for 'ProcessorError' on target. This method is returning allocated javascript function that need to be released.

func (*AudioWorkletNode) OnProcessorError Uses

func (_this *AudioWorkletNode) OnProcessorError() domcore.EventHandlerFunc

OnProcessorError returning attribute 'onprocessorerror' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*AudioWorkletNode) Parameters Uses

func (_this *AudioWorkletNode) Parameters() *AudioParamMap

Parameters returning attribute 'parameters' with type AudioParamMap (idl: AudioParamMap).

func (*AudioWorkletNode) Port Uses

func (_this *AudioWorkletNode) Port() *channel.MessagePort

Port returning attribute 'port' with type channel.MessagePort (idl: MessagePort).

func (*AudioWorkletNode) SetOnProcessorError Uses

func (_this *AudioWorkletNode) SetOnProcessorError(listener func(event *htmlevent.ErrorEvent, currentTarget *AudioWorkletNode)) js.Func

SetOnProcessorError is assigning a function to 'onprocessorerror'. This This method is returning allocated javascript function that need to be released.

type AudioWorkletNodeOptions Uses

type AudioWorkletNodeOptions struct {
    ChannelCount          uint
    ChannelCountMode      ChannelCountMode
    ChannelInterpretation ChannelInterpretation
    NumberOfInputs        uint
    NumberOfOutputs       uint
    OutputChannelCount    []uint
    ProcessorOptions      *javascript.Object
}

dictionary: AudioWorkletNodeOptions

func AudioWorkletNodeOptionsFromJS Uses

func AudioWorkletNodeOptionsFromJS(value js.Wrapper) *AudioWorkletNodeOptions

AudioWorkletNodeOptionsFromJS is allocating a new AudioWorkletNodeOptions object and copy all values from input javascript object

func (*AudioWorkletNodeOptions) JSValue Uses

func (_this *AudioWorkletNodeOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type AudioWorkletProcessor Uses

type AudioWorkletProcessor struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: AudioWorkletProcessor

func AudioWorkletProcessorFromJS Uses

func AudioWorkletProcessorFromJS(value js.Wrapper) *AudioWorkletProcessor

AudioWorkletProcessorFromJS is casting a js.Wrapper into AudioWorkletProcessor.

func NewAudioWorkletProcessor Uses

func NewAudioWorkletProcessor(options *AudioWorkletNodeOptions) (_result *AudioWorkletProcessor)

func (*AudioWorkletProcessor) JSValue Uses

func (_this *AudioWorkletProcessor) JSValue() js.Value

func (*AudioWorkletProcessor) Port Uses

func (_this *AudioWorkletProcessor) Port() *channel.MessagePort

Port returning attribute 'port' with type channel.MessagePort (idl: MessagePort).

type AutomationRate Uses

type AutomationRate int

enum: AutomationRate

const (
    ARateAutomationRate AutomationRate = iota
    KRateAutomationRate
)

func AutomationRateFromJS Uses

func AutomationRateFromJS(value js.Value) AutomationRate

AutomationRateFromJS is converting a javascript value into a AutomationRate enum value.

func (*AutomationRate) JSValue Uses

func (this *AutomationRate) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (AutomationRate) Value Uses

func (this AutomationRate) Value() string

Value is converting this into javascript defined string value

type BaseAudioContext Uses

type BaseAudioContext struct {
    domcore.EventTarget
}

class: BaseAudioContext

func BaseAudioContextFromJS Uses

func BaseAudioContextFromJS(value js.Wrapper) *BaseAudioContext

BaseAudioContextFromJS is casting a js.Wrapper into BaseAudioContext.

func (*BaseAudioContext) AddEventStateChange Uses

func (_this *BaseAudioContext) AddEventStateChange(listener func(event *domcore.Event, currentTarget *BaseAudioContext)) js.Func

AddStateChange is adding doing AddEventListener for 'StateChange' on target. This method is returning allocated javascript function that need to be released.

func (*BaseAudioContext) AudioWorklet Uses

func (_this *BaseAudioContext) AudioWorklet() *AudioWorklet

AudioWorklet returning attribute 'audioWorklet' with type AudioWorklet (idl: AudioWorklet).

func (*BaseAudioContext) CreateAnalyser Uses

func (_this *BaseAudioContext) CreateAnalyser() (_result *AnalyserNode)

func (*BaseAudioContext) CreateBiquadFilter Uses

func (_this *BaseAudioContext) CreateBiquadFilter() (_result *BiquadFilterNode)

func (*BaseAudioContext) CreateBuffer Uses

func (_this *BaseAudioContext) CreateBuffer(numberOfChannels uint, length uint, sampleRate float32) (_result *AudioBuffer)

func (*BaseAudioContext) CreateBufferSource Uses

func (_this *BaseAudioContext) CreateBufferSource() (_result *AudioBufferSourceNode)

func (*BaseAudioContext) CreateChannelMerger Uses

func (_this *BaseAudioContext) CreateChannelMerger(numberOfInputs *uint) (_result *ChannelMergerNode)

func (*BaseAudioContext) CreateChannelSplitter Uses

func (_this *BaseAudioContext) CreateChannelSplitter(numberOfOutputs *uint) (_result *ChannelSplitterNode)

func (*BaseAudioContext) CreateConstantSource Uses

func (_this *BaseAudioContext) CreateConstantSource() (_result *ConstantSourceNode)

func (*BaseAudioContext) CreateConvolver Uses

func (_this *BaseAudioContext) CreateConvolver() (_result *ConvolverNode)

func (*BaseAudioContext) CreateDelay Uses

func (_this *BaseAudioContext) CreateDelay(maxDelayTime *float64) (_result *DelayNode)

func (*BaseAudioContext) CreateDynamicsCompressor Uses

func (_this *BaseAudioContext) CreateDynamicsCompressor() (_result *DynamicsCompressorNode)

func (*BaseAudioContext) CreateGain Uses

func (_this *BaseAudioContext) CreateGain() (_result *GainNode)

func (*BaseAudioContext) CreateIIRFilter Uses

func (_this *BaseAudioContext) CreateIIRFilter(feedforward []float64, feedback []float64) (_result *IIRFilterNode)

func (*BaseAudioContext) CreateOscillator Uses

func (_this *BaseAudioContext) CreateOscillator() (_result *OscillatorNode)

func (*BaseAudioContext) CreatePanner Uses

func (_this *BaseAudioContext) CreatePanner() (_result *PannerNode)

func (*BaseAudioContext) CreatePeriodicWave Uses

func (_this *BaseAudioContext) CreatePeriodicWave(real []float32, imag []float32, constraints *PeriodicWaveConstraints) (_result *PeriodicWave)

func (*BaseAudioContext) CreateScriptProcessor Uses

func (_this *BaseAudioContext) CreateScriptProcessor(bufferSize *uint, numberOfInputChannels *uint, numberOfOutputChannels *uint) (_result *ScriptProcessorNode)

func (*BaseAudioContext) CreateStereoPanner Uses

func (_this *BaseAudioContext) CreateStereoPanner() (_result *StereoPannerNode)

func (*BaseAudioContext) CreateWaveShaper Uses

func (_this *BaseAudioContext) CreateWaveShaper() (_result *WaveShaperNode)

func (*BaseAudioContext) CurrentTime Uses

func (_this *BaseAudioContext) CurrentTime() float64

CurrentTime returning attribute 'currentTime' with type float64 (idl: double).

func (*BaseAudioContext) DecodeAudioData Uses

func (_this *BaseAudioContext) DecodeAudioData(audioData *javascript.ArrayBuffer, successCallback *DecodeSuccessCallback, errorCallback *DecodeErrorCallback) (_result *PromiseAudioBuffer)

func (*BaseAudioContext) Destination Uses

func (_this *BaseAudioContext) Destination() *AudioDestinationNode

Destination returning attribute 'destination' with type AudioDestinationNode (idl: AudioDestinationNode).

func (*BaseAudioContext) Listener Uses

func (_this *BaseAudioContext) Listener() *AudioListener

Listener returning attribute 'listener' with type AudioListener (idl: AudioListener).

func (*BaseAudioContext) OnStateChange Uses

func (_this *BaseAudioContext) OnStateChange() domcore.EventHandlerFunc

OnStateChange returning attribute 'onstatechange' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*BaseAudioContext) SampleRate Uses

func (_this *BaseAudioContext) SampleRate() float32

SampleRate returning attribute 'sampleRate' with type float32 (idl: float).

func (*BaseAudioContext) SetOnStateChange Uses

func (_this *BaseAudioContext) SetOnStateChange(listener func(event *domcore.Event, currentTarget *BaseAudioContext)) js.Func

SetOnStateChange is assigning a function to 'onstatechange'. This This method is returning allocated javascript function that need to be released.

func (*BaseAudioContext) State Uses

func (_this *BaseAudioContext) State() AudioContextState

State returning attribute 'state' with type AudioContextState (idl: AudioContextState).

type BiquadFilterNode Uses

type BiquadFilterNode struct {
    AudioNode
}

class: BiquadFilterNode

func BiquadFilterNodeFromJS Uses

func BiquadFilterNodeFromJS(value js.Wrapper) *BiquadFilterNode

BiquadFilterNodeFromJS is casting a js.Wrapper into BiquadFilterNode.

func NewBiquadFilterNode Uses

func NewBiquadFilterNode(context *BaseAudioContext, options *BiquadFilterOptions) (_result *BiquadFilterNode)

func (*BiquadFilterNode) Detune Uses

func (_this *BiquadFilterNode) Detune() *AudioParam

Detune returning attribute 'detune' with type AudioParam (idl: AudioParam).

func (*BiquadFilterNode) Frequency Uses

func (_this *BiquadFilterNode) Frequency() *AudioParam

Frequency returning attribute 'frequency' with type AudioParam (idl: AudioParam).

func (*BiquadFilterNode) Gain Uses

func (_this *BiquadFilterNode) Gain() *AudioParam

Gain returning attribute 'gain' with type AudioParam (idl: AudioParam).

func (*BiquadFilterNode) GetFrequencyResponse Uses

func (_this *BiquadFilterNode) GetFrequencyResponse(frequencyHz *javascript.Float32Array, magResponse *javascript.Float32Array, phaseResponse *javascript.Float32Array)

func (*BiquadFilterNode) Q Uses

func (_this *BiquadFilterNode) Q() *AudioParam

Q returning attribute 'Q' with type AudioParam (idl: AudioParam).

func (*BiquadFilterNode) SetType Uses

func (_this *BiquadFilterNode) SetType(value BiquadFilterType)

SetType setting attribute 'type' with type BiquadFilterType (idl: BiquadFilterType).

func (*BiquadFilterNode) Type Uses

func (_this *BiquadFilterNode) Type() BiquadFilterType

Type returning attribute 'type' with type BiquadFilterType (idl: BiquadFilterType).

type BiquadFilterOptions Uses

type BiquadFilterOptions struct {
    ChannelCount          uint
    ChannelCountMode      ChannelCountMode
    ChannelInterpretation ChannelInterpretation
    Type                  BiquadFilterType
    Q                     float32
    Detune                float32
    Frequency             float32
    Gain                  float32
}

dictionary: BiquadFilterOptions

func BiquadFilterOptionsFromJS Uses

func BiquadFilterOptionsFromJS(value js.Wrapper) *BiquadFilterOptions

BiquadFilterOptionsFromJS is allocating a new BiquadFilterOptions object and copy all values from input javascript object

func (*BiquadFilterOptions) JSValue Uses

func (_this *BiquadFilterOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type BiquadFilterType Uses

type BiquadFilterType int

enum: BiquadFilterType

const (
    LowpassBiquadFilterType BiquadFilterType = iota
    HighpassBiquadFilterType
    BandpassBiquadFilterType
    LowshelfBiquadFilterType
    HighshelfBiquadFilterType
    PeakingBiquadFilterType
    NotchBiquadFilterType
    AllpassBiquadFilterType
)

func BiquadFilterTypeFromJS Uses

func BiquadFilterTypeFromJS(value js.Value) BiquadFilterType

BiquadFilterTypeFromJS is converting a javascript value into a BiquadFilterType enum value.

func (*BiquadFilterType) JSValue Uses

func (this *BiquadFilterType) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (BiquadFilterType) Value Uses

func (this BiquadFilterType) Value() string

Value is converting this into javascript defined string value

type ChannelCountMode Uses

type ChannelCountMode int

enum: ChannelCountMode

const (
    MaxChannelCountMode ChannelCountMode = iota
    ClampedMaxChannelCountMode
    ExplicitChannelCountMode
)

func ChannelCountModeFromJS Uses

func ChannelCountModeFromJS(value js.Value) ChannelCountMode

ChannelCountModeFromJS is converting a javascript value into a ChannelCountMode enum value.

func (*ChannelCountMode) JSValue Uses

func (this *ChannelCountMode) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (ChannelCountMode) Value Uses

func (this ChannelCountMode) Value() string

Value is converting this into javascript defined string value

type ChannelInterpretation Uses

type ChannelInterpretation int

enum: ChannelInterpretation

const (
    SpeakersChannelInterpretation ChannelInterpretation = iota
    DiscreteChannelInterpretation
)

func ChannelInterpretationFromJS Uses

func ChannelInterpretationFromJS(value js.Value) ChannelInterpretation

ChannelInterpretationFromJS is converting a javascript value into a ChannelInterpretation enum value.

func (*ChannelInterpretation) JSValue Uses

func (this *ChannelInterpretation) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (ChannelInterpretation) Value Uses

func (this ChannelInterpretation) Value() string

Value is converting this into javascript defined string value

type ChannelMergerNode Uses

type ChannelMergerNode struct {
    AudioNode
}

class: ChannelMergerNode

func ChannelMergerNodeFromJS Uses

func ChannelMergerNodeFromJS(value js.Wrapper) *ChannelMergerNode

ChannelMergerNodeFromJS is casting a js.Wrapper into ChannelMergerNode.

func NewChannelMergerNode Uses

func NewChannelMergerNode(context *BaseAudioContext, options *ChannelMergerOptions) (_result *ChannelMergerNode)

type ChannelMergerOptions Uses

type ChannelMergerOptions struct {
    ChannelCount          uint
    ChannelCountMode      ChannelCountMode
    ChannelInterpretation ChannelInterpretation
    NumberOfInputs        uint
}

dictionary: ChannelMergerOptions

func ChannelMergerOptionsFromJS Uses

func ChannelMergerOptionsFromJS(value js.Wrapper) *ChannelMergerOptions

ChannelMergerOptionsFromJS is allocating a new ChannelMergerOptions object and copy all values from input javascript object

func (*ChannelMergerOptions) JSValue Uses

func (_this *ChannelMergerOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type ChannelSplitterNode Uses

type ChannelSplitterNode struct {
    AudioNode
}

class: ChannelSplitterNode

func ChannelSplitterNodeFromJS Uses

func ChannelSplitterNodeFromJS(value js.Wrapper) *ChannelSplitterNode

ChannelSplitterNodeFromJS is casting a js.Wrapper into ChannelSplitterNode.

func NewChannelSplitterNode Uses

func NewChannelSplitterNode(context *BaseAudioContext, options *ChannelSplitterOptions) (_result *ChannelSplitterNode)

type ChannelSplitterOptions Uses

type ChannelSplitterOptions struct {
    ChannelCount          uint
    ChannelCountMode      ChannelCountMode
    ChannelInterpretation ChannelInterpretation
    NumberOfOutputs       uint
}

dictionary: ChannelSplitterOptions

func ChannelSplitterOptionsFromJS Uses

func ChannelSplitterOptionsFromJS(value js.Wrapper) *ChannelSplitterOptions

ChannelSplitterOptionsFromJS is allocating a new ChannelSplitterOptions object and copy all values from input javascript object

func (*ChannelSplitterOptions) JSValue Uses

func (_this *ChannelSplitterOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type ConstantSourceNode Uses

type ConstantSourceNode struct {
    AudioScheduledSourceNode
}

class: ConstantSourceNode

func ConstantSourceNodeFromJS Uses

func ConstantSourceNodeFromJS(value js.Wrapper) *ConstantSourceNode

ConstantSourceNodeFromJS is casting a js.Wrapper into ConstantSourceNode.

func NewConstantSourceNode Uses

func NewConstantSourceNode(context *BaseAudioContext, options *ConstantSourceOptions) (_result *ConstantSourceNode)

func (*ConstantSourceNode) Offset Uses

func (_this *ConstantSourceNode) Offset() *AudioParam

Offset returning attribute 'offset' with type AudioParam (idl: AudioParam).

type ConstantSourceOptions Uses

type ConstantSourceOptions struct {
    Offset float32
}

dictionary: ConstantSourceOptions

func ConstantSourceOptionsFromJS Uses

func ConstantSourceOptionsFromJS(value js.Wrapper) *ConstantSourceOptions

ConstantSourceOptionsFromJS is allocating a new ConstantSourceOptions object and copy all values from input javascript object

func (*ConstantSourceOptions) JSValue Uses

func (_this *ConstantSourceOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type ConvolverNode Uses

type ConvolverNode struct {
    AudioNode
}

class: ConvolverNode

func ConvolverNodeFromJS Uses

func ConvolverNodeFromJS(value js.Wrapper) *ConvolverNode

ConvolverNodeFromJS is casting a js.Wrapper into ConvolverNode.

func NewConvolverNode Uses

func NewConvolverNode(context *BaseAudioContext, options *ConvolverOptions) (_result *ConvolverNode)

func (*ConvolverNode) Buffer Uses

func (_this *ConvolverNode) Buffer() *AudioBuffer

Buffer returning attribute 'buffer' with type AudioBuffer (idl: AudioBuffer).

func (*ConvolverNode) Normalize Uses

func (_this *ConvolverNode) Normalize() bool

Normalize returning attribute 'normalize' with type bool (idl: boolean).

func (*ConvolverNode) SetBuffer Uses

func (_this *ConvolverNode) SetBuffer(value *AudioBuffer)

SetBuffer setting attribute 'buffer' with type AudioBuffer (idl: AudioBuffer).

func (*ConvolverNode) SetNormalize Uses

func (_this *ConvolverNode) SetNormalize(value bool)

SetNormalize setting attribute 'normalize' with type bool (idl: boolean).

type ConvolverOptions Uses

type ConvolverOptions struct {
    ChannelCount          uint
    ChannelCountMode      ChannelCountMode
    ChannelInterpretation ChannelInterpretation
    Buffer                *AudioBuffer
    DisableNormalization  bool
}

dictionary: ConvolverOptions

func ConvolverOptionsFromJS Uses

func ConvolverOptionsFromJS(value js.Wrapper) *ConvolverOptions

ConvolverOptionsFromJS is allocating a new ConvolverOptions object and copy all values from input javascript object

func (*ConvolverOptions) JSValue Uses

func (_this *ConvolverOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type DecodeErrorCallback Uses

type DecodeErrorCallback js.Func

DecodeErrorCallback is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func DecodeErrorCallbackToJS Uses

func DecodeErrorCallbackToJS(callback DecodeErrorCallbackFunc) *DecodeErrorCallback

type DecodeErrorCallbackFunc Uses

type DecodeErrorCallbackFunc func(_error *domcore.DOMException)

callback: DecodeErrorCallback

func DecodeErrorCallbackFromJS Uses

func DecodeErrorCallbackFromJS(_value js.Value) DecodeErrorCallbackFunc

type DecodeSuccessCallback Uses

type DecodeSuccessCallback js.Func

DecodeSuccessCallback is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func DecodeSuccessCallbackToJS Uses

func DecodeSuccessCallbackToJS(callback DecodeSuccessCallbackFunc) *DecodeSuccessCallback

type DecodeSuccessCallbackFunc Uses

type DecodeSuccessCallbackFunc func(decodedData *AudioBuffer)

callback: DecodeSuccessCallback

func DecodeSuccessCallbackFromJS Uses

func DecodeSuccessCallbackFromJS(_value js.Value) DecodeSuccessCallbackFunc

type DelayNode Uses

type DelayNode struct {
    AudioNode
}

class: DelayNode

func DelayNodeFromJS Uses

func DelayNodeFromJS(value js.Wrapper) *DelayNode

DelayNodeFromJS is casting a js.Wrapper into DelayNode.

func NewDelayNode Uses

func NewDelayNode(context *BaseAudioContext, options *DelayOptions) (_result *DelayNode)

func (*DelayNode) DelayTime Uses

func (_this *DelayNode) DelayTime() *AudioParam

DelayTime returning attribute 'delayTime' with type AudioParam (idl: AudioParam).

type DelayOptions Uses

type DelayOptions struct {
    ChannelCount          uint
    ChannelCountMode      ChannelCountMode
    ChannelInterpretation ChannelInterpretation
    MaxDelayTime          float64
    DelayTime             float64
}

dictionary: DelayOptions

func DelayOptionsFromJS Uses

func DelayOptionsFromJS(value js.Wrapper) *DelayOptions

DelayOptionsFromJS is allocating a new DelayOptions object and copy all values from input javascript object

func (*DelayOptions) JSValue Uses

func (_this *DelayOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type DistanceModelType Uses

type DistanceModelType int

enum: DistanceModelType

const (
    LinearDistanceModelType DistanceModelType = iota
    InverseDistanceModelType
    ExponentialDistanceModelType
)

func DistanceModelTypeFromJS Uses

func DistanceModelTypeFromJS(value js.Value) DistanceModelType

DistanceModelTypeFromJS is converting a javascript value into a DistanceModelType enum value.

func (*DistanceModelType) JSValue Uses

func (this *DistanceModelType) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (DistanceModelType) Value Uses

func (this DistanceModelType) Value() string

Value is converting this into javascript defined string value

type DynamicsCompressorNode Uses

type DynamicsCompressorNode struct {
    AudioNode
}

class: DynamicsCompressorNode

func DynamicsCompressorNodeFromJS Uses

func DynamicsCompressorNodeFromJS(value js.Wrapper) *DynamicsCompressorNode

DynamicsCompressorNodeFromJS is casting a js.Wrapper into DynamicsCompressorNode.

func NewDynamicsCompressorNode Uses

func NewDynamicsCompressorNode(context *BaseAudioContext, options *DynamicsCompressorOptions) (_result *DynamicsCompressorNode)

func (*DynamicsCompressorNode) Attack Uses

func (_this *DynamicsCompressorNode) Attack() *AudioParam

Attack returning attribute 'attack' with type AudioParam (idl: AudioParam).

func (*DynamicsCompressorNode) Knee Uses

func (_this *DynamicsCompressorNode) Knee() *AudioParam

Knee returning attribute 'knee' with type AudioParam (idl: AudioParam).

func (*DynamicsCompressorNode) Ratio Uses

func (_this *DynamicsCompressorNode) Ratio() *AudioParam

Ratio returning attribute 'ratio' with type AudioParam (idl: AudioParam).

func (*DynamicsCompressorNode) Reduction Uses

func (_this *DynamicsCompressorNode) Reduction() float32

Reduction returning attribute 'reduction' with type float32 (idl: float).

func (*DynamicsCompressorNode) Release Uses

func (_this *DynamicsCompressorNode) Release() *AudioParam

Release returning attribute 'release' with type AudioParam (idl: AudioParam).

func (*DynamicsCompressorNode) Threshold Uses

func (_this *DynamicsCompressorNode) Threshold() *AudioParam

Threshold returning attribute 'threshold' with type AudioParam (idl: AudioParam).

type DynamicsCompressorOptions Uses

type DynamicsCompressorOptions struct {
    ChannelCount          uint
    ChannelCountMode      ChannelCountMode
    ChannelInterpretation ChannelInterpretation
    Attack                float32
    Knee                  float32
    Ratio                 float32
    Release               float32
    Threshold             float32
}

dictionary: DynamicsCompressorOptions

func DynamicsCompressorOptionsFromJS Uses

func DynamicsCompressorOptionsFromJS(value js.Wrapper) *DynamicsCompressorOptions

DynamicsCompressorOptionsFromJS is allocating a new DynamicsCompressorOptions object and copy all values from input javascript object

func (*DynamicsCompressorOptions) JSValue Uses

func (_this *DynamicsCompressorOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type GainNode Uses

type GainNode struct {
    AudioNode
}

class: GainNode

func GainNodeFromJS Uses

func GainNodeFromJS(value js.Wrapper) *GainNode

GainNodeFromJS is casting a js.Wrapper into GainNode.

func NewGainNode Uses

func NewGainNode(context *BaseAudioContext, options *GainOptions) (_result *GainNode)

func (*GainNode) Gain Uses

func (_this *GainNode) Gain() *AudioParam

Gain returning attribute 'gain' with type AudioParam (idl: AudioParam).

type GainOptions Uses

type GainOptions struct {
    ChannelCount          uint
    ChannelCountMode      ChannelCountMode
    ChannelInterpretation ChannelInterpretation
    Gain                  float32
}

dictionary: GainOptions

func GainOptionsFromJS Uses

func GainOptionsFromJS(value js.Wrapper) *GainOptions

GainOptionsFromJS is allocating a new GainOptions object and copy all values from input javascript object

func (*GainOptions) JSValue Uses

func (_this *GainOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type IIRFilterNode Uses

type IIRFilterNode struct {
    AudioNode
}

class: IIRFilterNode

func IIRFilterNodeFromJS Uses

func IIRFilterNodeFromJS(value js.Wrapper) *IIRFilterNode

IIRFilterNodeFromJS is casting a js.Wrapper into IIRFilterNode.

func NewIIRFilterNode Uses

func NewIIRFilterNode(context *BaseAudioContext, options *IIRFilterOptions) (_result *IIRFilterNode)

func (*IIRFilterNode) GetFrequencyResponse Uses

func (_this *IIRFilterNode) GetFrequencyResponse(frequencyHz *javascript.Float32Array, magResponse *javascript.Float32Array, phaseResponse *javascript.Float32Array)

type IIRFilterOptions Uses

type IIRFilterOptions struct {
    ChannelCount          uint
    ChannelCountMode      ChannelCountMode
    ChannelInterpretation ChannelInterpretation
    Feedforward           []float64
    Feedback              []float64
}

dictionary: IIRFilterOptions

func IIRFilterOptionsFromJS Uses

func IIRFilterOptionsFromJS(value js.Wrapper) *IIRFilterOptions

IIRFilterOptionsFromJS is allocating a new IIRFilterOptions object and copy all values from input javascript object

func (*IIRFilterOptions) JSValue Uses

func (_this *IIRFilterOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type MediaElementAudioSourceNode Uses

type MediaElementAudioSourceNode struct {
    AudioNode
}

class: MediaElementAudioSourceNode

func MediaElementAudioSourceNodeFromJS Uses

func MediaElementAudioSourceNodeFromJS(value js.Wrapper) *MediaElementAudioSourceNode

MediaElementAudioSourceNodeFromJS is casting a js.Wrapper into MediaElementAudioSourceNode.

func NewMediaElementAudioSourceNode Uses

func NewMediaElementAudioSourceNode(context *AudioContext, options *MediaElementAudioSourceOptions) (_result *MediaElementAudioSourceNode)

func (*MediaElementAudioSourceNode) MediaElement Uses

func (_this *MediaElementAudioSourceNode) MediaElement() *media.HTMLMediaElement

MediaElement returning attribute 'mediaElement' with type media.HTMLMediaElement (idl: HTMLMediaElement).

type MediaElementAudioSourceOptions Uses

type MediaElementAudioSourceOptions struct {
    MediaElement *media.HTMLMediaElement
}

dictionary: MediaElementAudioSourceOptions

func MediaElementAudioSourceOptionsFromJS Uses

func MediaElementAudioSourceOptionsFromJS(value js.Wrapper) *MediaElementAudioSourceOptions

MediaElementAudioSourceOptionsFromJS is allocating a new MediaElementAudioSourceOptions object and copy all values from input javascript object

func (*MediaElementAudioSourceOptions) JSValue Uses

func (_this *MediaElementAudioSourceOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type MediaStreamAudioDestinationNode Uses

type MediaStreamAudioDestinationNode struct {
    AudioNode
}

class: MediaStreamAudioDestinationNode

func MediaStreamAudioDestinationNodeFromJS Uses

func MediaStreamAudioDestinationNodeFromJS(value js.Wrapper) *MediaStreamAudioDestinationNode

MediaStreamAudioDestinationNodeFromJS is casting a js.Wrapper into MediaStreamAudioDestinationNode.

func NewMediaStreamAudioDestinationNode Uses

func NewMediaStreamAudioDestinationNode(context *AudioContext, options *AudioNodeOptions) (_result *MediaStreamAudioDestinationNode)

func (*MediaStreamAudioDestinationNode) Stream Uses

func (_this *MediaStreamAudioDestinationNode) Stream() *local.MediaStream

Stream returning attribute 'stream' with type local.MediaStream (idl: MediaStream).

type MediaStreamAudioSourceNode Uses

type MediaStreamAudioSourceNode struct {
    AudioNode
}

class: MediaStreamAudioSourceNode

func MediaStreamAudioSourceNodeFromJS Uses

func MediaStreamAudioSourceNodeFromJS(value js.Wrapper) *MediaStreamAudioSourceNode

MediaStreamAudioSourceNodeFromJS is casting a js.Wrapper into MediaStreamAudioSourceNode.

func NewMediaStreamAudioSourceNode Uses

func NewMediaStreamAudioSourceNode(context *AudioContext, options *MediaStreamAudioSourceOptions) (_result *MediaStreamAudioSourceNode)

func (*MediaStreamAudioSourceNode) MediaStream Uses

func (_this *MediaStreamAudioSourceNode) MediaStream() *local.MediaStream

MediaStream returning attribute 'mediaStream' with type local.MediaStream (idl: MediaStream).

type MediaStreamAudioSourceOptions Uses

type MediaStreamAudioSourceOptions struct {
    MediaStream *local.MediaStream
}

dictionary: MediaStreamAudioSourceOptions

func MediaStreamAudioSourceOptionsFromJS Uses

func MediaStreamAudioSourceOptionsFromJS(value js.Wrapper) *MediaStreamAudioSourceOptions

MediaStreamAudioSourceOptionsFromJS is allocating a new MediaStreamAudioSourceOptions object and copy all values from input javascript object

func (*MediaStreamAudioSourceOptions) JSValue Uses

func (_this *MediaStreamAudioSourceOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type MediaStreamTrackAudioSourceNode Uses

type MediaStreamTrackAudioSourceNode struct {
    AudioNode
}

class: MediaStreamTrackAudioSourceNode

func MediaStreamTrackAudioSourceNodeFromJS Uses

func MediaStreamTrackAudioSourceNodeFromJS(value js.Wrapper) *MediaStreamTrackAudioSourceNode

MediaStreamTrackAudioSourceNodeFromJS is casting a js.Wrapper into MediaStreamTrackAudioSourceNode.

func NewMediaStreamTrackAudioSourceNode Uses

func NewMediaStreamTrackAudioSourceNode(context *AudioContext, options *MediaStreamTrackAudioSourceOptions) (_result *MediaStreamTrackAudioSourceNode)

type MediaStreamTrackAudioSourceOptions Uses

type MediaStreamTrackAudioSourceOptions struct {
    MediaStreamTrack *local.MediaStreamTrack
}

dictionary: MediaStreamTrackAudioSourceOptions

func MediaStreamTrackAudioSourceOptionsFromJS Uses

func MediaStreamTrackAudioSourceOptionsFromJS(value js.Wrapper) *MediaStreamTrackAudioSourceOptions

MediaStreamTrackAudioSourceOptionsFromJS is allocating a new MediaStreamTrackAudioSourceOptions object and copy all values from input javascript object

func (*MediaStreamTrackAudioSourceOptions) JSValue Uses

func (_this *MediaStreamTrackAudioSourceOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type OfflineAudioCompletionEvent Uses

type OfflineAudioCompletionEvent struct {
    domcore.Event
}

class: OfflineAudioCompletionEvent

func NewOfflineAudioCompletionEvent Uses

func NewOfflineAudioCompletionEvent(_type string, eventInitDict *OfflineAudioCompletionEventInit) (_result *OfflineAudioCompletionEvent)

func OfflineAudioCompletionEventFromJS Uses

func OfflineAudioCompletionEventFromJS(value js.Wrapper) *OfflineAudioCompletionEvent

OfflineAudioCompletionEventFromJS is casting a js.Wrapper into OfflineAudioCompletionEvent.

func (*OfflineAudioCompletionEvent) RenderedBuffer Uses

func (_this *OfflineAudioCompletionEvent) RenderedBuffer() *AudioBuffer

RenderedBuffer returning attribute 'renderedBuffer' with type AudioBuffer (idl: AudioBuffer).

type OfflineAudioCompletionEventInit Uses

type OfflineAudioCompletionEventInit struct {
    Bubbles        bool
    Cancelable     bool
    Composed       bool
    RenderedBuffer *AudioBuffer
}

dictionary: OfflineAudioCompletionEventInit

func OfflineAudioCompletionEventInitFromJS Uses

func OfflineAudioCompletionEventInitFromJS(value js.Wrapper) *OfflineAudioCompletionEventInit

OfflineAudioCompletionEventInitFromJS is allocating a new OfflineAudioCompletionEventInit object and copy all values from input javascript object

func (*OfflineAudioCompletionEventInit) JSValue Uses

func (_this *OfflineAudioCompletionEventInit) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type OfflineAudioContext Uses

type OfflineAudioContext struct {
    BaseAudioContext
}

class: OfflineAudioContext

func NewOfflineAudioContext Uses

func NewOfflineAudioContext(numberOfChannels uint, length uint, sampleRate float32) (_result *OfflineAudioContext)

func OfflineAudioContextFromJS Uses

func OfflineAudioContextFromJS(value js.Wrapper) *OfflineAudioContext

OfflineAudioContextFromJS is casting a js.Wrapper into OfflineAudioContext.

func (*OfflineAudioContext) AddEventComplete Uses

func (_this *OfflineAudioContext) AddEventComplete(listener func(event *OfflineAudioCompletionEvent, currentTarget *OfflineAudioContext)) js.Func

AddComplete is adding doing AddEventListener for 'Complete' on target. This method is returning allocated javascript function that need to be released.

func (*OfflineAudioContext) Length Uses

func (_this *OfflineAudioContext) Length() uint

Length returning attribute 'length' with type uint (idl: unsigned long).

func (*OfflineAudioContext) OnComplete Uses

func (_this *OfflineAudioContext) OnComplete() domcore.EventHandlerFunc

OnComplete returning attribute 'oncomplete' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*OfflineAudioContext) Resume Uses

func (_this *OfflineAudioContext) Resume() (_result *javascript.PromiseVoid)

func (*OfflineAudioContext) SetOnComplete Uses

func (_this *OfflineAudioContext) SetOnComplete(listener func(event *OfflineAudioCompletionEvent, currentTarget *OfflineAudioContext)) js.Func

SetOnComplete is assigning a function to 'oncomplete'. This This method is returning allocated javascript function that need to be released.

func (*OfflineAudioContext) StartRendering Uses

func (_this *OfflineAudioContext) StartRendering() (_result *PromiseAudioBuffer)

func (*OfflineAudioContext) Suspend Uses

func (_this *OfflineAudioContext) Suspend(suspendTime float64) (_result *javascript.PromiseVoid)

type OfflineAudioContextOptions Uses

type OfflineAudioContextOptions struct {
    NumberOfChannels uint
    Length           uint
    SampleRate       float32
}

dictionary: OfflineAudioContextOptions

func OfflineAudioContextOptionsFromJS Uses

func OfflineAudioContextOptionsFromJS(value js.Wrapper) *OfflineAudioContextOptions

OfflineAudioContextOptionsFromJS is allocating a new OfflineAudioContextOptions object and copy all values from input javascript object

func (*OfflineAudioContextOptions) JSValue Uses

func (_this *OfflineAudioContextOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type OscillatorNode Uses

type OscillatorNode struct {
    AudioScheduledSourceNode
}

class: OscillatorNode

func NewOscillatorNode Uses

func NewOscillatorNode(context *BaseAudioContext, options *OscillatorOptions) (_result *OscillatorNode)

func OscillatorNodeFromJS Uses

func OscillatorNodeFromJS(value js.Wrapper) *OscillatorNode

OscillatorNodeFromJS is casting a js.Wrapper into OscillatorNode.

func (*OscillatorNode) Detune Uses

func (_this *OscillatorNode) Detune() *AudioParam

Detune returning attribute 'detune' with type AudioParam (idl: AudioParam).

func (*OscillatorNode) Frequency Uses

func (_this *OscillatorNode) Frequency() *AudioParam

Frequency returning attribute 'frequency' with type AudioParam (idl: AudioParam).

func (*OscillatorNode) SetPeriodicWave Uses

func (_this *OscillatorNode) SetPeriodicWave(periodicWave *PeriodicWave)

func (*OscillatorNode) SetType Uses

func (_this *OscillatorNode) SetType(value OscillatorType)

SetType setting attribute 'type' with type OscillatorType (idl: OscillatorType).

func (*OscillatorNode) Type Uses

func (_this *OscillatorNode) Type() OscillatorType

Type returning attribute 'type' with type OscillatorType (idl: OscillatorType).

type OscillatorOptions Uses

type OscillatorOptions struct {
    ChannelCount          uint
    ChannelCountMode      ChannelCountMode
    ChannelInterpretation ChannelInterpretation
    Type                  OscillatorType
    Frequency             float32
    Detune                float32
    PeriodicWave          *PeriodicWave
}

dictionary: OscillatorOptions

func OscillatorOptionsFromJS Uses

func OscillatorOptionsFromJS(value js.Wrapper) *OscillatorOptions

OscillatorOptionsFromJS is allocating a new OscillatorOptions object and copy all values from input javascript object

func (*OscillatorOptions) JSValue Uses

func (_this *OscillatorOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type OscillatorType Uses

type OscillatorType int

enum: OscillatorType

const (
    SineOscillatorType OscillatorType = iota
    SquareOscillatorType
    SawtoothOscillatorType
    TriangleOscillatorType
    CustomOscillatorType
)

func OscillatorTypeFromJS Uses

func OscillatorTypeFromJS(value js.Value) OscillatorType

OscillatorTypeFromJS is converting a javascript value into a OscillatorType enum value.

func (*OscillatorType) JSValue Uses

func (this *OscillatorType) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (OscillatorType) Value Uses

func (this OscillatorType) Value() string

Value is converting this into javascript defined string value

type OverSampleType Uses

type OverSampleType int

enum: OverSampleType

const (
    NoneOverSampleType OverSampleType = iota
)

func OverSampleTypeFromJS Uses

func OverSampleTypeFromJS(value js.Value) OverSampleType

OverSampleTypeFromJS is converting a javascript value into a OverSampleType enum value.

func (*OverSampleType) JSValue Uses

func (this *OverSampleType) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (OverSampleType) Value Uses

func (this OverSampleType) Value() string

Value is converting this into javascript defined string value

type PannerNode Uses

type PannerNode struct {
    AudioNode
}

class: PannerNode

func NewPannerNode Uses

func NewPannerNode(context *BaseAudioContext, options *PannerOptions) (_result *PannerNode)

func PannerNodeFromJS Uses

func PannerNodeFromJS(value js.Wrapper) *PannerNode

PannerNodeFromJS is casting a js.Wrapper into PannerNode.

func (*PannerNode) ConeInnerAngle Uses

func (_this *PannerNode) ConeInnerAngle() float64

ConeInnerAngle returning attribute 'coneInnerAngle' with type float64 (idl: double).

func (*PannerNode) ConeOuterAngle Uses

func (_this *PannerNode) ConeOuterAngle() float64

ConeOuterAngle returning attribute 'coneOuterAngle' with type float64 (idl: double).

func (*PannerNode) ConeOuterGain Uses

func (_this *PannerNode) ConeOuterGain() float64

ConeOuterGain returning attribute 'coneOuterGain' with type float64 (idl: double).

func (*PannerNode) DistanceModel Uses

func (_this *PannerNode) DistanceModel() DistanceModelType

DistanceModel returning attribute 'distanceModel' with type DistanceModelType (idl: DistanceModelType).

func (*PannerNode) MaxDistance Uses

func (_this *PannerNode) MaxDistance() float64

MaxDistance returning attribute 'maxDistance' with type float64 (idl: double).

func (*PannerNode) OrientationX Uses

func (_this *PannerNode) OrientationX() *AudioParam

OrientationX returning attribute 'orientationX' with type AudioParam (idl: AudioParam).

func (*PannerNode) OrientationY Uses

func (_this *PannerNode) OrientationY() *AudioParam

OrientationY returning attribute 'orientationY' with type AudioParam (idl: AudioParam).

func (*PannerNode) OrientationZ Uses

func (_this *PannerNode) OrientationZ() *AudioParam

OrientationZ returning attribute 'orientationZ' with type AudioParam (idl: AudioParam).

func (*PannerNode) PanningModel Uses

func (_this *PannerNode) PanningModel() PanningModelType

PanningModel returning attribute 'panningModel' with type PanningModelType (idl: PanningModelType).

func (*PannerNode) PositionX Uses

func (_this *PannerNode) PositionX() *AudioParam

PositionX returning attribute 'positionX' with type AudioParam (idl: AudioParam).

func (*PannerNode) PositionY Uses

func (_this *PannerNode) PositionY() *AudioParam

PositionY returning attribute 'positionY' with type AudioParam (idl: AudioParam).

func (*PannerNode) PositionZ Uses

func (_this *PannerNode) PositionZ() *AudioParam

PositionZ returning attribute 'positionZ' with type AudioParam (idl: AudioParam).

func (*PannerNode) RefDistance Uses

func (_this *PannerNode) RefDistance() float64

RefDistance returning attribute 'refDistance' with type float64 (idl: double).

func (*PannerNode) RolloffFactor Uses

func (_this *PannerNode) RolloffFactor() float64

RolloffFactor returning attribute 'rolloffFactor' with type float64 (idl: double).

func (*PannerNode) SetConeInnerAngle Uses

func (_this *PannerNode) SetConeInnerAngle(value float64)

SetConeInnerAngle setting attribute 'coneInnerAngle' with type float64 (idl: double).

func (*PannerNode) SetConeOuterAngle Uses

func (_this *PannerNode) SetConeOuterAngle(value float64)

SetConeOuterAngle setting attribute 'coneOuterAngle' with type float64 (idl: double).

func (*PannerNode) SetConeOuterGain Uses

func (_this *PannerNode) SetConeOuterGain(value float64)

SetConeOuterGain setting attribute 'coneOuterGain' with type float64 (idl: double).

func (*PannerNode) SetDistanceModel Uses

func (_this *PannerNode) SetDistanceModel(value DistanceModelType)

SetDistanceModel setting attribute 'distanceModel' with type DistanceModelType (idl: DistanceModelType).

func (*PannerNode) SetMaxDistance Uses

func (_this *PannerNode) SetMaxDistance(value float64)

SetMaxDistance setting attribute 'maxDistance' with type float64 (idl: double).

func (*PannerNode) SetOrientation Uses

func (_this *PannerNode) SetOrientation(x float32, y float32, z float32)

func (*PannerNode) SetPanningModel Uses

func (_this *PannerNode) SetPanningModel(value PanningModelType)

SetPanningModel setting attribute 'panningModel' with type PanningModelType (idl: PanningModelType).

func (*PannerNode) SetPosition Uses

func (_this *PannerNode) SetPosition(x float32, y float32, z float32)

func (*PannerNode) SetRefDistance Uses

func (_this *PannerNode) SetRefDistance(value float64)

SetRefDistance setting attribute 'refDistance' with type float64 (idl: double).

func (*PannerNode) SetRolloffFactor Uses

func (_this *PannerNode) SetRolloffFactor(value float64)

SetRolloffFactor setting attribute 'rolloffFactor' with type float64 (idl: double).

type PannerOptions Uses

type PannerOptions struct {
    ChannelCount          uint
    ChannelCountMode      ChannelCountMode
    ChannelInterpretation ChannelInterpretation
    PanningModel          PanningModelType
    DistanceModel         DistanceModelType
    PositionX             float32
    PositionY             float32
    PositionZ             float32
    OrientationX          float32
    OrientationY          float32
    OrientationZ          float32
    RefDistance           float64
    MaxDistance           float64
    RolloffFactor         float64
    ConeInnerAngle        float64
    ConeOuterAngle        float64
    ConeOuterGain         float64
}

dictionary: PannerOptions

func PannerOptionsFromJS Uses

func PannerOptionsFromJS(value js.Wrapper) *PannerOptions

PannerOptionsFromJS is allocating a new PannerOptions object and copy all values from input javascript object

func (*PannerOptions) JSValue Uses

func (_this *PannerOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type PanningModelType Uses

type PanningModelType int

enum: PanningModelType

const (
    EqualpowerPanningModelType PanningModelType = iota
    HRTFPanningModelType
)

func PanningModelTypeFromJS Uses

func PanningModelTypeFromJS(value js.Value) PanningModelType

PanningModelTypeFromJS is converting a javascript value into a PanningModelType enum value.

func (*PanningModelType) JSValue Uses

func (this *PanningModelType) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (PanningModelType) Value Uses

func (this PanningModelType) Value() string

Value is converting this into javascript defined string value

type PeriodicWave Uses

type PeriodicWave struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: PeriodicWave

func NewPeriodicWave Uses

func NewPeriodicWave(context *BaseAudioContext, options *PeriodicWaveOptions) (_result *PeriodicWave)

func PeriodicWaveFromJS Uses

func PeriodicWaveFromJS(value js.Wrapper) *PeriodicWave

PeriodicWaveFromJS is casting a js.Wrapper into PeriodicWave.

func (*PeriodicWave) JSValue Uses

func (_this *PeriodicWave) JSValue() js.Value

type PeriodicWaveConstraints Uses

type PeriodicWaveConstraints struct {
    DisableNormalization bool
}

dictionary: PeriodicWaveConstraints

func PeriodicWaveConstraintsFromJS Uses

func PeriodicWaveConstraintsFromJS(value js.Wrapper) *PeriodicWaveConstraints

PeriodicWaveConstraintsFromJS is allocating a new PeriodicWaveConstraints object and copy all values from input javascript object

func (*PeriodicWaveConstraints) JSValue Uses

func (_this *PeriodicWaveConstraints) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type PeriodicWaveOptions Uses

type PeriodicWaveOptions struct {
    DisableNormalization bool
    Real                 []float32
    Imag                 []float32
}

dictionary: PeriodicWaveOptions

func PeriodicWaveOptionsFromJS Uses

func PeriodicWaveOptionsFromJS(value js.Wrapper) *PeriodicWaveOptions

PeriodicWaveOptionsFromJS is allocating a new PeriodicWaveOptions object and copy all values from input javascript object

func (*PeriodicWaveOptions) JSValue Uses

func (_this *PeriodicWaveOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type PromiseAudioBuffer Uses

type PromiseAudioBuffer struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: Promise

func PromiseAudioBufferFromJS Uses

func PromiseAudioBufferFromJS(value js.Wrapper) *PromiseAudioBuffer

PromiseAudioBufferFromJS is casting a js.Wrapper into PromiseAudioBuffer.

func (*PromiseAudioBuffer) Catch Uses

func (_this *PromiseAudioBuffer) Catch(onRejected *PromiseAudioBufferOnRejected) (_result *PromiseAudioBuffer)

func (*PromiseAudioBuffer) Finally Uses

func (_this *PromiseAudioBuffer) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseAudioBuffer)

func (*PromiseAudioBuffer) JSValue Uses

func (_this *PromiseAudioBuffer) JSValue() js.Value

func (*PromiseAudioBuffer) Then Uses

func (_this *PromiseAudioBuffer) Then(onFulfilled *PromiseAudioBufferOnFulfilled, onRejected *PromiseAudioBufferOnRejected) (_result *PromiseAudioBuffer)

type PromiseAudioBufferOnFulfilled Uses

type PromiseAudioBufferOnFulfilled js.Func

PromiseAudioBufferOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseAudioBufferOnFulfilledToJS Uses

func PromiseAudioBufferOnFulfilledToJS(callback PromiseAudioBufferOnFulfilledFunc) *PromiseAudioBufferOnFulfilled

type PromiseAudioBufferOnFulfilledFunc Uses

type PromiseAudioBufferOnFulfilledFunc func(value *AudioBuffer)

callback: PromiseTemplateOnFulfilled

func PromiseAudioBufferOnFulfilledFromJS Uses

func PromiseAudioBufferOnFulfilledFromJS(_value js.Value) PromiseAudioBufferOnFulfilledFunc

type PromiseAudioBufferOnRejected Uses

type PromiseAudioBufferOnRejected js.Func

PromiseAudioBufferOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseAudioBufferOnRejectedToJS Uses

func PromiseAudioBufferOnRejectedToJS(callback PromiseAudioBufferOnRejectedFunc) *PromiseAudioBufferOnRejected

type PromiseAudioBufferOnRejectedFunc Uses

type PromiseAudioBufferOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseAudioBufferOnRejectedFromJS Uses

func PromiseAudioBufferOnRejectedFromJS(_value js.Value) PromiseAudioBufferOnRejectedFunc

type ScriptProcessorNode Uses

type ScriptProcessorNode struct {
    AudioNode
}

class: ScriptProcessorNode

func ScriptProcessorNodeFromJS Uses

func ScriptProcessorNodeFromJS(value js.Wrapper) *ScriptProcessorNode

ScriptProcessorNodeFromJS is casting a js.Wrapper into ScriptProcessorNode.

func (*ScriptProcessorNode) AddEventAudioProcess Uses

func (_this *ScriptProcessorNode) AddEventAudioProcess(listener func(event *AudioProcessingEvent, currentTarget *ScriptProcessorNode)) js.Func

AddAudioProcess is adding doing AddEventListener for 'AudioProcess' on target. This method is returning allocated javascript function that need to be released.

func (*ScriptProcessorNode) BufferSize Uses

func (_this *ScriptProcessorNode) BufferSize() int

BufferSize returning attribute 'bufferSize' with type int (idl: long).

func (*ScriptProcessorNode) OnAudioProcess Uses

func (_this *ScriptProcessorNode) OnAudioProcess() domcore.EventHandlerFunc

OnAudioProcess returning attribute 'onaudioprocess' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*ScriptProcessorNode) SetOnAudioProcess Uses

func (_this *ScriptProcessorNode) SetOnAudioProcess(listener func(event *AudioProcessingEvent, currentTarget *ScriptProcessorNode)) js.Func

SetOnAudioProcess is assigning a function to 'onaudioprocess'. This This method is returning allocated javascript function that need to be released.

type StereoPannerNode Uses

type StereoPannerNode struct {
    AudioNode
}

class: StereoPannerNode

func NewStereoPannerNode Uses

func NewStereoPannerNode(context *BaseAudioContext, options *StereoPannerOptions) (_result *StereoPannerNode)

func StereoPannerNodeFromJS Uses

func StereoPannerNodeFromJS(value js.Wrapper) *StereoPannerNode

StereoPannerNodeFromJS is casting a js.Wrapper into StereoPannerNode.

func (*StereoPannerNode) Pan Uses

func (_this *StereoPannerNode) Pan() *AudioParam

Pan returning attribute 'pan' with type AudioParam (idl: AudioParam).

type StereoPannerOptions Uses

type StereoPannerOptions struct {
    ChannelCount          uint
    ChannelCountMode      ChannelCountMode
    ChannelInterpretation ChannelInterpretation
    Pan                   float32
}

dictionary: StereoPannerOptions

func StereoPannerOptionsFromJS Uses

func StereoPannerOptionsFromJS(value js.Wrapper) *StereoPannerOptions

StereoPannerOptionsFromJS is allocating a new StereoPannerOptions object and copy all values from input javascript object

func (*StereoPannerOptions) JSValue Uses

func (_this *StereoPannerOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type Union Uses

type Union struct {
    Value js.Value
}

func UnionFromJS Uses

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue Uses

func (u *Union) JSValue() js.Value

type WaveShaperNode Uses

type WaveShaperNode struct {
    AudioNode
}

class: WaveShaperNode

func NewWaveShaperNode Uses

func NewWaveShaperNode(context *BaseAudioContext, options *WaveShaperOptions) (_result *WaveShaperNode)

func WaveShaperNodeFromJS Uses

func WaveShaperNodeFromJS(value js.Wrapper) *WaveShaperNode

WaveShaperNodeFromJS is casting a js.Wrapper into WaveShaperNode.

func (*WaveShaperNode) Curve Uses

func (_this *WaveShaperNode) Curve() *javascript.Float32Array

Curve returning attribute 'curve' with type javascript.Float32Array (idl: Float32Array).

func (*WaveShaperNode) Oversample Uses

func (_this *WaveShaperNode) Oversample() OverSampleType

Oversample returning attribute 'oversample' with type OverSampleType (idl: OverSampleType).

func (*WaveShaperNode) SetCurve Uses

func (_this *WaveShaperNode) SetCurve(value *javascript.Float32Array)

SetCurve setting attribute 'curve' with type javascript.Float32Array (idl: Float32Array).

func (*WaveShaperNode) SetOversample Uses

func (_this *WaveShaperNode) SetOversample(value OverSampleType)

SetOversample setting attribute 'oversample' with type OverSampleType (idl: OverSampleType).

type WaveShaperOptions Uses

type WaveShaperOptions struct {
    ChannelCount          uint
    ChannelCountMode      ChannelCountMode
    ChannelInterpretation ChannelInterpretation
    Curve                 []float32
    Oversample            OverSampleType
}

dictionary: WaveShaperOptions

func WaveShaperOptionsFromJS Uses

func WaveShaperOptionsFromJS(value js.Wrapper) *WaveShaperOptions

WaveShaperOptionsFromJS is allocating a new WaveShaperOptions object and copy all values from input javascript object

func (*WaveShaperOptions) JSValue Uses

func (_this *WaveShaperOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

Package audio imports 10 packages (graph). Updated 2019-09-21. Refresh now. Tools for package owners.