Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface AudioBufferSourceNode

An AudioScheduledSourceNode which represents an audio source consisting of in-memory audio data, stored in an AudioBuffer. It's especially useful for playing back audio which has particularly stringent timing accuracy requirements, such as for sounds that must match a specific rhythm and can be kept in memory rather than being played from disk or the network.

Hierarchy

Index

Properties

AudioScheduledSourceNode

AudioScheduledSourceNode: { constructor: any; prototype: AudioScheduledSourceNode }

Type declaration

buffer

buffer: AudioBuffer | null

channelCount

channelCount: number

channelCountMode

channelCountMode: ChannelCountMode

channelInterpretation

channelInterpretation: ChannelInterpretation

Readonly context

Readonly detune

detune: AudioParam

loop

loop: boolean

loopEnd

loopEnd: number

loopStart

loopStart: number

Readonly numberOfInputs

numberOfInputs: number

Readonly numberOfOutputs

numberOfOutputs: number

onended

onended: ((this: AudioScheduledSourceNode, ev: Event) => any) | null

Readonly playbackRate

playbackRate: AudioParam

Methods

addEventListener

connect

  • connect(destinationNode: AudioNode, output?: number, input?: number): AudioNode
  • connect(destinationParam: AudioParam, output?: number): void
  • Parameters

    • destinationNode: AudioNode
    • Optional output: number
    • Optional input: number

    Returns AudioNode

  • Parameters

    • destinationParam: AudioParam
    • Optional output: number

    Returns void

disconnect

  • disconnect(): void
  • disconnect(output: number): void
  • disconnect(destinationNode: AudioNode): void
  • disconnect(destinationNode: AudioNode, output: number): void
  • disconnect(destinationNode: AudioNode, output: number, input: number): void
  • disconnect(destinationParam: AudioParam): void
  • disconnect(destinationParam: AudioParam, output: number): void
  • Returns void

  • Parameters

    • output: number

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    • destinationNode: AudioNode
    • output: number
    • input: number

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

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

start

  • start(when?: number, offset?: number, duration?: number): void
  • Parameters

    • Optional when: number
    • Optional offset: number
    • Optional duration: number

    Returns void

stop

  • stop(when?: number): void
  • Parameters

    • Optional when: number

    Returns void

Generated using TypeDoc