Skip to content

Latest commit

 

History

History
157 lines (93 loc) · 3.97 KB

AacFileSettings.md

File metadata and controls

157 lines (93 loc) · 3.97 KB

node-taglib-sharp / Exports / AacFileSettings

Class: AacFileSettings

This class contains settings related to AAC file operations. Open files will need to be re-read in order for changes to take effect.

Table of contents

Constructors

Properties

Accessors

Constructors

constructor

new AacFileSettings()

Properties

SUPPORTED_TAG_TYPES

Static Readonly SUPPORTED_TAG_TYPES: TagTypes

List of the tag types that are supported by the AAC file.

Accessors

defaultTagTypes

Static get defaultTagTypes(): TagTypes

Gets the default types of tags for an AAC file. When opening a file, if these tag types do not exist on the file, they will be created.

Returns

TagTypes

Static set defaultTagTypes(value): void

Sets the default types of tags for an AAC file. When opening a file, if these tag types do not exist on the file, they will be created. See SUPPORTED_TAG_TYPES for a list of tag types that are supported by node-taglib-sharp for AAC files.

Parameters

Name Type
value TagTypes

Returns

void


preferApeTagAtFileEnd

Static get preferApeTagAtFileEnd(): boolean

Gets whether new APE tags should be stored at the end of the file. If true new APE tags will be stored at the end of the file. If false new APE tags will be stored at the beginning of the file (not recommended). Note, this only affects new APE tags. Existing APE tags will not be moved unless removed and re-added.

Default

true

Returns

boolean

Static set preferApeTagAtFileEnd(value): void

Gets whether new APE tags should be stored at the end of the file. If true new APE tags will be stored at the end of the file. If false new APE tags will be stored at the beginning of the file (not recommended). Note, this only affects new APE tags. Existing APE tags will not be moved unless removed and re-added.

Default

true

Parameters

Name Type
value boolean

Returns

void


preferId3v2TagAtFileEnd

Static get preferId3v2TagAtFileEnd(): boolean

Gets whether new ID3v2 tags should be stored at the end of the file. If true new ID3v2 tags will be stored at the end of the file. If false new ID3v2 tags will be stored at the beginning of the file. Note, this only affects new ID3v2 tags. Existing ID3v2 tags will not be moved unless removed and re-added.

Remarks

In order to store an ID3v2 tag at the end of a file, it must have a tag footer. Tag footers are only supported in ID3v2.4. If the ID3v2 version is changed, it will cause an error to be thrown when the tag is rendered.

Default

false

Returns

boolean

Static set preferId3v2TagAtFileEnd(value): void

Sets whether new ID3v2 tags should be stored at the end of the file. If true new ID3v2 tags will be stored at the end of the file. If false new ID3v2 tags will be stored at the beginning of the file. Note, this only affects new ID3v2 tags. Existing ID3v2 tags will not be moved unless removed and re-added.

Remarks

In order to store an ID3v2 tag at the end of a file, it must have a tag footer. Tag footers are only supported in ID3v2.4. If the ID3v2 version is changed, it will cause an error to be thrown when the tag is rendered.

Default

false

Parameters

Name Type
value boolean

Returns

void