node-taglib-sharp / Exports / MpegVbriHeader
Information about a variable bitrate MPEG audio stream encoded by the Fraunhofer encoder
▪ Static Readonly FILE_IDENTIFIER: ByteVector
Identifier that appears in the file to indicate the start of the VBRI header.
▪ Static Readonly UNKNOWN: MpegVbriHeader
An empty and unset VBRI header.
▪ Static Readonly VBRI_HEADER_OFFSET: 36
Offset at which a VBRI header would appear in an MPEG audio packet. Always 32 bytes after the end of the first MPEG 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): MpegVbriHeader
Constructs a new instance from the raw data of the header.
| Name | Type | Description |
|---|---|---|
data |
ByteVector |
Data to read the VBRI header from |
▸ Static fromInfo(frames, size): MpegVbriHeader
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 |