Skip to content

Latest commit

 

History

History
135 lines (75 loc) · 3.01 KB

File metadata and controls

135 lines (75 loc) · 3.01 KB

node-taglib-sharp / Exports / MpegXingHeader

Class: MpegXingHeader

Information about a variable bitrate MPEG audio stream

Table of contents

Properties

Accessors

Methods

Properties

FILE_IDENTIFIER

Static Readonly FILE_IDENTIFIER: ByteVector

Identifier that appears in a file to indicate the start of a Xing header.


UNKNOWN

Static Readonly UNKNOWN: MpegXingHeader

An empty an unset Xing header

Accessors

isPresent

get isPresent(): boolean

Whether or not a physical VBRI header is present in the file.

Returns

boolean


totalFrames

get totalFrames(): number

Gets the total number of frames in the file, as indicated by the current instance.

Returns

number


totalSize

get totalSize(): number

Gets the total size of the file, as indicated by the current instance.

Returns

number

Methods

fromData

Static fromData(data): MpegXingHeader

Constructs a new instance by reading its raw contents.

Parameters

Name Type Description
data ByteVector Raw data of the Xing header

Returns

MpegXingHeader


fromInfo

Static fromInfo(frames, size): MpegXingHeader

Constructs a new instance with a specified frame count and size.

Parameters

Name Type Description
frames number Frame count of the audio
size number Stream size of the audio

Returns

MpegXingHeader


xingHeaderOffset

Static xingHeaderOffset(version, channelModel): number

Gets the offset at which a Xing header would appear in an MPEG audio packet based on the version and channel mode.

Parameters

Name Type Description
version MpegVersion Version of the MPEG audio packet
channelModel MpegAudioChannelMode Channel mode of the MPEG audio packet

Returns

number

Offset into an MPEG audio packet where the Xing header would appear.