Documentation ¶
Overview ¶
Package audio is high-level Web API for processing and synthesizing audio in web applications.
Index ¶
- type AnalyserNode
- func (_this *AnalyserNode) FftSize() uint
- func (_this *AnalyserNode) FrequencyBinCount() uint
- func (_this *AnalyserNode) GetByteFrequencyData(array *javascript.Uint8Array)
- func (_this *AnalyserNode) GetByteTimeDomainData(array *javascript.Uint8Array)
- func (_this *AnalyserNode) GetFloatFrequencyData(array *javascript.Float32Array)
- func (_this *AnalyserNode) GetFloatTimeDomainData(array *javascript.Float32Array)
- func (_this *AnalyserNode) MaxDecibels() float64
- func (_this *AnalyserNode) MinDecibels() float64
- func (_this *AnalyserNode) SetFftSize(value uint)
- func (_this *AnalyserNode) SetMaxDecibels(value float64)
- func (_this *AnalyserNode) SetMinDecibels(value float64)
- func (_this *AnalyserNode) SetSmoothingTimeConstant(value float64)
- func (_this *AnalyserNode) SmoothingTimeConstant() float64
- type AnalyserOptions
- type AudioBuffer
- func (_this *AudioBuffer) CopyFromChannel(destination *javascript.Float32Array, channelNumber uint, startInChannel *uint)
- func (_this *AudioBuffer) CopyToChannel(source *javascript.Float32Array, channelNumber uint, startInChannel *uint)
- func (_this *AudioBuffer) Duration() float64
- func (_this *AudioBuffer) GetChannelData(channel uint) (_result *javascript.Float32Array)
- func (_this *AudioBuffer) JSValue() js.Value
- func (_this *AudioBuffer) Length() uint
- func (_this *AudioBuffer) NumberOfChannels() uint
- func (_this *AudioBuffer) SampleRate() float32
- type AudioBufferOptions
- type AudioBufferSourceNode
- func (_this *AudioBufferSourceNode) Buffer() *AudioBuffer
- func (_this *AudioBufferSourceNode) Detune() *AudioParam
- func (_this *AudioBufferSourceNode) Loop() bool
- func (_this *AudioBufferSourceNode) LoopEnd() float64
- func (_this *AudioBufferSourceNode) LoopStart() float64
- func (_this *AudioBufferSourceNode) PlaybackRate() *AudioParam
- func (_this *AudioBufferSourceNode) SetBuffer(value *AudioBuffer)
- func (_this *AudioBufferSourceNode) SetLoop(value bool)
- func (_this *AudioBufferSourceNode) SetLoopEnd(value float64)
- func (_this *AudioBufferSourceNode) SetLoopStart(value float64)
- func (_this *AudioBufferSourceNode) Start2(when *float64, offset *float64, duration *float64)
- type AudioBufferSourceOptions
- type AudioContext
- func (_this *AudioContext) BaseLatency() float64
- func (_this *AudioContext) Close() (_result *javascript.PromiseVoid)
- func (_this *AudioContext) CreateMediaElementSource(mediaElement *media.HTMLMediaElement) (_result *MediaElementAudioSourceNode)
- func (_this *AudioContext) CreateMediaStreamDestination() (_result *MediaStreamAudioDestinationNode)
- func (_this *AudioContext) CreateMediaStreamSource(mediaStream *local.MediaStream) (_result *MediaStreamAudioSourceNode)
- func (_this *AudioContext) CreateMediaStreamTrackSource(mediaStreamTrack *local.MediaStreamTrack) (_result *MediaStreamTrackAudioSourceNode)
- func (_this *AudioContext) GetOutputTimestamp() (_result *AudioTimestamp)
- func (_this *AudioContext) OutputLatency() float64
- func (_this *AudioContext) Resume() (_result *javascript.PromiseVoid)
- func (_this *AudioContext) Suspend() (_result *javascript.PromiseVoid)
- type AudioContextLatencyCategory
- type AudioContextOptions
- type AudioContextState
- type AudioDestinationNode
- type AudioListener
- func (_this *AudioListener) ForwardX() *AudioParam
- func (_this *AudioListener) ForwardY() *AudioParam
- func (_this *AudioListener) ForwardZ() *AudioParam
- func (_this *AudioListener) JSValue() js.Value
- func (_this *AudioListener) PositionX() *AudioParam
- func (_this *AudioListener) PositionY() *AudioParam
- func (_this *AudioListener) PositionZ() *AudioParam
- func (_this *AudioListener) SetOrientation(x float32, y float32, z float32, xUp float32, yUp float32, zUp float32)
- func (_this *AudioListener) SetPosition(x float32, y float32, z float32)
- func (_this *AudioListener) UpX() *AudioParam
- func (_this *AudioListener) UpY() *AudioParam
- func (_this *AudioListener) UpZ() *AudioParam
- type AudioNode
- func (_this *AudioNode) ChannelCount() uint
- func (_this *AudioNode) ChannelCountMode() ChannelCountMode
- func (_this *AudioNode) ChannelInterpretation() ChannelInterpretation
- func (_this *AudioNode) Connect(destinationNode *AudioNode, output *uint, input *uint) (_result *AudioNode)
- func (_this *AudioNode) Connect2(destinationParam *AudioParam, output *uint)
- func (_this *AudioNode) Context() *BaseAudioContext
- func (_this *AudioNode) Disconnect()
- func (_this *AudioNode) Disconnect2(output uint)
- func (_this *AudioNode) Disconnect3(destinationNode *AudioNode)
- func (_this *AudioNode) Disconnect4(destinationNode *AudioNode, output uint)
- func (_this *AudioNode) Disconnect5(destinationNode *AudioNode, output uint, input uint)
- func (_this *AudioNode) Disconnect6(destinationParam *AudioParam)
- func (_this *AudioNode) Disconnect7(destinationParam *AudioParam, output uint)
- func (_this *AudioNode) NumberOfInputs() uint
- func (_this *AudioNode) NumberOfOutputs() uint
- func (_this *AudioNode) SetChannelCount(value uint)
- func (_this *AudioNode) SetChannelCountMode(value ChannelCountMode)
- func (_this *AudioNode) SetChannelInterpretation(value ChannelInterpretation)
- type AudioNodeOptions
- type AudioParam
- func (_this *AudioParam) AutomationRate() AutomationRate
- func (_this *AudioParam) CancelAndHoldAtTime(cancelTime float64) (_result *AudioParam)
- func (_this *AudioParam) CancelScheduledValues(cancelTime float64) (_result *AudioParam)
- func (_this *AudioParam) DefaultValue() float32
- func (_this *AudioParam) ExponentialRampToValueAtTime(value float32, endTime float64) (_result *AudioParam)
- func (_this *AudioParam) JSValue() js.Value
- func (_this *AudioParam) LinearRampToValueAtTime(value float32, endTime float64) (_result *AudioParam)
- func (_this *AudioParam) MaxValue() float32
- func (_this *AudioParam) MinValue() float32
- func (_this *AudioParam) SetAutomationRate(value AutomationRate)
- func (_this *AudioParam) SetTargetAtTime(target float32, startTime float64, timeConstant float32) (_result *AudioParam)
- func (_this *AudioParam) SetValue(value float32)
- func (_this *AudioParam) SetValueAtTime(value float32, startTime float64) (_result *AudioParam)
- func (_this *AudioParam) SetValueCurveAtTime(values []float32, startTime float64, duration float64) (_result *AudioParam)
- func (_this *AudioParam) Value() float32
- type AudioParamDescriptor
- type AudioParamMap
- func (_this *AudioParamMap) Entries() (_result *AudioParamMapEntryIterator)
- func (_this *AudioParamMap) ForEach(callback *AudioParamMapForEach, optionalThisForCallbackArgument interface{})
- func (_this *AudioParamMap) Get(key string) (_result *AudioParam)
- func (_this *AudioParamMap) Has(key string) (_result bool)
- func (_this *AudioParamMap) JSValue() js.Value
- func (_this *AudioParamMap) Keys() (_result *AudioParamMapKeyIterator)
- func (_this *AudioParamMap) Size() int
- func (_this *AudioParamMap) Values() (_result *AudioParamMapValueIterator)
- type AudioParamMapEntryIterator
- type AudioParamMapEntryIteratorValue
- type AudioParamMapForEach
- type AudioParamMapForEachFunc
- type AudioParamMapKeyIterator
- type AudioParamMapKeyIteratorValue
- type AudioParamMapValueIterator
- type AudioParamMapValueIteratorValue
- type AudioProcessingEvent
- type AudioProcessingEventInit
- type AudioScheduledSourceNode
- func (_this *AudioScheduledSourceNode) AddEventEnded(listener func(event *domcore.Event, currentTarget *AudioScheduledSourceNode)) js.Func
- func (_this *AudioScheduledSourceNode) OnEnded() domcore.EventHandlerFunc
- func (_this *AudioScheduledSourceNode) SetOnEnded(listener func(event *domcore.Event, currentTarget *AudioScheduledSourceNode)) js.Func
- func (_this *AudioScheduledSourceNode) Start(when *float64)
- func (_this *AudioScheduledSourceNode) Stop(when *float64)
- type AudioTimestamp
- type AudioWorklet
- type AudioWorkletGlobalScope
- type AudioWorkletNode
- func (_this *AudioWorkletNode) AddEventProcessorError(listener func(event *htmlevent.ErrorEvent, currentTarget *AudioWorkletNode)) js.Func
- func (_this *AudioWorkletNode) OnProcessorError() domcore.EventHandlerFunc
- func (_this *AudioWorkletNode) Parameters() *AudioParamMap
- func (_this *AudioWorkletNode) Port() *channel.MessagePort
- func (_this *AudioWorkletNode) SetOnProcessorError(listener func(event *htmlevent.ErrorEvent, currentTarget *AudioWorkletNode)) js.Func
- type AudioWorkletNodeOptions
- type AudioWorkletProcessor
- type AutomationRate
- type BaseAudioContext
- func (_this *BaseAudioContext) AddEventStateChange(listener func(event *domcore.Event, currentTarget *BaseAudioContext)) js.Func
- func (_this *BaseAudioContext) AudioWorklet() *AudioWorklet
- func (_this *BaseAudioContext) CreateAnalyser() (_result *AnalyserNode)
- func (_this *BaseAudioContext) CreateBiquadFilter() (_result *BiquadFilterNode)
- func (_this *BaseAudioContext) CreateBuffer(numberOfChannels uint, length uint, sampleRate float32) (_result *AudioBuffer)
- func (_this *BaseAudioContext) CreateBufferSource() (_result *AudioBufferSourceNode)
- func (_this *BaseAudioContext) CreateChannelMerger(numberOfInputs *uint) (_result *ChannelMergerNode)
- func (_this *BaseAudioContext) CreateChannelSplitter(numberOfOutputs *uint) (_result *ChannelSplitterNode)
- func (_this *BaseAudioContext) CreateConstantSource() (_result *ConstantSourceNode)
- func (_this *BaseAudioContext) CreateConvolver() (_result *ConvolverNode)
- func (_this *BaseAudioContext) CreateDelay(maxDelayTime *float64) (_result *DelayNode)
- func (_this *BaseAudioContext) CreateDynamicsCompressor() (_result *DynamicsCompressorNode)
- func (_this *BaseAudioContext) CreateGain() (_result *GainNode)
- func (_this *BaseAudioContext) CreateIIRFilter(feedforward []float64, feedback []float64) (_result *IIRFilterNode)
- func (_this *BaseAudioContext) CreateOscillator() (_result *OscillatorNode)
- func (_this *BaseAudioContext) CreatePanner() (_result *PannerNode)
- func (_this *BaseAudioContext) CreatePeriodicWave(real []float32, imag []float32, constraints *PeriodicWaveConstraints) (_result *PeriodicWave)
- func (_this *BaseAudioContext) CreateScriptProcessor(bufferSize *uint, numberOfInputChannels *uint, numberOfOutputChannels *uint) (_result *ScriptProcessorNode)
- func (_this *BaseAudioContext) CreateStereoPanner() (_result *StereoPannerNode)
- func (_this *BaseAudioContext) CreateWaveShaper() (_result *WaveShaperNode)
- func (_this *BaseAudioContext) CurrentTime() float64
- func (_this *BaseAudioContext) DecodeAudioData(audioData *javascript.ArrayBuffer, successCallback *DecodeSuccessCallback, ...) (_result *PromiseAudioBuffer)
- func (_this *BaseAudioContext) Destination() *AudioDestinationNode
- func (_this *BaseAudioContext) Listener() *AudioListener
- func (_this *BaseAudioContext) OnStateChange() domcore.EventHandlerFunc
- func (_this *BaseAudioContext) SampleRate() float32
- func (_this *BaseAudioContext) SetOnStateChange(listener func(event *domcore.Event, currentTarget *BaseAudioContext)) js.Func
- func (_this *BaseAudioContext) State() AudioContextState
- type BiquadFilterNode
- func (_this *BiquadFilterNode) Detune() *AudioParam
- func (_this *BiquadFilterNode) Frequency() *AudioParam
- func (_this *BiquadFilterNode) Gain() *AudioParam
- func (_this *BiquadFilterNode) GetFrequencyResponse(frequencyHz *javascript.Float32Array, magResponse *javascript.Float32Array, ...)
- func (_this *BiquadFilterNode) Q() *AudioParam
- func (_this *BiquadFilterNode) SetType(value BiquadFilterType)
- func (_this *BiquadFilterNode) Type() BiquadFilterType
- type BiquadFilterOptions
- type BiquadFilterType
- type ChannelCountMode
- type ChannelInterpretation
- type ChannelMergerNode
- type ChannelMergerOptions
- type ChannelSplitterNode
- type ChannelSplitterOptions
- type ConstantSourceNode
- type ConstantSourceOptions
- type ConvolverNode
- type ConvolverOptions
- type DecodeErrorCallback
- type DecodeErrorCallbackFunc
- type DecodeSuccessCallback
- type DecodeSuccessCallbackFunc
- type DelayNode
- type DelayOptions
- type DistanceModelType
- type DynamicsCompressorNode
- func (_this *DynamicsCompressorNode) Attack() *AudioParam
- func (_this *DynamicsCompressorNode) Knee() *AudioParam
- func (_this *DynamicsCompressorNode) Ratio() *AudioParam
- func (_this *DynamicsCompressorNode) Reduction() float32
- func (_this *DynamicsCompressorNode) Release() *AudioParam
- func (_this *DynamicsCompressorNode) Threshold() *AudioParam
- type DynamicsCompressorOptions
- type GainNode
- type GainOptions
- type IIRFilterNode
- type IIRFilterOptions
- type MediaElementAudioSourceNode
- func MediaElementAudioSourceNodeFromJS(value js.Value) *MediaElementAudioSourceNode
- func MediaElementAudioSourceNodeFromWrapper(input core.Wrapper) *MediaElementAudioSourceNode
- func NewMediaElementAudioSourceNode(context *AudioContext, options *MediaElementAudioSourceOptions) (_result *MediaElementAudioSourceNode)
- type MediaElementAudioSourceOptions
- type MediaStreamAudioDestinationNode
- func MediaStreamAudioDestinationNodeFromJS(value js.Value) *MediaStreamAudioDestinationNode
- func MediaStreamAudioDestinationNodeFromWrapper(input core.Wrapper) *MediaStreamAudioDestinationNode
- func NewMediaStreamAudioDestinationNode(context *AudioContext, options *AudioNodeOptions) (_result *MediaStreamAudioDestinationNode)
- type MediaStreamAudioSourceNode
- func MediaStreamAudioSourceNodeFromJS(value js.Value) *MediaStreamAudioSourceNode
- func MediaStreamAudioSourceNodeFromWrapper(input core.Wrapper) *MediaStreamAudioSourceNode
- func NewMediaStreamAudioSourceNode(context *AudioContext, options *MediaStreamAudioSourceOptions) (_result *MediaStreamAudioSourceNode)
- type MediaStreamAudioSourceOptions
- type MediaStreamTrackAudioSourceNode
- func MediaStreamTrackAudioSourceNodeFromJS(value js.Value) *MediaStreamTrackAudioSourceNode
- func MediaStreamTrackAudioSourceNodeFromWrapper(input core.Wrapper) *MediaStreamTrackAudioSourceNode
- func NewMediaStreamTrackAudioSourceNode(context *AudioContext, options *MediaStreamTrackAudioSourceOptions) (_result *MediaStreamTrackAudioSourceNode)
- type MediaStreamTrackAudioSourceOptions
- type OfflineAudioCompletionEvent
- func NewOfflineAudioCompletionEvent(_type string, eventInitDict *OfflineAudioCompletionEventInit) (_result *OfflineAudioCompletionEvent)
- func OfflineAudioCompletionEventFromJS(value js.Value) *OfflineAudioCompletionEvent
- func OfflineAudioCompletionEventFromWrapper(input core.Wrapper) *OfflineAudioCompletionEvent
- type OfflineAudioCompletionEventInit
- type OfflineAudioContext
- func (_this *OfflineAudioContext) AddEventComplete(...) js.Func
- func (_this *OfflineAudioContext) Length() uint
- func (_this *OfflineAudioContext) OnComplete() domcore.EventHandlerFunc
- func (_this *OfflineAudioContext) Resume() (_result *javascript.PromiseVoid)
- func (_this *OfflineAudioContext) SetOnComplete(...) js.Func
- func (_this *OfflineAudioContext) StartRendering() (_result *PromiseAudioBuffer)
- func (_this *OfflineAudioContext) Suspend(suspendTime float64) (_result *javascript.PromiseVoid)
- type OfflineAudioContextOptions
- type OscillatorNode
- type OscillatorOptions
- type OscillatorType
- type OverSampleType
- type PannerNode
- func (_this *PannerNode) ConeInnerAngle() float64
- func (_this *PannerNode) ConeOuterAngle() float64
- func (_this *PannerNode) ConeOuterGain() float64
- func (_this *PannerNode) DistanceModel() DistanceModelType
- func (_this *PannerNode) MaxDistance() float64
- func (_this *PannerNode) OrientationX() *AudioParam
- func (_this *PannerNode) OrientationY() *AudioParam
- func (_this *PannerNode) OrientationZ() *AudioParam
- func (_this *PannerNode) PanningModel() PanningModelType
- func (_this *PannerNode) PositionX() *AudioParam
- func (_this *PannerNode) PositionY() *AudioParam
- func (_this *PannerNode) PositionZ() *AudioParam
- func (_this *PannerNode) RefDistance() float64
- func (_this *PannerNode) RolloffFactor() float64
- func (_this *PannerNode) SetConeInnerAngle(value float64)
- func (_this *PannerNode) SetConeOuterAngle(value float64)
- func (_this *PannerNode) SetConeOuterGain(value float64)
- func (_this *PannerNode) SetDistanceModel(value DistanceModelType)
- func (_this *PannerNode) SetMaxDistance(value float64)
- func (_this *PannerNode) SetOrientation(x float32, y float32, z float32)
- func (_this *PannerNode) SetPanningModel(value PanningModelType)
- func (_this *PannerNode) SetPosition(x float32, y float32, z float32)
- func (_this *PannerNode) SetRefDistance(value float64)
- func (_this *PannerNode) SetRolloffFactor(value float64)
- type PannerOptions
- type PanningModelType
- type PeriodicWave
- type PeriodicWaveConstraints
- type PeriodicWaveOptions
- type PromiseAudioBuffer
- func (_this *PromiseAudioBuffer) Catch(onRejected *PromiseAudioBufferOnRejected) (_result *PromiseAudioBuffer)
- func (_this *PromiseAudioBuffer) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseAudioBuffer)
- func (_this *PromiseAudioBuffer) JSValue() js.Value
- func (_this *PromiseAudioBuffer) Then(onFulfilled *PromiseAudioBufferOnFulfilled, ...) (_result *PromiseAudioBuffer)
- type PromiseAudioBufferOnFulfilled
- type PromiseAudioBufferOnFulfilledFunc
- type PromiseAudioBufferOnRejected
- type PromiseAudioBufferOnRejectedFunc
- type ScriptProcessorNode
- func (_this *ScriptProcessorNode) AddEventAudioProcess(listener func(event *AudioProcessingEvent, currentTarget *ScriptProcessorNode)) js.Func
- func (_this *ScriptProcessorNode) BufferSize() int
- func (_this *ScriptProcessorNode) OnAudioProcess() domcore.EventHandlerFunc
- func (_this *ScriptProcessorNode) SetOnAudioProcess(listener func(event *AudioProcessingEvent, currentTarget *ScriptProcessorNode)) js.Func
- type StereoPannerNode
- type StereoPannerOptions
- type Union
- type WaveShaperNode
- type WaveShaperOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnalyserNode ¶
type AnalyserNode struct {
AudioNode
}
class: AnalyserNode
func AnalyserNodeFromJS ¶
func AnalyserNodeFromJS(value js.Value) *AnalyserNode
AnalyserNodeFromJS is casting a js.Value into AnalyserNode.
func AnalyserNodeFromWrapper ¶
func AnalyserNodeFromWrapper(input core.Wrapper) *AnalyserNode
AnalyserNodeFromJS is casting from something that holds a js.Value into AnalyserNode.
func NewAnalyserNode ¶
func NewAnalyserNode(context *BaseAudioContext, options *AnalyserOptions) (_result *AnalyserNode)
func (*AnalyserNode) FftSize ¶
func (_this *AnalyserNode) FftSize() uint
FftSize returning attribute 'fftSize' with type uint (idl: unsigned long).
func (*AnalyserNode) FrequencyBinCount ¶
func (_this *AnalyserNode) FrequencyBinCount() uint
FrequencyBinCount returning attribute 'frequencyBinCount' with type uint (idl: unsigned long).
func (*AnalyserNode) GetByteFrequencyData ¶
func (_this *AnalyserNode) GetByteFrequencyData(array *javascript.Uint8Array)
func (*AnalyserNode) GetByteTimeDomainData ¶
func (_this *AnalyserNode) GetByteTimeDomainData(array *javascript.Uint8Array)
func (*AnalyserNode) GetFloatFrequencyData ¶
func (_this *AnalyserNode) GetFloatFrequencyData(array *javascript.Float32Array)
func (*AnalyserNode) GetFloatTimeDomainData ¶
func (_this *AnalyserNode) GetFloatTimeDomainData(array *javascript.Float32Array)
func (*AnalyserNode) MaxDecibels ¶
func (_this *AnalyserNode) MaxDecibels() float64
MaxDecibels returning attribute 'maxDecibels' with type float64 (idl: double).
func (*AnalyserNode) MinDecibels ¶
func (_this *AnalyserNode) MinDecibels() float64
MinDecibels returning attribute 'minDecibels' with type float64 (idl: double).
func (*AnalyserNode) SetFftSize ¶
func (_this *AnalyserNode) SetFftSize(value uint)
SetFftSize setting attribute 'fftSize' with type uint (idl: unsigned long).
func (*AnalyserNode) SetMaxDecibels ¶
func (_this *AnalyserNode) SetMaxDecibels(value float64)
SetMaxDecibels setting attribute 'maxDecibels' with type float64 (idl: double).
func (*AnalyserNode) SetMinDecibels ¶
func (_this *AnalyserNode) SetMinDecibels(value float64)
SetMinDecibels setting attribute 'minDecibels' with type float64 (idl: double).
func (*AnalyserNode) SetSmoothingTimeConstant ¶
func (_this *AnalyserNode) SetSmoothingTimeConstant(value float64)
SetSmoothingTimeConstant setting attribute 'smoothingTimeConstant' with type float64 (idl: double).
func (*AnalyserNode) SmoothingTimeConstant ¶
func (_this *AnalyserNode) SmoothingTimeConstant() float64
SmoothingTimeConstant returning attribute 'smoothingTimeConstant' with type float64 (idl: double).
type AnalyserOptions ¶
type AnalyserOptions struct { ChannelCount uint ChannelCountMode ChannelCountMode ChannelInterpretation ChannelInterpretation FftSize uint MaxDecibels float64 MinDecibels float64 SmoothingTimeConstant float64 }
dictionary: AnalyserOptions
func AnalyserOptionsFromJS ¶
func AnalyserOptionsFromJS(value js.Value) *AnalyserOptions
AnalyserOptionsFromJS is allocating a new AnalyserOptions object and copy all values in the value javascript object.
func (*AnalyserOptions) JSValue ¶
func (_this *AnalyserOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type AudioBuffer ¶
class: AudioBuffer
func AudioBufferFromJS ¶
func AudioBufferFromJS(value js.Value) *AudioBuffer
AudioBufferFromJS is casting a js.Value into AudioBuffer.
func AudioBufferFromWrapper ¶
func AudioBufferFromWrapper(input core.Wrapper) *AudioBuffer
AudioBufferFromJS is casting from something that holds a js.Value into AudioBuffer.
func NewAudioBuffer ¶
func NewAudioBuffer(options *AudioBufferOptions) (_result *AudioBuffer)
func (*AudioBuffer) CopyFromChannel ¶
func (_this *AudioBuffer) CopyFromChannel(destination *javascript.Float32Array, channelNumber uint, startInChannel *uint)
func (*AudioBuffer) CopyToChannel ¶
func (_this *AudioBuffer) CopyToChannel(source *javascript.Float32Array, channelNumber uint, startInChannel *uint)
func (*AudioBuffer) Duration ¶
func (_this *AudioBuffer) Duration() float64
Duration returning attribute 'duration' with type float64 (idl: double).
func (*AudioBuffer) GetChannelData ¶
func (_this *AudioBuffer) GetChannelData(channel uint) (_result *javascript.Float32Array)
func (*AudioBuffer) JSValue ¶
func (_this *AudioBuffer) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*AudioBuffer) Length ¶
func (_this *AudioBuffer) Length() uint
Length returning attribute 'length' with type uint (idl: unsigned long).
func (*AudioBuffer) NumberOfChannels ¶
func (_this *AudioBuffer) NumberOfChannels() uint
NumberOfChannels returning attribute 'numberOfChannels' with type uint (idl: unsigned long).
func (*AudioBuffer) SampleRate ¶
func (_this *AudioBuffer) SampleRate() float32
SampleRate returning attribute 'sampleRate' with type float32 (idl: float).
type AudioBufferOptions ¶
dictionary: AudioBufferOptions
func AudioBufferOptionsFromJS ¶
func AudioBufferOptionsFromJS(value js.Value) *AudioBufferOptions
AudioBufferOptionsFromJS is allocating a new AudioBufferOptions object and copy all values in the value javascript object.
func (*AudioBufferOptions) JSValue ¶
func (_this *AudioBufferOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type AudioBufferSourceNode ¶
type AudioBufferSourceNode struct {
AudioScheduledSourceNode
}
class: AudioBufferSourceNode
func AudioBufferSourceNodeFromJS ¶
func AudioBufferSourceNodeFromJS(value js.Value) *AudioBufferSourceNode
AudioBufferSourceNodeFromJS is casting a js.Value into AudioBufferSourceNode.
func AudioBufferSourceNodeFromWrapper ¶
func AudioBufferSourceNodeFromWrapper(input core.Wrapper) *AudioBufferSourceNode
AudioBufferSourceNodeFromJS is casting from something that holds a js.Value into AudioBufferSourceNode.
func NewAudioBufferSourceNode ¶
func NewAudioBufferSourceNode(context *BaseAudioContext, options *AudioBufferSourceOptions) (_result *AudioBufferSourceNode)
func (*AudioBufferSourceNode) Buffer ¶
func (_this *AudioBufferSourceNode) Buffer() *AudioBuffer
Buffer returning attribute 'buffer' with type AudioBuffer (idl: AudioBuffer).
func (*AudioBufferSourceNode) Detune ¶
func (_this *AudioBufferSourceNode) Detune() *AudioParam
Detune returning attribute 'detune' with type AudioParam (idl: AudioParam).
func (*AudioBufferSourceNode) Loop ¶
func (_this *AudioBufferSourceNode) Loop() bool
Loop returning attribute 'loop' with type bool (idl: boolean).
func (*AudioBufferSourceNode) LoopEnd ¶
func (_this *AudioBufferSourceNode) LoopEnd() float64
LoopEnd returning attribute 'loopEnd' with type float64 (idl: double).
func (*AudioBufferSourceNode) LoopStart ¶
func (_this *AudioBufferSourceNode) LoopStart() float64
LoopStart returning attribute 'loopStart' with type float64 (idl: double).
func (*AudioBufferSourceNode) PlaybackRate ¶
func (_this *AudioBufferSourceNode) PlaybackRate() *AudioParam
PlaybackRate returning attribute 'playbackRate' with type AudioParam (idl: AudioParam).
func (*AudioBufferSourceNode) SetBuffer ¶
func (_this *AudioBufferSourceNode) SetBuffer(value *AudioBuffer)
SetBuffer setting attribute 'buffer' with type AudioBuffer (idl: AudioBuffer).
func (*AudioBufferSourceNode) SetLoop ¶
func (_this *AudioBufferSourceNode) SetLoop(value bool)
SetLoop setting attribute 'loop' with type bool (idl: boolean).
func (*AudioBufferSourceNode) SetLoopEnd ¶
func (_this *AudioBufferSourceNode) SetLoopEnd(value float64)
SetLoopEnd setting attribute 'loopEnd' with type float64 (idl: double).
func (*AudioBufferSourceNode) SetLoopStart ¶
func (_this *AudioBufferSourceNode) SetLoopStart(value float64)
SetLoopStart setting attribute 'loopStart' with type float64 (idl: double).
type AudioBufferSourceOptions ¶
type AudioBufferSourceOptions struct { Buffer *AudioBuffer Detune float32 Loop bool LoopEnd float64 LoopStart float64 PlaybackRate float32 }
dictionary: AudioBufferSourceOptions
func AudioBufferSourceOptionsFromJS ¶
func AudioBufferSourceOptionsFromJS(value js.Value) *AudioBufferSourceOptions
AudioBufferSourceOptionsFromJS is allocating a new AudioBufferSourceOptions object and copy all values in the value javascript object.
func (*AudioBufferSourceOptions) JSValue ¶
func (_this *AudioBufferSourceOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type AudioContext ¶
type AudioContext struct {
BaseAudioContext
}
class: AudioContext
func AudioContextFromJS ¶
func AudioContextFromJS(value js.Value) *AudioContext
AudioContextFromJS is casting a js.Value into AudioContext.
func AudioContextFromWrapper ¶
func AudioContextFromWrapper(input core.Wrapper) *AudioContext
AudioContextFromJS is casting from something that holds a js.Value into AudioContext.
func NewAudioContext ¶
func NewAudioContext(contextOptions *AudioContextOptions) (_result *AudioContext)
func (*AudioContext) BaseLatency ¶
func (_this *AudioContext) BaseLatency() float64
BaseLatency returning attribute 'baseLatency' with type float64 (idl: double).
func (*AudioContext) Close ¶
func (_this *AudioContext) Close() (_result *javascript.PromiseVoid)
func (*AudioContext) CreateMediaElementSource ¶
func (_this *AudioContext) CreateMediaElementSource(mediaElement *media.HTMLMediaElement) (_result *MediaElementAudioSourceNode)
func (*AudioContext) CreateMediaStreamDestination ¶
func (_this *AudioContext) CreateMediaStreamDestination() (_result *MediaStreamAudioDestinationNode)
func (*AudioContext) CreateMediaStreamSource ¶
func (_this *AudioContext) CreateMediaStreamSource(mediaStream *local.MediaStream) (_result *MediaStreamAudioSourceNode)
func (*AudioContext) CreateMediaStreamTrackSource ¶
func (_this *AudioContext) CreateMediaStreamTrackSource(mediaStreamTrack *local.MediaStreamTrack) (_result *MediaStreamTrackAudioSourceNode)
func (*AudioContext) GetOutputTimestamp ¶
func (_this *AudioContext) GetOutputTimestamp() (_result *AudioTimestamp)
func (*AudioContext) OutputLatency ¶
func (_this *AudioContext) OutputLatency() float64
OutputLatency returning attribute 'outputLatency' with type float64 (idl: double).
func (*AudioContext) Resume ¶
func (_this *AudioContext) Resume() (_result *javascript.PromiseVoid)
func (*AudioContext) Suspend ¶
func (_this *AudioContext) Suspend() (_result *javascript.PromiseVoid)
type AudioContextLatencyCategory ¶
type AudioContextLatencyCategory int
enum: AudioContextLatencyCategory
const ( BalancedAudioContextLatencyCategory AudioContextLatencyCategory = iota InteractiveAudioContextLatencyCategory PlaybackAudioContextLatencyCategory )
func AudioContextLatencyCategoryFromJS ¶
func AudioContextLatencyCategoryFromJS(value js.Value) AudioContextLatencyCategory
AudioContextLatencyCategoryFromJS is converting a javascript value into a AudioContextLatencyCategory enum value.
func (*AudioContextLatencyCategory) JSValue ¶
func (this *AudioContextLatencyCategory) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (AudioContextLatencyCategory) Value ¶
func (this AudioContextLatencyCategory) Value() string
Value is converting this into javascript defined string value
type AudioContextOptions ¶
dictionary: AudioContextOptions
func AudioContextOptionsFromJS ¶
func AudioContextOptionsFromJS(value js.Value) *AudioContextOptions
AudioContextOptionsFromJS is allocating a new AudioContextOptions object and copy all values in the value javascript object.
func (*AudioContextOptions) JSValue ¶
func (_this *AudioContextOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type AudioContextState ¶
type AudioContextState int
enum: AudioContextState
const ( SuspendedAudioContextState AudioContextState = iota RunningAudioContextState ClosedAudioContextState )
func AudioContextStateFromJS ¶
func AudioContextStateFromJS(value js.Value) AudioContextState
AudioContextStateFromJS is converting a javascript value into a AudioContextState enum value.
func (*AudioContextState) JSValue ¶
func (this *AudioContextState) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (AudioContextState) Value ¶
func (this AudioContextState) Value() string
Value is converting this into javascript defined string value
type AudioDestinationNode ¶
type AudioDestinationNode struct {
AudioNode
}
class: AudioDestinationNode
func AudioDestinationNodeFromJS ¶
func AudioDestinationNodeFromJS(value js.Value) *AudioDestinationNode
AudioDestinationNodeFromJS is casting a js.Value into AudioDestinationNode.
func AudioDestinationNodeFromWrapper ¶
func AudioDestinationNodeFromWrapper(input core.Wrapper) *AudioDestinationNode
AudioDestinationNodeFromJS is casting from something that holds a js.Value into AudioDestinationNode.
func (*AudioDestinationNode) MaxChannelCount ¶
func (_this *AudioDestinationNode) MaxChannelCount() uint
MaxChannelCount returning attribute 'maxChannelCount' with type uint (idl: unsigned long).
type AudioListener ¶
class: AudioListener
func AudioListenerFromJS ¶
func AudioListenerFromJS(value js.Value) *AudioListener
AudioListenerFromJS is casting a js.Value into AudioListener.
func AudioListenerFromWrapper ¶
func AudioListenerFromWrapper(input core.Wrapper) *AudioListener
AudioListenerFromJS is casting from something that holds a js.Value into AudioListener.
func (*AudioListener) ForwardX ¶
func (_this *AudioListener) ForwardX() *AudioParam
ForwardX returning attribute 'forwardX' with type AudioParam (idl: AudioParam).
func (*AudioListener) ForwardY ¶
func (_this *AudioListener) ForwardY() *AudioParam
ForwardY returning attribute 'forwardY' with type AudioParam (idl: AudioParam).
func (*AudioListener) ForwardZ ¶
func (_this *AudioListener) ForwardZ() *AudioParam
ForwardZ returning attribute 'forwardZ' with type AudioParam (idl: AudioParam).
func (*AudioListener) JSValue ¶
func (_this *AudioListener) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*AudioListener) PositionX ¶
func (_this *AudioListener) PositionX() *AudioParam
PositionX returning attribute 'positionX' with type AudioParam (idl: AudioParam).
func (*AudioListener) PositionY ¶
func (_this *AudioListener) PositionY() *AudioParam
PositionY returning attribute 'positionY' with type AudioParam (idl: AudioParam).
func (*AudioListener) PositionZ ¶
func (_this *AudioListener) PositionZ() *AudioParam
PositionZ returning attribute 'positionZ' with type AudioParam (idl: AudioParam).
func (*AudioListener) SetOrientation ¶
func (*AudioListener) SetPosition ¶
func (_this *AudioListener) SetPosition(x float32, y float32, z float32)
func (*AudioListener) UpX ¶
func (_this *AudioListener) UpX() *AudioParam
UpX returning attribute 'upX' with type AudioParam (idl: AudioParam).
func (*AudioListener) UpY ¶
func (_this *AudioListener) UpY() *AudioParam
UpY returning attribute 'upY' with type AudioParam (idl: AudioParam).
func (*AudioListener) UpZ ¶
func (_this *AudioListener) UpZ() *AudioParam
UpZ returning attribute 'upZ' with type AudioParam (idl: AudioParam).
type AudioNode ¶
type AudioNode struct {
domcore.EventTarget
}
class: AudioNode
func AudioNodeFromJS ¶
AudioNodeFromJS is casting a js.Value into AudioNode.
func AudioNodeFromWrapper ¶
AudioNodeFromJS is casting from something that holds a js.Value into AudioNode.
func (*AudioNode) ChannelCount ¶
ChannelCount returning attribute 'channelCount' with type uint (idl: unsigned long).
func (*AudioNode) ChannelCountMode ¶
func (_this *AudioNode) ChannelCountMode() ChannelCountMode
ChannelCountMode returning attribute 'channelCountMode' with type ChannelCountMode (idl: ChannelCountMode).
func (*AudioNode) ChannelInterpretation ¶
func (_this *AudioNode) ChannelInterpretation() ChannelInterpretation
ChannelInterpretation returning attribute 'channelInterpretation' with type ChannelInterpretation (idl: ChannelInterpretation).
func (*AudioNode) Connect2 ¶
func (_this *AudioNode) Connect2(destinationParam *AudioParam, output *uint)
func (*AudioNode) Context ¶
func (_this *AudioNode) Context() *BaseAudioContext
Context returning attribute 'context' with type BaseAudioContext (idl: BaseAudioContext).
func (*AudioNode) Disconnect ¶
func (_this *AudioNode) Disconnect()
func (*AudioNode) Disconnect2 ¶
func (*AudioNode) Disconnect3 ¶
func (*AudioNode) Disconnect4 ¶
func (*AudioNode) Disconnect5 ¶
func (*AudioNode) Disconnect6 ¶
func (_this *AudioNode) Disconnect6(destinationParam *AudioParam)
func (*AudioNode) Disconnect7 ¶
func (_this *AudioNode) Disconnect7(destinationParam *AudioParam, output uint)
func (*AudioNode) NumberOfInputs ¶
NumberOfInputs returning attribute 'numberOfInputs' with type uint (idl: unsigned long).
func (*AudioNode) NumberOfOutputs ¶
NumberOfOutputs returning attribute 'numberOfOutputs' with type uint (idl: unsigned long).
func (*AudioNode) SetChannelCount ¶
SetChannelCount setting attribute 'channelCount' with type uint (idl: unsigned long).
func (*AudioNode) SetChannelCountMode ¶
func (_this *AudioNode) SetChannelCountMode(value ChannelCountMode)
SetChannelCountMode setting attribute 'channelCountMode' with type ChannelCountMode (idl: ChannelCountMode).
func (*AudioNode) SetChannelInterpretation ¶
func (_this *AudioNode) SetChannelInterpretation(value ChannelInterpretation)
SetChannelInterpretation setting attribute 'channelInterpretation' with type ChannelInterpretation (idl: ChannelInterpretation).
type AudioNodeOptions ¶
type AudioNodeOptions struct { ChannelCount uint ChannelCountMode ChannelCountMode ChannelInterpretation ChannelInterpretation }
dictionary: AudioNodeOptions
func AudioNodeOptionsFromJS ¶
func AudioNodeOptionsFromJS(value js.Value) *AudioNodeOptions
AudioNodeOptionsFromJS is allocating a new AudioNodeOptions object and copy all values in the value javascript object.
func (*AudioNodeOptions) JSValue ¶
func (_this *AudioNodeOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type AudioParam ¶
class: AudioParam
func AudioParamFromJS ¶
func AudioParamFromJS(value js.Value) *AudioParam
AudioParamFromJS is casting a js.Value into AudioParam.
func AudioParamFromWrapper ¶
func AudioParamFromWrapper(input core.Wrapper) *AudioParam
AudioParamFromJS is casting from something that holds a js.Value into AudioParam.
func (*AudioParam) AutomationRate ¶
func (_this *AudioParam) AutomationRate() AutomationRate
AutomationRate returning attribute 'automationRate' with type AutomationRate (idl: AutomationRate).
func (*AudioParam) CancelAndHoldAtTime ¶
func (_this *AudioParam) CancelAndHoldAtTime(cancelTime float64) (_result *AudioParam)
func (*AudioParam) CancelScheduledValues ¶
func (_this *AudioParam) CancelScheduledValues(cancelTime float64) (_result *AudioParam)
func (*AudioParam) DefaultValue ¶
func (_this *AudioParam) DefaultValue() float32
DefaultValue returning attribute 'defaultValue' with type float32 (idl: float).
func (*AudioParam) ExponentialRampToValueAtTime ¶
func (_this *AudioParam) ExponentialRampToValueAtTime(value float32, endTime float64) (_result *AudioParam)
func (*AudioParam) JSValue ¶
func (_this *AudioParam) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*AudioParam) LinearRampToValueAtTime ¶
func (_this *AudioParam) LinearRampToValueAtTime(value float32, endTime float64) (_result *AudioParam)
func (*AudioParam) MaxValue ¶
func (_this *AudioParam) MaxValue() float32
MaxValue returning attribute 'maxValue' with type float32 (idl: float).
func (*AudioParam) MinValue ¶
func (_this *AudioParam) MinValue() float32
MinValue returning attribute 'minValue' with type float32 (idl: float).
func (*AudioParam) SetAutomationRate ¶
func (_this *AudioParam) SetAutomationRate(value AutomationRate)
SetAutomationRate setting attribute 'automationRate' with type AutomationRate (idl: AutomationRate).
func (*AudioParam) SetTargetAtTime ¶
func (_this *AudioParam) SetTargetAtTime(target float32, startTime float64, timeConstant float32) (_result *AudioParam)
func (*AudioParam) SetValue ¶
func (_this *AudioParam) SetValue(value float32)
SetValue setting attribute 'value' with type float32 (idl: float).
func (*AudioParam) SetValueAtTime ¶
func (_this *AudioParam) SetValueAtTime(value float32, startTime float64) (_result *AudioParam)
func (*AudioParam) SetValueCurveAtTime ¶
func (_this *AudioParam) SetValueCurveAtTime(values []float32, startTime float64, duration float64) (_result *AudioParam)
func (*AudioParam) Value ¶
func (_this *AudioParam) Value() float32
Value returning attribute 'value' with type float32 (idl: float).
type AudioParamDescriptor ¶
type AudioParamDescriptor struct { Name string DefaultValue float32 MinValue float32 MaxValue float32 AutomationRate AutomationRate }
dictionary: AudioParamDescriptor
func AudioParamDescriptorFromJS ¶
func AudioParamDescriptorFromJS(value js.Value) *AudioParamDescriptor
AudioParamDescriptorFromJS is allocating a new AudioParamDescriptor object and copy all values in the value javascript object.
func (*AudioParamDescriptor) JSValue ¶
func (_this *AudioParamDescriptor) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type AudioParamMap ¶
class: AudioParamMap
func AudioParamMapFromJS ¶
func AudioParamMapFromJS(value js.Value) *AudioParamMap
AudioParamMapFromJS is casting a js.Value into AudioParamMap.
func AudioParamMapFromWrapper ¶
func AudioParamMapFromWrapper(input core.Wrapper) *AudioParamMap
AudioParamMapFromJS is casting from something that holds a js.Value into AudioParamMap.
func (*AudioParamMap) Entries ¶
func (_this *AudioParamMap) Entries() (_result *AudioParamMapEntryIterator)
func (*AudioParamMap) ForEach ¶
func (_this *AudioParamMap) ForEach(callback *AudioParamMapForEach, optionalThisForCallbackArgument interface{})
func (*AudioParamMap) Get ¶
func (_this *AudioParamMap) Get(key string) (_result *AudioParam)
func (*AudioParamMap) Has ¶
func (_this *AudioParamMap) Has(key string) (_result bool)
func (*AudioParamMap) JSValue ¶
func (_this *AudioParamMap) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*AudioParamMap) Keys ¶
func (_this *AudioParamMap) Keys() (_result *AudioParamMapKeyIterator)
func (*AudioParamMap) Size ¶
func (_this *AudioParamMap) Size() int
Size returning attribute 'size' with type int (idl: long).
func (*AudioParamMap) Values ¶
func (_this *AudioParamMap) Values() (_result *AudioParamMapValueIterator)
type AudioParamMapEntryIterator ¶
type AudioParamMapEntryIterator struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: AudioParamMapEntryIterator
func AudioParamMapEntryIteratorFromJS ¶
func AudioParamMapEntryIteratorFromJS(value js.Value) *AudioParamMapEntryIterator
AudioParamMapEntryIteratorFromJS is casting a js.Value into AudioParamMapEntryIterator.
func AudioParamMapEntryIteratorFromWrapper ¶
func AudioParamMapEntryIteratorFromWrapper(input core.Wrapper) *AudioParamMapEntryIterator
AudioParamMapEntryIteratorFromJS is casting from something that holds a js.Value into AudioParamMapEntryIterator.
func (*AudioParamMapEntryIterator) JSValue ¶
func (_this *AudioParamMapEntryIterator) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*AudioParamMapEntryIterator) Next ¶
func (_this *AudioParamMapEntryIterator) Next() (_result *AudioParamMapEntryIteratorValue)
type AudioParamMapEntryIteratorValue ¶
dictionary: AudioParamMapEntryIteratorValue
func AudioParamMapEntryIteratorValueFromJS ¶
func AudioParamMapEntryIteratorValueFromJS(value js.Value) *AudioParamMapEntryIteratorValue
AudioParamMapEntryIteratorValueFromJS is allocating a new AudioParamMapEntryIteratorValue object and copy all values in the value javascript object.
func (*AudioParamMapEntryIteratorValue) JSValue ¶
func (_this *AudioParamMapEntryIteratorValue) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type AudioParamMapForEach ¶
AudioParamMapForEach is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func AudioParamMapForEachToJS ¶
func AudioParamMapForEachToJS(callback AudioParamMapForEachFunc) *AudioParamMapForEach
type AudioParamMapForEachFunc ¶
type AudioParamMapForEachFunc func(currentValue *AudioParam, currentKey string, listObj *AudioParamMap)
callback: AudioParamMapForEach
func AudioParamMapForEachFromJS ¶
func AudioParamMapForEachFromJS(_value js.Value) AudioParamMapForEachFunc
type AudioParamMapKeyIterator ¶
type AudioParamMapKeyIterator struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: AudioParamMapKeyIterator
func AudioParamMapKeyIteratorFromJS ¶
func AudioParamMapKeyIteratorFromJS(value js.Value) *AudioParamMapKeyIterator
AudioParamMapKeyIteratorFromJS is casting a js.Value into AudioParamMapKeyIterator.
func AudioParamMapKeyIteratorFromWrapper ¶
func AudioParamMapKeyIteratorFromWrapper(input core.Wrapper) *AudioParamMapKeyIterator
AudioParamMapKeyIteratorFromJS is casting from something that holds a js.Value into AudioParamMapKeyIterator.
func (*AudioParamMapKeyIterator) JSValue ¶
func (_this *AudioParamMapKeyIterator) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*AudioParamMapKeyIterator) Next ¶
func (_this *AudioParamMapKeyIterator) Next() (_result *AudioParamMapKeyIteratorValue)
type AudioParamMapKeyIteratorValue ¶
dictionary: AudioParamMapKeyIteratorValue
func AudioParamMapKeyIteratorValueFromJS ¶
func AudioParamMapKeyIteratorValueFromJS(value js.Value) *AudioParamMapKeyIteratorValue
AudioParamMapKeyIteratorValueFromJS is allocating a new AudioParamMapKeyIteratorValue object and copy all values in the value javascript object.
func (*AudioParamMapKeyIteratorValue) JSValue ¶
func (_this *AudioParamMapKeyIteratorValue) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type AudioParamMapValueIterator ¶
type AudioParamMapValueIterator struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: AudioParamMapValueIterator
func AudioParamMapValueIteratorFromJS ¶
func AudioParamMapValueIteratorFromJS(value js.Value) *AudioParamMapValueIterator
AudioParamMapValueIteratorFromJS is casting a js.Value into AudioParamMapValueIterator.
func AudioParamMapValueIteratorFromWrapper ¶
func AudioParamMapValueIteratorFromWrapper(input core.Wrapper) *AudioParamMapValueIterator
AudioParamMapValueIteratorFromJS is casting from something that holds a js.Value into AudioParamMapValueIterator.
func (*AudioParamMapValueIterator) JSValue ¶
func (_this *AudioParamMapValueIterator) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*AudioParamMapValueIterator) Next ¶
func (_this *AudioParamMapValueIterator) Next() (_result *AudioParamMapValueIteratorValue)
type AudioParamMapValueIteratorValue ¶
type AudioParamMapValueIteratorValue struct { Value *AudioParam Done bool }
dictionary: AudioParamMapValueIteratorValue
func AudioParamMapValueIteratorValueFromJS ¶
func AudioParamMapValueIteratorValueFromJS(value js.Value) *AudioParamMapValueIteratorValue
AudioParamMapValueIteratorValueFromJS is allocating a new AudioParamMapValueIteratorValue object and copy all values in the value javascript object.
func (*AudioParamMapValueIteratorValue) JSValue ¶
func (_this *AudioParamMapValueIteratorValue) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type AudioProcessingEvent ¶
class: AudioProcessingEvent
func AudioProcessingEventFromJS ¶
func AudioProcessingEventFromJS(value js.Value) *AudioProcessingEvent
AudioProcessingEventFromJS is casting a js.Value into AudioProcessingEvent.
func AudioProcessingEventFromWrapper ¶
func AudioProcessingEventFromWrapper(input core.Wrapper) *AudioProcessingEvent
AudioProcessingEventFromJS is casting from something that holds a js.Value into AudioProcessingEvent.
func NewAudioProcessingEvent ¶
func NewAudioProcessingEvent(_type string, eventInitDict *AudioProcessingEventInit) (_result *AudioProcessingEvent)
func (*AudioProcessingEvent) InputBuffer ¶
func (_this *AudioProcessingEvent) InputBuffer() *AudioBuffer
InputBuffer returning attribute 'inputBuffer' with type AudioBuffer (idl: AudioBuffer).
func (*AudioProcessingEvent) OutputBuffer ¶
func (_this *AudioProcessingEvent) OutputBuffer() *AudioBuffer
OutputBuffer returning attribute 'outputBuffer' with type AudioBuffer (idl: AudioBuffer).
func (*AudioProcessingEvent) PlaybackTime ¶
func (_this *AudioProcessingEvent) PlaybackTime() float64
PlaybackTime returning attribute 'playbackTime' with type float64 (idl: double).
type AudioProcessingEventInit ¶
type AudioProcessingEventInit struct { Bubbles bool Cancelable bool Composed bool PlaybackTime float64 InputBuffer *AudioBuffer OutputBuffer *AudioBuffer }
dictionary: AudioProcessingEventInit
func AudioProcessingEventInitFromJS ¶
func AudioProcessingEventInitFromJS(value js.Value) *AudioProcessingEventInit
AudioProcessingEventInitFromJS is allocating a new AudioProcessingEventInit object and copy all values in the value javascript object.
func (*AudioProcessingEventInit) JSValue ¶
func (_this *AudioProcessingEventInit) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type AudioScheduledSourceNode ¶
type AudioScheduledSourceNode struct {
AudioNode
}
class: AudioScheduledSourceNode
func AudioScheduledSourceNodeFromJS ¶
func AudioScheduledSourceNodeFromJS(value js.Value) *AudioScheduledSourceNode
AudioScheduledSourceNodeFromJS is casting a js.Value into AudioScheduledSourceNode.
func AudioScheduledSourceNodeFromWrapper ¶
func AudioScheduledSourceNodeFromWrapper(input core.Wrapper) *AudioScheduledSourceNode
AudioScheduledSourceNodeFromJS is casting from something that holds a js.Value into AudioScheduledSourceNode.
func (*AudioScheduledSourceNode) AddEventEnded ¶
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 ¶
func (_this *AudioScheduledSourceNode) OnEnded() domcore.EventHandlerFunc
OnEnded returning attribute 'onended' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*AudioScheduledSourceNode) SetOnEnded ¶
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 ¶
func (_this *AudioScheduledSourceNode) Start(when *float64)
func (*AudioScheduledSourceNode) Stop ¶
func (_this *AudioScheduledSourceNode) Stop(when *float64)
type AudioTimestamp ¶
dictionary: AudioTimestamp
func AudioTimestampFromJS ¶
func AudioTimestampFromJS(value js.Value) *AudioTimestamp
AudioTimestampFromJS is allocating a new AudioTimestamp object and copy all values in the value javascript object.
func (*AudioTimestamp) JSValue ¶
func (_this *AudioTimestamp) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type AudioWorklet ¶
class: AudioWorklet
func AudioWorkletFromJS ¶
func AudioWorkletFromJS(value js.Value) *AudioWorklet
AudioWorkletFromJS is casting a js.Value into AudioWorklet.
func AudioWorkletFromWrapper ¶
func AudioWorkletFromWrapper(input core.Wrapper) *AudioWorklet
AudioWorkletFromJS is casting from something that holds a js.Value into AudioWorklet.
type AudioWorkletGlobalScope ¶
type AudioWorkletGlobalScope struct {
worklets.WorkletGlobalScope
}
class: AudioWorkletGlobalScope
func AudioWorkletGlobalScopeFromJS ¶
func AudioWorkletGlobalScopeFromJS(value js.Value) *AudioWorkletGlobalScope
AudioWorkletGlobalScopeFromJS is casting a js.Value into AudioWorkletGlobalScope.
func AudioWorkletGlobalScopeFromWrapper ¶
func AudioWorkletGlobalScopeFromWrapper(input core.Wrapper) *AudioWorkletGlobalScope
AudioWorkletGlobalScopeFromJS is casting from something that holds a js.Value into AudioWorkletGlobalScope.
func (*AudioWorkletGlobalScope) CurrentFrame ¶
func (_this *AudioWorkletGlobalScope) CurrentFrame() int
CurrentFrame returning attribute 'currentFrame' with type int (idl: unsigned long long).
func (*AudioWorkletGlobalScope) CurrentTime ¶
func (_this *AudioWorkletGlobalScope) CurrentTime() float64
CurrentTime returning attribute 'currentTime' with type float64 (idl: double).
func (*AudioWorkletGlobalScope) RegisterProcessor ¶
func (_this *AudioWorkletGlobalScope) RegisterProcessor(name string, processorCtor *webidl.VoidFunction)
func (*AudioWorkletGlobalScope) SampleRate ¶
func (_this *AudioWorkletGlobalScope) SampleRate() float32
SampleRate returning attribute 'sampleRate' with type float32 (idl: float).
type AudioWorkletNode ¶
type AudioWorkletNode struct {
AudioNode
}
class: AudioWorkletNode
func AudioWorkletNodeFromJS ¶
func AudioWorkletNodeFromJS(value js.Value) *AudioWorkletNode
AudioWorkletNodeFromJS is casting a js.Value into AudioWorkletNode.
func AudioWorkletNodeFromWrapper ¶
func AudioWorkletNodeFromWrapper(input core.Wrapper) *AudioWorkletNode
AudioWorkletNodeFromJS is casting from something that holds a js.Value into AudioWorkletNode.
func NewAudioWorkletNode ¶
func NewAudioWorkletNode(context *BaseAudioContext, name string, options *AudioWorkletNodeOptions) (_result *AudioWorkletNode)
func (*AudioWorkletNode) AddEventProcessorError ¶
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 ¶
func (_this *AudioWorkletNode) OnProcessorError() domcore.EventHandlerFunc
OnProcessorError returning attribute 'onprocessorerror' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*AudioWorkletNode) Parameters ¶
func (_this *AudioWorkletNode) Parameters() *AudioParamMap
Parameters returning attribute 'parameters' with type AudioParamMap (idl: AudioParamMap).
func (*AudioWorkletNode) Port ¶
func (_this *AudioWorkletNode) Port() *channel.MessagePort
Port returning attribute 'port' with type channel.MessagePort (idl: MessagePort).
func (*AudioWorkletNode) SetOnProcessorError ¶
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 ¶
type AudioWorkletNodeOptions struct { ChannelCount uint ChannelCountMode ChannelCountMode ChannelInterpretation ChannelInterpretation NumberOfInputs uint NumberOfOutputs uint OutputChannelCount []uint ProcessorOptions *javascript.Object }
dictionary: AudioWorkletNodeOptions
func AudioWorkletNodeOptionsFromJS ¶
func AudioWorkletNodeOptionsFromJS(value js.Value) *AudioWorkletNodeOptions
AudioWorkletNodeOptionsFromJS is allocating a new AudioWorkletNodeOptions object and copy all values in the value javascript object.
func (*AudioWorkletNodeOptions) JSValue ¶
func (_this *AudioWorkletNodeOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type AudioWorkletProcessor ¶
type AudioWorkletProcessor struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: AudioWorkletProcessor
func AudioWorkletProcessorFromJS ¶
func AudioWorkletProcessorFromJS(value js.Value) *AudioWorkletProcessor
AudioWorkletProcessorFromJS is casting a js.Value into AudioWorkletProcessor.
func AudioWorkletProcessorFromWrapper ¶
func AudioWorkletProcessorFromWrapper(input core.Wrapper) *AudioWorkletProcessor
AudioWorkletProcessorFromJS is casting from something that holds a js.Value into AudioWorkletProcessor.
func NewAudioWorkletProcessor ¶
func NewAudioWorkletProcessor(options *AudioWorkletNodeOptions) (_result *AudioWorkletProcessor)
func (*AudioWorkletProcessor) JSValue ¶
func (_this *AudioWorkletProcessor) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*AudioWorkletProcessor) Port ¶
func (_this *AudioWorkletProcessor) Port() *channel.MessagePort
Port returning attribute 'port' with type channel.MessagePort (idl: MessagePort).
type AutomationRate ¶
type AutomationRate int
enum: AutomationRate
const ( ARateAutomationRate AutomationRate = iota KRateAutomationRate )
func AutomationRateFromJS ¶
func AutomationRateFromJS(value js.Value) AutomationRate
AutomationRateFromJS is converting a javascript value into a AutomationRate enum value.
func (*AutomationRate) JSValue ¶
func (this *AutomationRate) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (AutomationRate) Value ¶
func (this AutomationRate) Value() string
Value is converting this into javascript defined string value
type BaseAudioContext ¶
type BaseAudioContext struct {
domcore.EventTarget
}
class: BaseAudioContext
func BaseAudioContextFromJS ¶
func BaseAudioContextFromJS(value js.Value) *BaseAudioContext
BaseAudioContextFromJS is casting a js.Value into BaseAudioContext.
func BaseAudioContextFromWrapper ¶
func BaseAudioContextFromWrapper(input core.Wrapper) *BaseAudioContext
BaseAudioContextFromJS is casting from something that holds a js.Value into BaseAudioContext.
func (*BaseAudioContext) AddEventStateChange ¶
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 ¶
func (_this *BaseAudioContext) AudioWorklet() *AudioWorklet
AudioWorklet returning attribute 'audioWorklet' with type AudioWorklet (idl: AudioWorklet).
func (*BaseAudioContext) CreateAnalyser ¶
func (_this *BaseAudioContext) CreateAnalyser() (_result *AnalyserNode)
func (*BaseAudioContext) CreateBiquadFilter ¶
func (_this *BaseAudioContext) CreateBiquadFilter() (_result *BiquadFilterNode)
func (*BaseAudioContext) CreateBuffer ¶
func (_this *BaseAudioContext) CreateBuffer(numberOfChannels uint, length uint, sampleRate float32) (_result *AudioBuffer)
func (*BaseAudioContext) CreateBufferSource ¶
func (_this *BaseAudioContext) CreateBufferSource() (_result *AudioBufferSourceNode)
func (*BaseAudioContext) CreateChannelMerger ¶
func (_this *BaseAudioContext) CreateChannelMerger(numberOfInputs *uint) (_result *ChannelMergerNode)
func (*BaseAudioContext) CreateChannelSplitter ¶
func (_this *BaseAudioContext) CreateChannelSplitter(numberOfOutputs *uint) (_result *ChannelSplitterNode)
func (*BaseAudioContext) CreateConstantSource ¶
func (_this *BaseAudioContext) CreateConstantSource() (_result *ConstantSourceNode)
func (*BaseAudioContext) CreateConvolver ¶
func (_this *BaseAudioContext) CreateConvolver() (_result *ConvolverNode)
func (*BaseAudioContext) CreateDelay ¶
func (_this *BaseAudioContext) CreateDelay(maxDelayTime *float64) (_result *DelayNode)
func (*BaseAudioContext) CreateDynamicsCompressor ¶
func (_this *BaseAudioContext) CreateDynamicsCompressor() (_result *DynamicsCompressorNode)
func (*BaseAudioContext) CreateGain ¶
func (_this *BaseAudioContext) CreateGain() (_result *GainNode)
func (*BaseAudioContext) CreateIIRFilter ¶
func (_this *BaseAudioContext) CreateIIRFilter(feedforward []float64, feedback []float64) (_result *IIRFilterNode)
func (*BaseAudioContext) CreateOscillator ¶
func (_this *BaseAudioContext) CreateOscillator() (_result *OscillatorNode)
func (*BaseAudioContext) CreatePanner ¶
func (_this *BaseAudioContext) CreatePanner() (_result *PannerNode)
func (*BaseAudioContext) CreatePeriodicWave ¶
func (_this *BaseAudioContext) CreatePeriodicWave(real []float32, imag []float32, constraints *PeriodicWaveConstraints) (_result *PeriodicWave)
func (*BaseAudioContext) CreateScriptProcessor ¶
func (_this *BaseAudioContext) CreateScriptProcessor(bufferSize *uint, numberOfInputChannels *uint, numberOfOutputChannels *uint) (_result *ScriptProcessorNode)
func (*BaseAudioContext) CreateStereoPanner ¶
func (_this *BaseAudioContext) CreateStereoPanner() (_result *StereoPannerNode)
func (*BaseAudioContext) CreateWaveShaper ¶
func (_this *BaseAudioContext) CreateWaveShaper() (_result *WaveShaperNode)
func (*BaseAudioContext) CurrentTime ¶
func (_this *BaseAudioContext) CurrentTime() float64
CurrentTime returning attribute 'currentTime' with type float64 (idl: double).
func (*BaseAudioContext) DecodeAudioData ¶
func (_this *BaseAudioContext) DecodeAudioData(audioData *javascript.ArrayBuffer, successCallback *DecodeSuccessCallback, errorCallback *DecodeErrorCallback) (_result *PromiseAudioBuffer)
func (*BaseAudioContext) Destination ¶
func (_this *BaseAudioContext) Destination() *AudioDestinationNode
Destination returning attribute 'destination' with type AudioDestinationNode (idl: AudioDestinationNode).
func (*BaseAudioContext) Listener ¶
func (_this *BaseAudioContext) Listener() *AudioListener
Listener returning attribute 'listener' with type AudioListener (idl: AudioListener).
func (*BaseAudioContext) OnStateChange ¶
func (_this *BaseAudioContext) OnStateChange() domcore.EventHandlerFunc
OnStateChange returning attribute 'onstatechange' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*BaseAudioContext) SampleRate ¶
func (_this *BaseAudioContext) SampleRate() float32
SampleRate returning attribute 'sampleRate' with type float32 (idl: float).
func (*BaseAudioContext) SetOnStateChange ¶
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 ¶
func (_this *BaseAudioContext) State() AudioContextState
State returning attribute 'state' with type AudioContextState (idl: AudioContextState).
type BiquadFilterNode ¶
type BiquadFilterNode struct {
AudioNode
}
class: BiquadFilterNode
func BiquadFilterNodeFromJS ¶
func BiquadFilterNodeFromJS(value js.Value) *BiquadFilterNode
BiquadFilterNodeFromJS is casting a js.Value into BiquadFilterNode.
func BiquadFilterNodeFromWrapper ¶
func BiquadFilterNodeFromWrapper(input core.Wrapper) *BiquadFilterNode
BiquadFilterNodeFromJS is casting from something that holds a js.Value into BiquadFilterNode.
func NewBiquadFilterNode ¶
func NewBiquadFilterNode(context *BaseAudioContext, options *BiquadFilterOptions) (_result *BiquadFilterNode)
func (*BiquadFilterNode) Detune ¶
func (_this *BiquadFilterNode) Detune() *AudioParam
Detune returning attribute 'detune' with type AudioParam (idl: AudioParam).
func (*BiquadFilterNode) Frequency ¶
func (_this *BiquadFilterNode) Frequency() *AudioParam
Frequency returning attribute 'frequency' with type AudioParam (idl: AudioParam).
func (*BiquadFilterNode) Gain ¶
func (_this *BiquadFilterNode) Gain() *AudioParam
Gain returning attribute 'gain' with type AudioParam (idl: AudioParam).
func (*BiquadFilterNode) GetFrequencyResponse ¶
func (_this *BiquadFilterNode) GetFrequencyResponse(frequencyHz *javascript.Float32Array, magResponse *javascript.Float32Array, phaseResponse *javascript.Float32Array)
func (*BiquadFilterNode) Q ¶
func (_this *BiquadFilterNode) Q() *AudioParam
Q returning attribute 'Q' with type AudioParam (idl: AudioParam).
func (*BiquadFilterNode) SetType ¶
func (_this *BiquadFilterNode) SetType(value BiquadFilterType)
SetType setting attribute 'type' with type BiquadFilterType (idl: BiquadFilterType).
func (*BiquadFilterNode) Type ¶
func (_this *BiquadFilterNode) Type() BiquadFilterType
Type returning attribute 'type' with type BiquadFilterType (idl: BiquadFilterType).
type BiquadFilterOptions ¶
type BiquadFilterOptions struct { ChannelCount uint ChannelCountMode ChannelCountMode ChannelInterpretation ChannelInterpretation Type BiquadFilterType Q float32 Detune float32 Frequency float32 Gain float32 }
dictionary: BiquadFilterOptions
func BiquadFilterOptionsFromJS ¶
func BiquadFilterOptionsFromJS(value js.Value) *BiquadFilterOptions
BiquadFilterOptionsFromJS is allocating a new BiquadFilterOptions object and copy all values in the value javascript object.
func (*BiquadFilterOptions) JSValue ¶
func (_this *BiquadFilterOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type BiquadFilterType ¶
type BiquadFilterType int
enum: BiquadFilterType
const ( LowpassBiquadFilterType BiquadFilterType = iota HighpassBiquadFilterType BandpassBiquadFilterType LowshelfBiquadFilterType HighshelfBiquadFilterType PeakingBiquadFilterType NotchBiquadFilterType AllpassBiquadFilterType )
func BiquadFilterTypeFromJS ¶
func BiquadFilterTypeFromJS(value js.Value) BiquadFilterType
BiquadFilterTypeFromJS is converting a javascript value into a BiquadFilterType enum value.
func (*BiquadFilterType) JSValue ¶
func (this *BiquadFilterType) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (BiquadFilterType) Value ¶
func (this BiquadFilterType) Value() string
Value is converting this into javascript defined string value
type ChannelCountMode ¶
type ChannelCountMode int
enum: ChannelCountMode
const ( MaxChannelCountMode ChannelCountMode = iota ClampedMaxChannelCountMode ExplicitChannelCountMode )
func ChannelCountModeFromJS ¶
func ChannelCountModeFromJS(value js.Value) ChannelCountMode
ChannelCountModeFromJS is converting a javascript value into a ChannelCountMode enum value.
func (*ChannelCountMode) JSValue ¶
func (this *ChannelCountMode) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (ChannelCountMode) Value ¶
func (this ChannelCountMode) Value() string
Value is converting this into javascript defined string value
type ChannelInterpretation ¶
type ChannelInterpretation int
enum: ChannelInterpretation
const ( SpeakersChannelInterpretation ChannelInterpretation = iota DiscreteChannelInterpretation )
func ChannelInterpretationFromJS ¶
func ChannelInterpretationFromJS(value js.Value) ChannelInterpretation
ChannelInterpretationFromJS is converting a javascript value into a ChannelInterpretation enum value.
func (*ChannelInterpretation) JSValue ¶
func (this *ChannelInterpretation) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (ChannelInterpretation) Value ¶
func (this ChannelInterpretation) Value() string
Value is converting this into javascript defined string value
type ChannelMergerNode ¶
type ChannelMergerNode struct {
AudioNode
}
class: ChannelMergerNode
func ChannelMergerNodeFromJS ¶
func ChannelMergerNodeFromJS(value js.Value) *ChannelMergerNode
ChannelMergerNodeFromJS is casting a js.Value into ChannelMergerNode.
func ChannelMergerNodeFromWrapper ¶
func ChannelMergerNodeFromWrapper(input core.Wrapper) *ChannelMergerNode
ChannelMergerNodeFromJS is casting from something that holds a js.Value into ChannelMergerNode.
func NewChannelMergerNode ¶
func NewChannelMergerNode(context *BaseAudioContext, options *ChannelMergerOptions) (_result *ChannelMergerNode)
type ChannelMergerOptions ¶
type ChannelMergerOptions struct { ChannelCount uint ChannelCountMode ChannelCountMode ChannelInterpretation ChannelInterpretation NumberOfInputs uint }
dictionary: ChannelMergerOptions
func ChannelMergerOptionsFromJS ¶
func ChannelMergerOptionsFromJS(value js.Value) *ChannelMergerOptions
ChannelMergerOptionsFromJS is allocating a new ChannelMergerOptions object and copy all values in the value javascript object.
func (*ChannelMergerOptions) JSValue ¶
func (_this *ChannelMergerOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type ChannelSplitterNode ¶
type ChannelSplitterNode struct {
AudioNode
}
class: ChannelSplitterNode
func ChannelSplitterNodeFromJS ¶
func ChannelSplitterNodeFromJS(value js.Value) *ChannelSplitterNode
ChannelSplitterNodeFromJS is casting a js.Value into ChannelSplitterNode.
func ChannelSplitterNodeFromWrapper ¶
func ChannelSplitterNodeFromWrapper(input core.Wrapper) *ChannelSplitterNode
ChannelSplitterNodeFromJS is casting from something that holds a js.Value into ChannelSplitterNode.
func NewChannelSplitterNode ¶
func NewChannelSplitterNode(context *BaseAudioContext, options *ChannelSplitterOptions) (_result *ChannelSplitterNode)
type ChannelSplitterOptions ¶
type ChannelSplitterOptions struct { ChannelCount uint ChannelCountMode ChannelCountMode ChannelInterpretation ChannelInterpretation NumberOfOutputs uint }
dictionary: ChannelSplitterOptions
func ChannelSplitterOptionsFromJS ¶
func ChannelSplitterOptionsFromJS(value js.Value) *ChannelSplitterOptions
ChannelSplitterOptionsFromJS is allocating a new ChannelSplitterOptions object and copy all values in the value javascript object.
func (*ChannelSplitterOptions) JSValue ¶
func (_this *ChannelSplitterOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type ConstantSourceNode ¶
type ConstantSourceNode struct {
AudioScheduledSourceNode
}
class: ConstantSourceNode
func ConstantSourceNodeFromJS ¶
func ConstantSourceNodeFromJS(value js.Value) *ConstantSourceNode
ConstantSourceNodeFromJS is casting a js.Value into ConstantSourceNode.
func ConstantSourceNodeFromWrapper ¶
func ConstantSourceNodeFromWrapper(input core.Wrapper) *ConstantSourceNode
ConstantSourceNodeFromJS is casting from something that holds a js.Value into ConstantSourceNode.
func NewConstantSourceNode ¶
func NewConstantSourceNode(context *BaseAudioContext, options *ConstantSourceOptions) (_result *ConstantSourceNode)
func (*ConstantSourceNode) Offset ¶
func (_this *ConstantSourceNode) Offset() *AudioParam
Offset returning attribute 'offset' with type AudioParam (idl: AudioParam).
type ConstantSourceOptions ¶
type ConstantSourceOptions struct {
Offset float32
}
dictionary: ConstantSourceOptions
func ConstantSourceOptionsFromJS ¶
func ConstantSourceOptionsFromJS(value js.Value) *ConstantSourceOptions
ConstantSourceOptionsFromJS is allocating a new ConstantSourceOptions object and copy all values in the value javascript object.
func (*ConstantSourceOptions) JSValue ¶
func (_this *ConstantSourceOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type ConvolverNode ¶
type ConvolverNode struct {
AudioNode
}
class: ConvolverNode
func ConvolverNodeFromJS ¶
func ConvolverNodeFromJS(value js.Value) *ConvolverNode
ConvolverNodeFromJS is casting a js.Value into ConvolverNode.
func ConvolverNodeFromWrapper ¶
func ConvolverNodeFromWrapper(input core.Wrapper) *ConvolverNode
ConvolverNodeFromJS is casting from something that holds a js.Value into ConvolverNode.
func NewConvolverNode ¶
func NewConvolverNode(context *BaseAudioContext, options *ConvolverOptions) (_result *ConvolverNode)
func (*ConvolverNode) Buffer ¶
func (_this *ConvolverNode) Buffer() *AudioBuffer
Buffer returning attribute 'buffer' with type AudioBuffer (idl: AudioBuffer).
func (*ConvolverNode) Normalize ¶
func (_this *ConvolverNode) Normalize() bool
Normalize returning attribute 'normalize' with type bool (idl: boolean).
func (*ConvolverNode) SetBuffer ¶
func (_this *ConvolverNode) SetBuffer(value *AudioBuffer)
SetBuffer setting attribute 'buffer' with type AudioBuffer (idl: AudioBuffer).
func (*ConvolverNode) SetNormalize ¶
func (_this *ConvolverNode) SetNormalize(value bool)
SetNormalize setting attribute 'normalize' with type bool (idl: boolean).
type ConvolverOptions ¶
type ConvolverOptions struct { ChannelCount uint ChannelCountMode ChannelCountMode ChannelInterpretation ChannelInterpretation Buffer *AudioBuffer DisableNormalization bool }
dictionary: ConvolverOptions
func ConvolverOptionsFromJS ¶
func ConvolverOptionsFromJS(value js.Value) *ConvolverOptions
ConvolverOptionsFromJS is allocating a new ConvolverOptions object and copy all values in the value javascript object.
func (*ConvolverOptions) JSValue ¶
func (_this *ConvolverOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type DecodeErrorCallback ¶
DecodeErrorCallback is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func DecodeErrorCallbackToJS ¶
func DecodeErrorCallbackToJS(callback DecodeErrorCallbackFunc) *DecodeErrorCallback
type DecodeErrorCallbackFunc ¶
type DecodeErrorCallbackFunc func(_error *domcore.DOMException)
callback: DecodeErrorCallback
func DecodeErrorCallbackFromJS ¶
func DecodeErrorCallbackFromJS(_value js.Value) DecodeErrorCallbackFunc
type DecodeSuccessCallback ¶
DecodeSuccessCallback is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func DecodeSuccessCallbackToJS ¶
func DecodeSuccessCallbackToJS(callback DecodeSuccessCallbackFunc) *DecodeSuccessCallback
type DecodeSuccessCallbackFunc ¶
type DecodeSuccessCallbackFunc func(decodedData *AudioBuffer)
callback: DecodeSuccessCallback
func DecodeSuccessCallbackFromJS ¶
func DecodeSuccessCallbackFromJS(_value js.Value) DecodeSuccessCallbackFunc
type DelayNode ¶
type DelayNode struct {
AudioNode
}
class: DelayNode
func DelayNodeFromJS ¶
DelayNodeFromJS is casting a js.Value into DelayNode.
func DelayNodeFromWrapper ¶
DelayNodeFromJS is casting from something that holds a js.Value into DelayNode.
func NewDelayNode ¶
func NewDelayNode(context *BaseAudioContext, options *DelayOptions) (_result *DelayNode)
func (*DelayNode) DelayTime ¶
func (_this *DelayNode) DelayTime() *AudioParam
DelayTime returning attribute 'delayTime' with type AudioParam (idl: AudioParam).
type DelayOptions ¶
type DelayOptions struct { ChannelCount uint ChannelCountMode ChannelCountMode ChannelInterpretation ChannelInterpretation MaxDelayTime float64 DelayTime float64 }
dictionary: DelayOptions
func DelayOptionsFromJS ¶
func DelayOptionsFromJS(value js.Value) *DelayOptions
DelayOptionsFromJS is allocating a new DelayOptions object and copy all values in the value javascript object.
func (*DelayOptions) JSValue ¶
func (_this *DelayOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type DistanceModelType ¶
type DistanceModelType int
enum: DistanceModelType
const ( LinearDistanceModelType DistanceModelType = iota InverseDistanceModelType ExponentialDistanceModelType )
func DistanceModelTypeFromJS ¶
func DistanceModelTypeFromJS(value js.Value) DistanceModelType
DistanceModelTypeFromJS is converting a javascript value into a DistanceModelType enum value.
func (*DistanceModelType) JSValue ¶
func (this *DistanceModelType) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (DistanceModelType) Value ¶
func (this DistanceModelType) Value() string
Value is converting this into javascript defined string value
type DynamicsCompressorNode ¶
type DynamicsCompressorNode struct {
AudioNode
}
class: DynamicsCompressorNode
func DynamicsCompressorNodeFromJS ¶
func DynamicsCompressorNodeFromJS(value js.Value) *DynamicsCompressorNode
DynamicsCompressorNodeFromJS is casting a js.Value into DynamicsCompressorNode.
func DynamicsCompressorNodeFromWrapper ¶
func DynamicsCompressorNodeFromWrapper(input core.Wrapper) *DynamicsCompressorNode
DynamicsCompressorNodeFromJS is casting from something that holds a js.Value into DynamicsCompressorNode.
func NewDynamicsCompressorNode ¶
func NewDynamicsCompressorNode(context *BaseAudioContext, options *DynamicsCompressorOptions) (_result *DynamicsCompressorNode)
func (*DynamicsCompressorNode) Attack ¶
func (_this *DynamicsCompressorNode) Attack() *AudioParam
Attack returning attribute 'attack' with type AudioParam (idl: AudioParam).
func (*DynamicsCompressorNode) Knee ¶
func (_this *DynamicsCompressorNode) Knee() *AudioParam
Knee returning attribute 'knee' with type AudioParam (idl: AudioParam).
func (*DynamicsCompressorNode) Ratio ¶
func (_this *DynamicsCompressorNode) Ratio() *AudioParam
Ratio returning attribute 'ratio' with type AudioParam (idl: AudioParam).
func (*DynamicsCompressorNode) Reduction ¶
func (_this *DynamicsCompressorNode) Reduction() float32
Reduction returning attribute 'reduction' with type float32 (idl: float).
func (*DynamicsCompressorNode) Release ¶
func (_this *DynamicsCompressorNode) Release() *AudioParam
Release returning attribute 'release' with type AudioParam (idl: AudioParam).
func (*DynamicsCompressorNode) Threshold ¶
func (_this *DynamicsCompressorNode) Threshold() *AudioParam
Threshold returning attribute 'threshold' with type AudioParam (idl: AudioParam).
type DynamicsCompressorOptions ¶
type DynamicsCompressorOptions struct { ChannelCount uint ChannelCountMode ChannelCountMode ChannelInterpretation ChannelInterpretation Attack float32 Knee float32 Ratio float32 Release float32 Threshold float32 }
dictionary: DynamicsCompressorOptions
func DynamicsCompressorOptionsFromJS ¶
func DynamicsCompressorOptionsFromJS(value js.Value) *DynamicsCompressorOptions
DynamicsCompressorOptionsFromJS is allocating a new DynamicsCompressorOptions object and copy all values in the value javascript object.
func (*DynamicsCompressorOptions) JSValue ¶
func (_this *DynamicsCompressorOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type GainNode ¶
type GainNode struct {
AudioNode
}
class: GainNode
func GainNodeFromJS ¶
GainNodeFromJS is casting a js.Value into GainNode.
func GainNodeFromWrapper ¶
GainNodeFromJS is casting from something that holds a js.Value into GainNode.
func NewGainNode ¶
func NewGainNode(context *BaseAudioContext, options *GainOptions) (_result *GainNode)
func (*GainNode) Gain ¶
func (_this *GainNode) Gain() *AudioParam
Gain returning attribute 'gain' with type AudioParam (idl: AudioParam).
type GainOptions ¶
type GainOptions struct { ChannelCount uint ChannelCountMode ChannelCountMode ChannelInterpretation ChannelInterpretation Gain float32 }
dictionary: GainOptions
func GainOptionsFromJS ¶
func GainOptionsFromJS(value js.Value) *GainOptions
GainOptionsFromJS is allocating a new GainOptions object and copy all values in the value javascript object.
func (*GainOptions) JSValue ¶
func (_this *GainOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type IIRFilterNode ¶
type IIRFilterNode struct {
AudioNode
}
class: IIRFilterNode
func IIRFilterNodeFromJS ¶
func IIRFilterNodeFromJS(value js.Value) *IIRFilterNode
IIRFilterNodeFromJS is casting a js.Value into IIRFilterNode.
func IIRFilterNodeFromWrapper ¶
func IIRFilterNodeFromWrapper(input core.Wrapper) *IIRFilterNode
IIRFilterNodeFromJS is casting from something that holds a js.Value into IIRFilterNode.
func NewIIRFilterNode ¶
func NewIIRFilterNode(context *BaseAudioContext, options *IIRFilterOptions) (_result *IIRFilterNode)
func (*IIRFilterNode) GetFrequencyResponse ¶
func (_this *IIRFilterNode) GetFrequencyResponse(frequencyHz *javascript.Float32Array, magResponse *javascript.Float32Array, phaseResponse *javascript.Float32Array)
type IIRFilterOptions ¶
type IIRFilterOptions struct { ChannelCount uint ChannelCountMode ChannelCountMode ChannelInterpretation ChannelInterpretation Feedforward []float64 Feedback []float64 }
dictionary: IIRFilterOptions
func IIRFilterOptionsFromJS ¶
func IIRFilterOptionsFromJS(value js.Value) *IIRFilterOptions
IIRFilterOptionsFromJS is allocating a new IIRFilterOptions object and copy all values in the value javascript object.
func (*IIRFilterOptions) JSValue ¶
func (_this *IIRFilterOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type MediaElementAudioSourceNode ¶
type MediaElementAudioSourceNode struct {
AudioNode
}
class: MediaElementAudioSourceNode
func MediaElementAudioSourceNodeFromJS ¶
func MediaElementAudioSourceNodeFromJS(value js.Value) *MediaElementAudioSourceNode
MediaElementAudioSourceNodeFromJS is casting a js.Value into MediaElementAudioSourceNode.
func MediaElementAudioSourceNodeFromWrapper ¶
func MediaElementAudioSourceNodeFromWrapper(input core.Wrapper) *MediaElementAudioSourceNode
MediaElementAudioSourceNodeFromJS is casting from something that holds a js.Value into MediaElementAudioSourceNode.
func NewMediaElementAudioSourceNode ¶
func NewMediaElementAudioSourceNode(context *AudioContext, options *MediaElementAudioSourceOptions) (_result *MediaElementAudioSourceNode)
func (*MediaElementAudioSourceNode) MediaElement ¶
func (_this *MediaElementAudioSourceNode) MediaElement() *media.HTMLMediaElement
MediaElement returning attribute 'mediaElement' with type media.HTMLMediaElement (idl: HTMLMediaElement).
type MediaElementAudioSourceOptions ¶
type MediaElementAudioSourceOptions struct {
MediaElement *media.HTMLMediaElement
}
dictionary: MediaElementAudioSourceOptions
func MediaElementAudioSourceOptionsFromJS ¶
func MediaElementAudioSourceOptionsFromJS(value js.Value) *MediaElementAudioSourceOptions
MediaElementAudioSourceOptionsFromJS is allocating a new MediaElementAudioSourceOptions object and copy all values in the value javascript object.
func (*MediaElementAudioSourceOptions) JSValue ¶
func (_this *MediaElementAudioSourceOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type MediaStreamAudioDestinationNode ¶
type MediaStreamAudioDestinationNode struct {
AudioNode
}
class: MediaStreamAudioDestinationNode
func MediaStreamAudioDestinationNodeFromJS ¶
func MediaStreamAudioDestinationNodeFromJS(value js.Value) *MediaStreamAudioDestinationNode
MediaStreamAudioDestinationNodeFromJS is casting a js.Value into MediaStreamAudioDestinationNode.
func MediaStreamAudioDestinationNodeFromWrapper ¶
func MediaStreamAudioDestinationNodeFromWrapper(input core.Wrapper) *MediaStreamAudioDestinationNode
MediaStreamAudioDestinationNodeFromJS is casting from something that holds a js.Value into MediaStreamAudioDestinationNode.
func NewMediaStreamAudioDestinationNode ¶
func NewMediaStreamAudioDestinationNode(context *AudioContext, options *AudioNodeOptions) (_result *MediaStreamAudioDestinationNode)
func (*MediaStreamAudioDestinationNode) Stream ¶
func (_this *MediaStreamAudioDestinationNode) Stream() *local.MediaStream
Stream returning attribute 'stream' with type local.MediaStream (idl: MediaStream).
type MediaStreamAudioSourceNode ¶
type MediaStreamAudioSourceNode struct {
AudioNode
}
class: MediaStreamAudioSourceNode
func MediaStreamAudioSourceNodeFromJS ¶
func MediaStreamAudioSourceNodeFromJS(value js.Value) *MediaStreamAudioSourceNode
MediaStreamAudioSourceNodeFromJS is casting a js.Value into MediaStreamAudioSourceNode.
func MediaStreamAudioSourceNodeFromWrapper ¶
func MediaStreamAudioSourceNodeFromWrapper(input core.Wrapper) *MediaStreamAudioSourceNode
MediaStreamAudioSourceNodeFromJS is casting from something that holds a js.Value into MediaStreamAudioSourceNode.
func NewMediaStreamAudioSourceNode ¶
func NewMediaStreamAudioSourceNode(context *AudioContext, options *MediaStreamAudioSourceOptions) (_result *MediaStreamAudioSourceNode)
func (*MediaStreamAudioSourceNode) MediaStream ¶
func (_this *MediaStreamAudioSourceNode) MediaStream() *local.MediaStream
MediaStream returning attribute 'mediaStream' with type local.MediaStream (idl: MediaStream).
type MediaStreamAudioSourceOptions ¶
type MediaStreamAudioSourceOptions struct {
MediaStream *local.MediaStream
}
dictionary: MediaStreamAudioSourceOptions
func MediaStreamAudioSourceOptionsFromJS ¶
func MediaStreamAudioSourceOptionsFromJS(value js.Value) *MediaStreamAudioSourceOptions
MediaStreamAudioSourceOptionsFromJS is allocating a new MediaStreamAudioSourceOptions object and copy all values in the value javascript object.
func (*MediaStreamAudioSourceOptions) JSValue ¶
func (_this *MediaStreamAudioSourceOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type MediaStreamTrackAudioSourceNode ¶
type MediaStreamTrackAudioSourceNode struct {
AudioNode
}
class: MediaStreamTrackAudioSourceNode
func MediaStreamTrackAudioSourceNodeFromJS ¶
func MediaStreamTrackAudioSourceNodeFromJS(value js.Value) *MediaStreamTrackAudioSourceNode
MediaStreamTrackAudioSourceNodeFromJS is casting a js.Value into MediaStreamTrackAudioSourceNode.
func MediaStreamTrackAudioSourceNodeFromWrapper ¶
func MediaStreamTrackAudioSourceNodeFromWrapper(input core.Wrapper) *MediaStreamTrackAudioSourceNode
MediaStreamTrackAudioSourceNodeFromJS is casting from something that holds a js.Value into MediaStreamTrackAudioSourceNode.
func NewMediaStreamTrackAudioSourceNode ¶
func NewMediaStreamTrackAudioSourceNode(context *AudioContext, options *MediaStreamTrackAudioSourceOptions) (_result *MediaStreamTrackAudioSourceNode)
type MediaStreamTrackAudioSourceOptions ¶
type MediaStreamTrackAudioSourceOptions struct {
MediaStreamTrack *local.MediaStreamTrack
}
dictionary: MediaStreamTrackAudioSourceOptions
func MediaStreamTrackAudioSourceOptionsFromJS ¶
func MediaStreamTrackAudioSourceOptionsFromJS(value js.Value) *MediaStreamTrackAudioSourceOptions
MediaStreamTrackAudioSourceOptionsFromJS is allocating a new MediaStreamTrackAudioSourceOptions object and copy all values in the value javascript object.
func (*MediaStreamTrackAudioSourceOptions) JSValue ¶
func (_this *MediaStreamTrackAudioSourceOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type OfflineAudioCompletionEvent ¶
class: OfflineAudioCompletionEvent
func NewOfflineAudioCompletionEvent ¶
func NewOfflineAudioCompletionEvent(_type string, eventInitDict *OfflineAudioCompletionEventInit) (_result *OfflineAudioCompletionEvent)
func OfflineAudioCompletionEventFromJS ¶
func OfflineAudioCompletionEventFromJS(value js.Value) *OfflineAudioCompletionEvent
OfflineAudioCompletionEventFromJS is casting a js.Value into OfflineAudioCompletionEvent.
func OfflineAudioCompletionEventFromWrapper ¶
func OfflineAudioCompletionEventFromWrapper(input core.Wrapper) *OfflineAudioCompletionEvent
OfflineAudioCompletionEventFromJS is casting from something that holds a js.Value into OfflineAudioCompletionEvent.
func (*OfflineAudioCompletionEvent) RenderedBuffer ¶
func (_this *OfflineAudioCompletionEvent) RenderedBuffer() *AudioBuffer
RenderedBuffer returning attribute 'renderedBuffer' with type AudioBuffer (idl: AudioBuffer).
type OfflineAudioCompletionEventInit ¶
type OfflineAudioCompletionEventInit struct { Bubbles bool Cancelable bool Composed bool RenderedBuffer *AudioBuffer }
dictionary: OfflineAudioCompletionEventInit
func OfflineAudioCompletionEventInitFromJS ¶
func OfflineAudioCompletionEventInitFromJS(value js.Value) *OfflineAudioCompletionEventInit
OfflineAudioCompletionEventInitFromJS is allocating a new OfflineAudioCompletionEventInit object and copy all values in the value javascript object.
func (*OfflineAudioCompletionEventInit) JSValue ¶
func (_this *OfflineAudioCompletionEventInit) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type OfflineAudioContext ¶
type OfflineAudioContext struct {
BaseAudioContext
}
class: OfflineAudioContext
func NewOfflineAudioContext ¶
func NewOfflineAudioContext(numberOfChannels uint, length uint, sampleRate float32) (_result *OfflineAudioContext)
func OfflineAudioContextFromJS ¶
func OfflineAudioContextFromJS(value js.Value) *OfflineAudioContext
OfflineAudioContextFromJS is casting a js.Value into OfflineAudioContext.
func OfflineAudioContextFromWrapper ¶
func OfflineAudioContextFromWrapper(input core.Wrapper) *OfflineAudioContext
OfflineAudioContextFromJS is casting from something that holds a js.Value into OfflineAudioContext.
func (*OfflineAudioContext) AddEventComplete ¶
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 ¶
func (_this *OfflineAudioContext) Length() uint
Length returning attribute 'length' with type uint (idl: unsigned long).
func (*OfflineAudioContext) OnComplete ¶
func (_this *OfflineAudioContext) OnComplete() domcore.EventHandlerFunc
OnComplete returning attribute 'oncomplete' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*OfflineAudioContext) Resume ¶
func (_this *OfflineAudioContext) Resume() (_result *javascript.PromiseVoid)
func (*OfflineAudioContext) SetOnComplete ¶
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 ¶
func (_this *OfflineAudioContext) StartRendering() (_result *PromiseAudioBuffer)
func (*OfflineAudioContext) Suspend ¶
func (_this *OfflineAudioContext) Suspend(suspendTime float64) (_result *javascript.PromiseVoid)
type OfflineAudioContextOptions ¶
dictionary: OfflineAudioContextOptions
func OfflineAudioContextOptionsFromJS ¶
func OfflineAudioContextOptionsFromJS(value js.Value) *OfflineAudioContextOptions
OfflineAudioContextOptionsFromJS is allocating a new OfflineAudioContextOptions object and copy all values in the value javascript object.
func (*OfflineAudioContextOptions) JSValue ¶
func (_this *OfflineAudioContextOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type OscillatorNode ¶
type OscillatorNode struct {
AudioScheduledSourceNode
}
class: OscillatorNode
func NewOscillatorNode ¶
func NewOscillatorNode(context *BaseAudioContext, options *OscillatorOptions) (_result *OscillatorNode)
func OscillatorNodeFromJS ¶
func OscillatorNodeFromJS(value js.Value) *OscillatorNode
OscillatorNodeFromJS is casting a js.Value into OscillatorNode.
func OscillatorNodeFromWrapper ¶
func OscillatorNodeFromWrapper(input core.Wrapper) *OscillatorNode
OscillatorNodeFromJS is casting from something that holds a js.Value into OscillatorNode.
func (*OscillatorNode) Detune ¶
func (_this *OscillatorNode) Detune() *AudioParam
Detune returning attribute 'detune' with type AudioParam (idl: AudioParam).
func (*OscillatorNode) Frequency ¶
func (_this *OscillatorNode) Frequency() *AudioParam
Frequency returning attribute 'frequency' with type AudioParam (idl: AudioParam).
func (*OscillatorNode) SetPeriodicWave ¶
func (_this *OscillatorNode) SetPeriodicWave(periodicWave *PeriodicWave)
func (*OscillatorNode) SetType ¶
func (_this *OscillatorNode) SetType(value OscillatorType)
SetType setting attribute 'type' with type OscillatorType (idl: OscillatorType).
func (*OscillatorNode) Type ¶
func (_this *OscillatorNode) Type() OscillatorType
Type returning attribute 'type' with type OscillatorType (idl: OscillatorType).
type OscillatorOptions ¶
type OscillatorOptions struct { ChannelCount uint ChannelCountMode ChannelCountMode ChannelInterpretation ChannelInterpretation Type OscillatorType Frequency float32 Detune float32 PeriodicWave *PeriodicWave }
dictionary: OscillatorOptions
func OscillatorOptionsFromJS ¶
func OscillatorOptionsFromJS(value js.Value) *OscillatorOptions
OscillatorOptionsFromJS is allocating a new OscillatorOptions object and copy all values in the value javascript object.
func (*OscillatorOptions) JSValue ¶
func (_this *OscillatorOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type OscillatorType ¶
type OscillatorType int
enum: OscillatorType
const ( SineOscillatorType OscillatorType = iota SquareOscillatorType SawtoothOscillatorType TriangleOscillatorType CustomOscillatorType )
func OscillatorTypeFromJS ¶
func OscillatorTypeFromJS(value js.Value) OscillatorType
OscillatorTypeFromJS is converting a javascript value into a OscillatorType enum value.
func (*OscillatorType) JSValue ¶
func (this *OscillatorType) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (OscillatorType) Value ¶
func (this OscillatorType) Value() string
Value is converting this into javascript defined string value
type OverSampleType ¶
type OverSampleType int
enum: OverSampleType
const (
NoneOverSampleType OverSampleType = iota
)
func OverSampleTypeFromJS ¶
func OverSampleTypeFromJS(value js.Value) OverSampleType
OverSampleTypeFromJS is converting a javascript value into a OverSampleType enum value.
func (*OverSampleType) JSValue ¶
func (this *OverSampleType) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (OverSampleType) Value ¶
func (this OverSampleType) Value() string
Value is converting this into javascript defined string value
type PannerNode ¶
type PannerNode struct {
AudioNode
}
class: PannerNode
func NewPannerNode ¶
func NewPannerNode(context *BaseAudioContext, options *PannerOptions) (_result *PannerNode)
func PannerNodeFromJS ¶
func PannerNodeFromJS(value js.Value) *PannerNode
PannerNodeFromJS is casting a js.Value into PannerNode.
func PannerNodeFromWrapper ¶
func PannerNodeFromWrapper(input core.Wrapper) *PannerNode
PannerNodeFromJS is casting from something that holds a js.Value into PannerNode.
func (*PannerNode) ConeInnerAngle ¶
func (_this *PannerNode) ConeInnerAngle() float64
ConeInnerAngle returning attribute 'coneInnerAngle' with type float64 (idl: double).
func (*PannerNode) ConeOuterAngle ¶
func (_this *PannerNode) ConeOuterAngle() float64
ConeOuterAngle returning attribute 'coneOuterAngle' with type float64 (idl: double).
func (*PannerNode) ConeOuterGain ¶
func (_this *PannerNode) ConeOuterGain() float64
ConeOuterGain returning attribute 'coneOuterGain' with type float64 (idl: double).
func (*PannerNode) DistanceModel ¶
func (_this *PannerNode) DistanceModel() DistanceModelType
DistanceModel returning attribute 'distanceModel' with type DistanceModelType (idl: DistanceModelType).
func (*PannerNode) MaxDistance ¶
func (_this *PannerNode) MaxDistance() float64
MaxDistance returning attribute 'maxDistance' with type float64 (idl: double).
func (*PannerNode) OrientationX ¶
func (_this *PannerNode) OrientationX() *AudioParam
OrientationX returning attribute 'orientationX' with type AudioParam (idl: AudioParam).
func (*PannerNode) OrientationY ¶
func (_this *PannerNode) OrientationY() *AudioParam
OrientationY returning attribute 'orientationY' with type AudioParam (idl: AudioParam).
func (*PannerNode) OrientationZ ¶
func (_this *PannerNode) OrientationZ() *AudioParam
OrientationZ returning attribute 'orientationZ' with type AudioParam (idl: AudioParam).
func (*PannerNode) PanningModel ¶
func (_this *PannerNode) PanningModel() PanningModelType
PanningModel returning attribute 'panningModel' with type PanningModelType (idl: PanningModelType).
func (*PannerNode) PositionX ¶
func (_this *PannerNode) PositionX() *AudioParam
PositionX returning attribute 'positionX' with type AudioParam (idl: AudioParam).
func (*PannerNode) PositionY ¶
func (_this *PannerNode) PositionY() *AudioParam
PositionY returning attribute 'positionY' with type AudioParam (idl: AudioParam).
func (*PannerNode) PositionZ ¶
func (_this *PannerNode) PositionZ() *AudioParam
PositionZ returning attribute 'positionZ' with type AudioParam (idl: AudioParam).
func (*PannerNode) RefDistance ¶
func (_this *PannerNode) RefDistance() float64
RefDistance returning attribute 'refDistance' with type float64 (idl: double).
func (*PannerNode) RolloffFactor ¶
func (_this *PannerNode) RolloffFactor() float64
RolloffFactor returning attribute 'rolloffFactor' with type float64 (idl: double).
func (*PannerNode) SetConeInnerAngle ¶
func (_this *PannerNode) SetConeInnerAngle(value float64)
SetConeInnerAngle setting attribute 'coneInnerAngle' with type float64 (idl: double).
func (*PannerNode) SetConeOuterAngle ¶
func (_this *PannerNode) SetConeOuterAngle(value float64)
SetConeOuterAngle setting attribute 'coneOuterAngle' with type float64 (idl: double).
func (*PannerNode) SetConeOuterGain ¶
func (_this *PannerNode) SetConeOuterGain(value float64)
SetConeOuterGain setting attribute 'coneOuterGain' with type float64 (idl: double).
func (*PannerNode) SetDistanceModel ¶
func (_this *PannerNode) SetDistanceModel(value DistanceModelType)
SetDistanceModel setting attribute 'distanceModel' with type DistanceModelType (idl: DistanceModelType).
func (*PannerNode) SetMaxDistance ¶
func (_this *PannerNode) SetMaxDistance(value float64)
SetMaxDistance setting attribute 'maxDistance' with type float64 (idl: double).
func (*PannerNode) SetOrientation ¶
func (_this *PannerNode) SetOrientation(x float32, y float32, z float32)
func (*PannerNode) SetPanningModel ¶
func (_this *PannerNode) SetPanningModel(value PanningModelType)
SetPanningModel setting attribute 'panningModel' with type PanningModelType (idl: PanningModelType).
func (*PannerNode) SetPosition ¶
func (_this *PannerNode) SetPosition(x float32, y float32, z float32)
func (*PannerNode) SetRefDistance ¶
func (_this *PannerNode) SetRefDistance(value float64)
SetRefDistance setting attribute 'refDistance' with type float64 (idl: double).
func (*PannerNode) SetRolloffFactor ¶
func (_this *PannerNode) SetRolloffFactor(value float64)
SetRolloffFactor setting attribute 'rolloffFactor' with type float64 (idl: double).
type PannerOptions ¶
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 ¶
func PannerOptionsFromJS(value js.Value) *PannerOptions
PannerOptionsFromJS is allocating a new PannerOptions object and copy all values in the value javascript object.
func (*PannerOptions) JSValue ¶
func (_this *PannerOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type PanningModelType ¶
type PanningModelType int
enum: PanningModelType
const ( EqualpowerPanningModelType PanningModelType = iota HRTFPanningModelType )
func PanningModelTypeFromJS ¶
func PanningModelTypeFromJS(value js.Value) PanningModelType
PanningModelTypeFromJS is converting a javascript value into a PanningModelType enum value.
func (*PanningModelType) JSValue ¶
func (this *PanningModelType) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (PanningModelType) Value ¶
func (this PanningModelType) Value() string
Value is converting this into javascript defined string value
type PeriodicWave ¶
class: PeriodicWave
func NewPeriodicWave ¶
func NewPeriodicWave(context *BaseAudioContext, options *PeriodicWaveOptions) (_result *PeriodicWave)
func PeriodicWaveFromJS ¶
func PeriodicWaveFromJS(value js.Value) *PeriodicWave
PeriodicWaveFromJS is casting a js.Value into PeriodicWave.
func PeriodicWaveFromWrapper ¶
func PeriodicWaveFromWrapper(input core.Wrapper) *PeriodicWave
PeriodicWaveFromJS is casting from something that holds a js.Value into PeriodicWave.
func (*PeriodicWave) JSValue ¶
func (_this *PeriodicWave) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
type PeriodicWaveConstraints ¶
type PeriodicWaveConstraints struct {
DisableNormalization bool
}
dictionary: PeriodicWaveConstraints
func PeriodicWaveConstraintsFromJS ¶
func PeriodicWaveConstraintsFromJS(value js.Value) *PeriodicWaveConstraints
PeriodicWaveConstraintsFromJS is allocating a new PeriodicWaveConstraints object and copy all values in the value javascript object.
func (*PeriodicWaveConstraints) JSValue ¶
func (_this *PeriodicWaveConstraints) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type PeriodicWaveOptions ¶
dictionary: PeriodicWaveOptions
func PeriodicWaveOptionsFromJS ¶
func PeriodicWaveOptionsFromJS(value js.Value) *PeriodicWaveOptions
PeriodicWaveOptionsFromJS is allocating a new PeriodicWaveOptions object and copy all values in the value javascript object.
func (*PeriodicWaveOptions) JSValue ¶
func (_this *PeriodicWaveOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type PromiseAudioBuffer ¶
type PromiseAudioBuffer struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: Promise
func PromiseAudioBufferFromJS ¶
func PromiseAudioBufferFromJS(value js.Value) *PromiseAudioBuffer
PromiseAudioBufferFromJS is casting a js.Value into PromiseAudioBuffer.
func PromiseAudioBufferFromWrapper ¶
func PromiseAudioBufferFromWrapper(input core.Wrapper) *PromiseAudioBuffer
PromiseAudioBufferFromJS is casting from something that holds a js.Value into PromiseAudioBuffer.
func (*PromiseAudioBuffer) Catch ¶
func (_this *PromiseAudioBuffer) Catch(onRejected *PromiseAudioBufferOnRejected) (_result *PromiseAudioBuffer)
func (*PromiseAudioBuffer) Finally ¶
func (_this *PromiseAudioBuffer) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseAudioBuffer)
func (*PromiseAudioBuffer) JSValue ¶
func (_this *PromiseAudioBuffer) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*PromiseAudioBuffer) Then ¶
func (_this *PromiseAudioBuffer) Then(onFulfilled *PromiseAudioBufferOnFulfilled, onRejected *PromiseAudioBufferOnRejected) (_result *PromiseAudioBuffer)
type PromiseAudioBufferOnFulfilled ¶
PromiseAudioBufferOnFulfilled is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseAudioBufferOnFulfilledToJS ¶
func PromiseAudioBufferOnFulfilledToJS(callback PromiseAudioBufferOnFulfilledFunc) *PromiseAudioBufferOnFulfilled
type PromiseAudioBufferOnFulfilledFunc ¶
type PromiseAudioBufferOnFulfilledFunc func(value *AudioBuffer)
callback: PromiseTemplateOnFulfilled
func PromiseAudioBufferOnFulfilledFromJS ¶
func PromiseAudioBufferOnFulfilledFromJS(_value js.Value) PromiseAudioBufferOnFulfilledFunc
type PromiseAudioBufferOnRejected ¶
PromiseAudioBufferOnRejected is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseAudioBufferOnRejectedToJS ¶
func PromiseAudioBufferOnRejectedToJS(callback PromiseAudioBufferOnRejectedFunc) *PromiseAudioBufferOnRejected
type PromiseAudioBufferOnRejectedFunc ¶
callback: PromiseTemplateOnRejected
func PromiseAudioBufferOnRejectedFromJS ¶
func PromiseAudioBufferOnRejectedFromJS(_value js.Value) PromiseAudioBufferOnRejectedFunc
type ScriptProcessorNode ¶
type ScriptProcessorNode struct {
AudioNode
}
class: ScriptProcessorNode
func ScriptProcessorNodeFromJS ¶
func ScriptProcessorNodeFromJS(value js.Value) *ScriptProcessorNode
ScriptProcessorNodeFromJS is casting a js.Value into ScriptProcessorNode.
func ScriptProcessorNodeFromWrapper ¶
func ScriptProcessorNodeFromWrapper(input core.Wrapper) *ScriptProcessorNode
ScriptProcessorNodeFromJS is casting from something that holds a js.Value into ScriptProcessorNode.
func (*ScriptProcessorNode) AddEventAudioProcess ¶
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 ¶
func (_this *ScriptProcessorNode) BufferSize() int
BufferSize returning attribute 'bufferSize' with type int (idl: long).
func (*ScriptProcessorNode) OnAudioProcess ¶
func (_this *ScriptProcessorNode) OnAudioProcess() domcore.EventHandlerFunc
OnAudioProcess returning attribute 'onaudioprocess' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*ScriptProcessorNode) SetOnAudioProcess ¶
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 ¶
type StereoPannerNode struct {
AudioNode
}
class: StereoPannerNode
func NewStereoPannerNode ¶
func NewStereoPannerNode(context *BaseAudioContext, options *StereoPannerOptions) (_result *StereoPannerNode)
func StereoPannerNodeFromJS ¶
func StereoPannerNodeFromJS(value js.Value) *StereoPannerNode
StereoPannerNodeFromJS is casting a js.Value into StereoPannerNode.
func StereoPannerNodeFromWrapper ¶
func StereoPannerNodeFromWrapper(input core.Wrapper) *StereoPannerNode
StereoPannerNodeFromJS is casting from something that holds a js.Value into StereoPannerNode.
func (*StereoPannerNode) Pan ¶
func (_this *StereoPannerNode) Pan() *AudioParam
Pan returning attribute 'pan' with type AudioParam (idl: AudioParam).
type StereoPannerOptions ¶
type StereoPannerOptions struct { ChannelCount uint ChannelCountMode ChannelCountMode ChannelInterpretation ChannelInterpretation Pan float32 }
dictionary: StereoPannerOptions
func StereoPannerOptionsFromJS ¶
func StereoPannerOptionsFromJS(value js.Value) *StereoPannerOptions
StereoPannerOptionsFromJS is allocating a new StereoPannerOptions object and copy all values in the value javascript object.
func (*StereoPannerOptions) JSValue ¶
func (_this *StereoPannerOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type Union ¶
func UnionFromJS ¶
type WaveShaperNode ¶
type WaveShaperNode struct {
AudioNode
}
class: WaveShaperNode
func NewWaveShaperNode ¶
func NewWaveShaperNode(context *BaseAudioContext, options *WaveShaperOptions) (_result *WaveShaperNode)
func WaveShaperNodeFromJS ¶
func WaveShaperNodeFromJS(value js.Value) *WaveShaperNode
WaveShaperNodeFromJS is casting a js.Value into WaveShaperNode.
func WaveShaperNodeFromWrapper ¶
func WaveShaperNodeFromWrapper(input core.Wrapper) *WaveShaperNode
WaveShaperNodeFromJS is casting from something that holds a js.Value into WaveShaperNode.
func (*WaveShaperNode) Curve ¶
func (_this *WaveShaperNode) Curve() *javascript.Float32Array
Curve returning attribute 'curve' with type javascript.Float32Array (idl: Float32Array).
func (*WaveShaperNode) Oversample ¶
func (_this *WaveShaperNode) Oversample() OverSampleType
Oversample returning attribute 'oversample' with type OverSampleType (idl: OverSampleType).
func (*WaveShaperNode) SetCurve ¶
func (_this *WaveShaperNode) SetCurve(value *javascript.Float32Array)
SetCurve setting attribute 'curve' with type javascript.Float32Array (idl: Float32Array).
func (*WaveShaperNode) SetOversample ¶
func (_this *WaveShaperNode) SetOversample(value OverSampleType)
SetOversample setting attribute 'oversample' with type OverSampleType (idl: OverSampleType).
type WaveShaperOptions ¶
type WaveShaperOptions struct { ChannelCount uint ChannelCountMode ChannelCountMode ChannelInterpretation ChannelInterpretation Curve []float32 Oversample OverSampleType }
dictionary: WaveShaperOptions
func WaveShaperOptionsFromJS ¶
func WaveShaperOptionsFromJS(value js.Value) *WaveShaperOptions
WaveShaperOptionsFromJS is allocating a new WaveShaperOptions object and copy all values in the value javascript object.
func (*WaveShaperOptions) JSValue ¶
func (_this *WaveShaperOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values