taglib-ts
    Preparing search index...

    Audio properties extracted from an ASF/WMA stream.

    All setter methods are intended for use by AsfFile during parsing and are not part of the public API.

    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 kb/s.

      Returns number

    • get channels(): number

      Number of audio channels.

      Returns number

    • get codecDescription(): string

      Human-readable codec description (e.g. bitrate/mode information).

      Returns string

    • get codecName(): string

      Human-readable codec name (e.g. "Windows Media Audio").

      Returns string

    • get isEncrypted(): boolean

      true if the stream is encrypted with any DRM scheme.

      Returns boolean

    • get lengthInMilliseconds(): number

      Duration of the audio stream in milliseconds.

      Returns number

    • get lengthInSeconds(): number

      Duration rounded to the nearest second.

      Returns number

    • get sampleRate(): number

      Sample rate of the stream in Hz.

      Returns number

    Methods

    • Set the average bitrate.

      Parameters

      • value: number

        Bitrate in kb/s.

      Returns void

    • Set the bit depth.

      Parameters

      • value: number

        Bits per sample.

      Returns void

    • Set the channel count.

      Parameters

      • value: number

        Number of audio channels.

      Returns void

    • Map a WMA format tag to the corresponding AsfCodec variant.

      Parameters

      • formatTag: number

        The wFormatTag field from the WAVEFORMATEX structure.

      Returns void

    • Set the human-readable codec description.

      Parameters

      • value: string

        Description string from the Codec List Object.

      Returns void

    • Set the human-readable codec name.

      Parameters

      • value: string

        Codec name string from the Codec List Object.

      Returns void

    • Mark the stream as encrypted.

      Parameters

      • value: boolean

        true when a content-encryption object is present.

      Returns void

    • Set the stream duration.

      Parameters

      • value: number

        Duration in milliseconds.

      Returns void

    • Set the sample rate.

      Parameters

      • value: number

        Sample rate in Hz.

      Returns void