A-Tractor - v2.3.1
    Preparing search index...

    Class AbstractAnalyzerAbstract

    Abstract analyzer widget.

    This class is the basic class to inherit and implement other widgets.

    Hierarchy (View Summary)

    Index

    Constructors

    • Constructor.

      Parameters

      • OptionalaudioSource: HTMLMediaElement | MediaElementAudioSourceNode

        Input HTML element with source audio (HTML audio tag) or the instance of MediaElementAudioSourceNode.

      • OptionalviewElement: HTMLElement

        The HTML element to render the widget. Will be auto created if it is undefined or null.

      • Optionaloptions: IAbstractAnalyzerOptions

        Analyzer options.

      Returns AbstractAnalyzer

    Methods

    • Changes the current media source.

      Parameters

      • OptionalaudioSource: HTMLMediaElement | MediaElementAudioSourceNode

        Input HTML element with source audio (HTML audio tag) or the instance of MediaElementAudioSourceNode.

      Returns void

    • Clears the canvas.

      Returns void

    • Returns the audio source structure for this instance.

      Returns IAudioSource

      The audio source structure.

    • Returns the ViewElement for this instance.

      Returns HTMLElement

    • Pauses rendering.

      Returns void

    • Updates the canvas size depended on the [[constructor|viewElement]] size.

      Returns void

    • Starts rendering.

      Returns void

    • Stops rendering.

      Returns void