taglib-ts
    Preparing search index...

    Audio properties for WavPack streams.

    Supports standard and non-standard sample rates, hybrid (lossy) and lossless modes, multi-channel configurations, and DSD audio.

    Hierarchy (View Summary)

    Index

    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 bitsPerSample(): number

      Bits per sample (bit depth) of the audio stream.

      Returns number

      Bit depth (e.g. 16, 24, 32).

    • get channels(): number

      Number of audio channels.

      Returns number

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

    • get isDsd(): boolean

      Whether the stream contains DSD (Direct Stream Digital) audio.

      Returns boolean

      true for DSD audio, false for standard PCM.

    • get isLossless(): boolean

      Whether the stream is losslessly encoded.

      Returns boolean

      true for lossless, false for hybrid (lossy) mode.

    • 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.

    • get version(): number

      WavPack stream version number read from the block header.

      Returns number

      The stream version (e.g. 0x407).

    Methods