Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Properties

OscillatorNode

OscillatorNode: { constructor: any; prototype: OscillatorNode }

Type declaration

  • constructor: function
    • new __type(context: BaseAudioContext, options?: OscillatorOptions): OscillatorNode
    • Parameters

      • context: BaseAudioContext
      • Optional options: OscillatorOptions

      Returns OscillatorNode

  • prototype: OscillatorNode

_parseAParam

_parseAParam: (aParam: AudioParam) => object

Type declaration

    • (aParam: AudioParam): object
    • Parameters

      • aParam: AudioParam

      Returns object

_start

_start: () => void

Type declaration

    • (): void
    • Returns void

channelCount

channelCount: number

channelCountMode

channelCountMode: ChannelCountMode

channelInterpretation

channelInterpretation: ChannelInterpretation

connected

connected: boolean

Readonly context

context: BaseAudioContext

Readonly detune

detune: AudioParam

Readonly frequency

frequency: AudioParam

hasInput

hasInput: boolean

Readonly numberOfInputs

numberOfInputs: number

Readonly numberOfOutputs

numberOfOutputs: number

onended

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

position

position: Vector2

running

running: boolean

stopAndReplace

stopAndReplace: () => GraphOscillatorNode

Type declaration

toString

toString: () => string

Type declaration

    • (): string
    • Returns string

type

type: OscillatorType

uuid

uuid: string

Methods

addEventListener

  • addEventListener<K>(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void
  • addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void
  • Type parameters

    • K: keyof AudioScheduledSourceNodeEventMap

    Parameters

    • type: K
    • listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any
        • (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]): any
        • Parameters

          Returns any

    • Optional options: boolean | AddEventListenerOptions

    Returns void

  • Parameters

    • type: string
    • listener: EventListenerOrEventListenerObject
    • Optional options: boolean | AddEventListenerOptions

    Returns void

connect

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

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

    Returns AudioNode

  • Parameters

    • destinationParam: AudioParam
    • Optional output: undefined | 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

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

    • event: Event

    Returns boolean

removeEventListener

  • removeEventListener<K>(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void
  • removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void
  • Type parameters

    • K: keyof AudioScheduledSourceNodeEventMap

    Parameters

    • type: K
    • listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any
        • (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]): any
        • Parameters

          Returns any

    • Optional options: boolean | EventListenerOptions

    Returns void

  • Parameters

    • type: string
    • listener: EventListenerOrEventListenerObject
    • Optional options: boolean | EventListenerOptions

    Returns void

setPeriodicWave

  • setPeriodicWave(periodicWave: PeriodicWave): void

start

  • start(when?: undefined | number): void
  • Parameters

    • Optional when: undefined | number

    Returns void

stop

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

    • Optional when: undefined | number

    Returns void

Legend

  • Interface
  • Property
  • Type alias
  • Class

Generated using TypeDoc