Skip to content

Latest commit

 

History

History
122 lines (67 loc) · 2.49 KB

File metadata and controls

122 lines (67 loc) · 2.49 KB

node-taglib-sharp / Exports / MpegVbriHeader

Class: MpegVbriHeader

Information about a variable bitrate MPEG audio stream encoded by the Fraunhofer encoder

Table of contents

Properties

Accessors

Methods

Properties

FILE_IDENTIFIER

Static Readonly FILE_IDENTIFIER: ByteVector

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


UNKNOWN

Static Readonly UNKNOWN: MpegVbriHeader

An empty and unset VBRI header.


VBRI_HEADER_OFFSET

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.

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): MpegVbriHeader

Constructs a new instance from the raw data of the header.

Parameters

Name Type Description
data ByteVector Data to read the VBRI header from

Returns

MpegVbriHeader


fromInfo

Static fromInfo(frames, size): MpegVbriHeader

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

MpegVbriHeader