node-taglib-sharp / Exports / MpegXingHeader
Information about a variable bitrate MPEG audio stream
▪ Static Readonly FILE_IDENTIFIER: ByteVector
Identifier that appears in a file to indicate the start of a Xing header.
▪ Static Readonly UNKNOWN: MpegXingHeader
An empty an unset Xing header
• get isPresent(): boolean
Whether or not a physical VBRI header is present in the file.
boolean
• get totalFrames(): number
Gets the total number of frames in the file, as indicated by the current instance.
number
• get totalSize(): number
Gets the total size of the file, as indicated by the current instance.
number
▸ Static fromData(data): MpegXingHeader
Constructs a new instance by reading its raw contents.
| Name | Type | Description |
|---|---|---|
data |
ByteVector |
Raw data of the Xing header |
▸ Static fromInfo(frames, size): MpegXingHeader
Constructs a new instance with a specified frame count and size.
| Name | Type | Description |
|---|---|---|
frames |
number |
Frame count of the audio |
size |
number |
Stream size of the audio |
▸ 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.
| Name | Type | Description |
|---|---|---|
version |
MpegVersion |
Version of the MPEG audio packet |
channelModel |
MpegAudioChannelMode |
Channel mode of the MPEG audio packet |
number
Offset into an MPEG audio packet where the Xing header would appear.