Main Page   Data Structures   File List   Data Fields   Globals   Related Pages  

id3v1.h File Reference

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Data Structures

struct  ID3v1Tag

Functions

const char * ID3v1_GetGenreString (int genre)
 Get string for a id3v1 genre id.

int ID3v1_ReadTag (FILE *f, ID3v1Tag *tag)
 Read a ID3, version 1 tag from a file.


Function Documentation

const char* ID3v1_GetGenreString int    genre
 

Get string for a id3v1 genre id.

Parameters:
genre  genre id
Returns:
pointer to a string containing the genre, or the string "genre #id" for unknown id's.

Definition at line 79 of file id3v1.cpp.

References id3genres, and NUMGENRES.

int ID3v1_ReadTag FILE *    f,
ID3v1Tag   tag
 

Read a ID3, version 1 tag from a file.

The file position is restored, after the tag has been read from the end of the file. For further information about the I3v1 Tag, see http://www.id3.org

Parameters:
f  open File handle to read from
tag  pointer to a ID3v1Tag structure to fill out
Returns:
0 if there was no tag, 1 when successful

Definition at line 104 of file id3v1.cpp.

References ID3v1Tag::album, ID3v1Tag::artist, ID3v1Tag::comment, ID3v1Tag::genre, ID3v1Tag::title, ID3v1Tag::track, trim(), and ID3v1Tag::year.


Generated on Sun Aug 4 21:47:38 2002 for k/os mp3v2 by doxygen1.2.16