Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SingleNodeAudioTransformDevice<T>

This class simplifies the process of defining a transform device that does not modify its input device constraints, and provides only a single audio node to apply transforms.

Subclass SingleNodeAudioTransformDevice, implementing createSingleAudioNode.

Type parameters

  • T: AudioNode

Hierarchy

  • SingleNodeAudioTransformDevice

Index

Constructors

constructor

Properties

Protected inner

inner: Device

Protected node

node: T | undefined

Methods

createAudioNode

  • Optionally return a pair of AudioNodes that should be connected to the applied inner device. The two nodes can be the same, indicating the smallest possible subgraph.

    Parameters

    • context: AudioContext

      The AudioContext to use when instantiating the nodes.

    Returns Promise<AudioNodeSubgraph | undefined>

Abstract createSingleAudioNode

  • createSingleAudioNode(context: AudioContext): Promise<T>

intrinsicDevice

  • intrinsicDevice(): Promise<Device>

mute

  • mute(_muted: boolean): Promise<void>

stop

  • stop(): Promise<void>

Generated using TypeDoc