xref: /plan9-contrib/sys/src/games/mp3enc/id3tag.h (revision 8f5875f3e9b20916b4c52ad4336922bc8653eb7b)
1 
2 #ifndef LAME_ID3_H
3 #define LAME_ID3_H
4 
5 #include "lame.h"
6 
7 struct id3tag_spec
8 {
9     /* private data members */
10     int flags;
11     const char *title;
12     const char *artist;
13     const char *album;
14     int year;
15     const char *comment;
16     int track;
17     int genre;
18 };
19 
20 
21 /* write tag into stream at current position */
22 extern int id3tag_write_v2(lame_global_flags *gfp);
23 extern int id3tag_write_v1(lame_global_flags *gfp);
24 /*
25  * NOTE: A version 2 tag will NOT be added unless one of the text fields won't
26  * fit in a version 1 tag (e.g. the title string is longer than 30 characters),
27  * or the "id3tag_add_v2" or "id3tag_v2_only" functions are used.
28  */
29 
30 #endif
31