StreamNodeFactory class Factory class to create instances of OutputStreamNode with specific BufferWriteStrategy. This class provides methods to create different types of OutputStreamNodes, such as those using manual, timed, or worker-based buffer writing strategies.

Accessors

  • get audioContext(): BaseAudioContext
  • Get the AudioContext associated with this factory.

    Returns BaseAudioContext

    The AudioContext instance.

Methods

  • Create an instance of StreamNodeFactory. This method loads necessary modules and creates node creators.

    Parameters

    • context: AudioContext

      The AudioContext to use.

    Returns Promise<StreamNodeFactory>

    A promise that resolves to an instance of StreamNodeFactory.

    Error - If module loading fails.