Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface BaseAudioContext

Hierarchy

Index

Properties

EventTarget

EventTarget: { constructor: any; prototype: EventTarget }

Type declaration

Readonly audioWorklet

audioWorklet: AudioWorklet

Readonly currentTime

currentTime: number

Readonly destination

Readonly listener

listener: AudioListener

onstatechange

onstatechange: ((this: BaseAudioContext, ev: Event) => any) | null

Readonly sampleRate

sampleRate: number

Readonly state

Methods

addEventListener

createAnalyser

  • Returns AnalyserNode

createBiquadFilter

  • Returns BiquadFilterNode

createBuffer

  • createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer
  • Parameters

    • numberOfChannels: number
    • length: number
    • sampleRate: number

    Returns AudioBuffer

createBufferSource

createChannelMerger

  • Parameters

    • Optional numberOfInputs: number

    Returns ChannelMergerNode

createChannelSplitter

  • Parameters

    • Optional numberOfOutputs: number

    Returns ChannelSplitterNode

createConstantSource

createConvolver

  • Returns ConvolverNode

createDelay

  • createDelay(maxDelayTime?: number): DelayNode
  • Parameters

    • Optional maxDelayTime: number

    Returns DelayNode

createDynamicsCompressor

createGain

  • Returns GainNode

createIIRFilter

  • createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode
  • Parameters

    • feedforward: number[]
    • feedback: number[]

    Returns IIRFilterNode

createOscillator

  • Returns OscillatorNode

createPanner

  • Returns PannerNode

createPeriodicWave

createScriptProcessor

  • createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode
  • Parameters

    • Optional bufferSize: number
    • Optional numberOfInputChannels: number
    • Optional numberOfOutputChannels: number

    Returns ScriptProcessorNode

createStereoPanner

  • Returns StereoPannerNode

createWaveShaper

  • Returns WaveShaperNode

decodeAudioData

dispatchEvent

  • dispatchEvent(event: Event): boolean
  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    Parameters

    Returns boolean

removeEventListener

Generated using TypeDoc