taglib-ts
    Preparing search index...

    Audio properties for TrueAudio (TTA) streams.

    Parses the 18-byte TTA1 header: "TTA" + version byte + audio format (2) + channels (2) + bitsPerSample (2) + sampleRate (4) + sampleFrames (4).

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _readStyle: ReadStyle

    The read style used when parsing the audio stream.

    Accessors

    • get bitrate(): number

      Average bitrate of the stream in kilobits per second.

      Returns number

      Bitrate in kbps, or 0 if unknown.

    • get channels(): number

      Number of audio channels.

      Returns number

      Channel count (e.g. 2 for stereo).

    • get lengthInMilliseconds(): number

      Playback duration in milliseconds.

      Returns number

      Duration in milliseconds, or 0 if unknown.

    • get lengthInSeconds(): number

      Duration rounded to the nearest second.

      Returns number

    • get sampleRate(): number

      Sample rate of the audio stream in Hz.

      Returns number

      Sample rate in Hz, or 0 if unknown.