@ain1084/audio-worklet-stream - v2.0.2
    Preparing search index...

    Class StreamNodeFactory

    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.

    Index

    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.