taglib-ts
    Preparing search index...

    Abstract base class providing common audio properties such as length, bitrate, sample rate, and channel count.

    Hierarchy (View Summary)

    Index

    Properties

    _readStyle: ReadStyle

    The read style used when parsing the audio stream.

    Accessors

    • get bitrate(): number

      Average bitrate of the audio stream in kb/s. Returns 0 if the value is not available.

      Returns number

    • get channels(): number

      Number of audio channels (e.g. 1 for mono, 2 for stereo).

      Returns number

    • get lengthInMilliseconds(): number

      Exact duration in milliseconds.

      Returns number

    • get lengthInSeconds(): number

      Duration rounded to the nearest second.

      Returns number

    • get sampleRate(): number

      Sample rate of the audio stream in Hz. Returns 0 if the value is not available.

      Returns number

    Methods