@@ -7,28 +7,28 @@ import * as util from '../common/Util.js';
77 * The picture type according to the ID3v2 APIC frame
88 * Ref: http://id3.org/id3v2.3.0#Attached_picture
99 */
10- export enum AttachedPictureType {
11- 'Other' = 0 ,
12- "32x32 pixels 'file icon' (PNG only)" = 1 ,
13- 'Other file icon' = 2 ,
14- 'Cover (front)' = 3 ,
15- 'Cover (back)' = 4 ,
16- 'Leaflet page' = 5 ,
17- 'Media (e.g. label side of CD)' = 6 ,
18- 'Lead artist/lead performer/soloist' = 7 ,
19- 'Artist/performer' = 8 ,
20- 'Conductor' = 9 ,
21- 'Band/Orchestra' = 10 ,
22- 'Composer' = 11 ,
23- 'Lyricist/text writer' = 12 ,
24- 'Recording Location' = 13 ,
25- 'During recording' = 14 ,
26- 'During performance' = 15 ,
27- 'Movie/video screen capture' = 16 ,
28- 'A bright coloured fish' = 17 ,
29- 'Illustration' = 18 ,
30- 'Band/artist logotype' = 19 ,
31- 'Publisher/Studio logotype' = 20
10+ export const AttachedPictureType = {
11+ 0 : 'Other' ,
12+ 1 : "32x32 pixels 'file icon' (PNG only)" ,
13+ 2 : 'Other file icon' ,
14+ 3 : 'Cover (front)' ,
15+ 4 : 'Cover (back)' ,
16+ 5 : 'Leaflet page' ,
17+ 6 : 'Media (e.g. label side of CD)' ,
18+ 7 : 'Lead artist/lead performer/soloist' ,
19+ 8 : 'Artist/performer' ,
20+ 9 : 'Conductor' ,
21+ 10 : 'Band/Orchestra' ,
22+ 11 : 'Composer' ,
23+ 12 : 'Lyricist/text writer' ,
24+ 13 : 'Recording Location' ,
25+ 14 : 'During recording' ,
26+ 15 : 'During performance' ,
27+ 16 : 'Movie/video screen capture' ,
28+ 17 : 'A bright coloured fish' ,
29+ 18 : 'Illustration' ,
30+ 19 : 'Band/artist logotype' ,
31+ 20 : 'Publisher/Studio logotype'
3232}
3333
3434export type ID3v2MajorVersion = 2 | 3 | 4 ;
@@ -46,21 +46,23 @@ export interface IExtendedHeader {
4646/**
4747 * https://id3.org/id3v2.3.0#Synchronised_lyrics.2Ftext
4848 */
49- export enum LyricsContentType {
50- other = 0 ,
51- lyrics = 1 ,
52- text = 2 ,
53- movement_part = 3 ,
54- events = 4 ,
55- chord = 5 ,
56- trivia_pop = 6
57- }
49+ export const LyricsContentType = {
50+ other : 0 ,
51+ lyrics : 1 ,
52+ text : 2 ,
53+ movement_part : 3 ,
54+ events : 4 ,
55+ chord : 5 ,
56+ trivia_pop : 6 ,
57+ } ;
58+ export type LyricsContentType = typeof LyricsContentType [ keyof typeof LyricsContentType ] ;
5859
59- export enum TimestampFormat {
60- notSynchronized0 = 0 ,
61- mpegFrameNumber = 1 ,
62- milliseconds = 2
63- }
60+ export const TimestampFormat = {
61+ notSynchronized0 : 0 ,
62+ mpegFrameNumber : 1 ,
63+ milliseconds : 2
64+ } ;
65+ export type TimestampFormat = typeof TimestampFormat [ keyof typeof TimestampFormat ] ;
6466
6567/**
6668 * 28 bits (representing up to 256MB) integer, the msb is 0 to avoid 'false syncsignals'.
0 commit comments