Class SingleNodeAudioTransformDevice<T>Abstract

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 extends AudioNode

Constructors

Properties

inner: Device
node: T

Methods

  • 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>

  • Parameters

    • context: AudioContext

    Returns Promise<T>

  • Return the inner Device that the device controller should select as part of the application of this AudioTransformDevice.

    Returns Promise<Device>

  • Parameters

    • _muted: boolean

    Returns Promise<void>

  • stop should be called by the application to free any resources associated with the device (e.g., workers).

    After this is called, the device should be discarded.

    Returns Promise<void>