Mp3tag is a library for reading the meta-data of mp3 audio files. Currently it supports only ID3v1.

Embed: (wiki syntax)

« Back to documentation index

Id3V1Tag Struct Reference

Id3V1Tag Struct Reference

Struct with the layout of id3tags version 1. More...

#include <mp3tag.h>

Data Fields

char tag [3]
char title [MP3_ID3_TITLE_LENGTH]
char artist [MP3_ID3_ARTIST_LENGTH]
char album [MP3_ID3_ALBUM_LENGTH]
char year [MP3_ID3_YEAR_LENGTH]
char comment [MP3_ID3_COMMENT_LENGTH]
char genre

Detailed Description

Struct with the layout of id3tags version 1.

Attention:
Strings are either space- or zero-padded. Unset string entries are filled using an empty string. Strings not allways null-terminated.

Size: 128 bytes

Definition at line 45 of file mp3tag.h.


Field Documentation

char album[MP3_ID3_ALBUM_LENGTH]

album, MP3_ID3_ALBUM_LENGTH characters

Definition at line 50 of file mp3tag.h.

char artist[MP3_ID3_ARTIST_LENGTH]

artist, MP3_ID3_ARTIST_LENGTH characters

Definition at line 49 of file mp3tag.h.

char comment[MP3_ID3_COMMENT_LENGTH]

comment, MP3_ID3_COMMENT_LENGTH characters or (MP3_ID3_COMMENT_LENGTH - 2), if the track number is stored in the last two bytes

Definition at line 52 of file mp3tag.h.

char genre

index in a list of genres, or 255 - see mp3tag_genres

Definition at line 53 of file mp3tag.h.

char tag[3]

"TAG"

Definition at line 47 of file mp3tag.h.

char title[MP3_ID3_TITLE_LENGTH]

title, MP3_ID3_TITLE_LENGTH characters

Definition at line 48 of file mp3tag.h.

char year[MP3_ID3_YEAR_LENGTH]

year, MP3_ID3_YEAR_LENGTH characters

Definition at line 51 of file mp3tag.h.