_metadata_t Struct Reference

#include <tp_c.h>

List of all members.

Public Attributes

char * artist
char * sortName
char * album
char * track
int trackNum
int variousArtist
char * artistId
char * albumId
char * trackId
char * fileTrm
char * albumArtistId
unsigned long duration
TPAlbumType albumType
TPAlbumStatus albumStatus
char * fileFormat
int releaseYear
int releaseDay
int releaseMonth
char releaseCountry [3]
int numTRMIds


Detailed Description

This structure holds the meta data of a track.

The meanings of most attributes are pretty straight forward, but a few need additional explanations. Strings like artist, sortName, album etc. are never NULL. If the information isn't available, the attribute is set to the empty string ("").

The duration attribute is in milliseconds. fileFormat is one of the supported file formats (see tp_GetSupportedExtensions()) but without the dot ("mp3", "ogg", "wav" etc.). If there was a TRM collision, numTRMIds is set to a value greater than one. If variousArtist is true, the track is from a various artists release.

The memory containing the meta data will be released when calling md_Clear() or md_Delete(), so you have to copy the data if you want to use it.

See also:
md_New(), md_Clear(), md_Delete() tr_GetLocalMetadata(), tr_SetLocalMetadata(), tr_GetServerMetadata(), tr_SetServerMetadata()


Member Data Documentation

char* _metadata_t::album
 

char* _metadata_t::albumArtistId
 

char* _metadata_t::albumId
 

TPAlbumStatus _metadata_t::albumStatus
 

TPAlbumType _metadata_t::albumType
 

char* _metadata_t::artist
 

char* _metadata_t::artistId
 

unsigned long _metadata_t::duration
 

char* _metadata_t::fileFormat
 

char* _metadata_t::fileTrm
 

int _metadata_t::numTRMIds
 

char _metadata_t::releaseCountry[3]
 

int _metadata_t::releaseDay
 

int _metadata_t::releaseMonth
 

int _metadata_t::releaseYear
 

char* _metadata_t::sortName
 

char* _metadata_t::track
 

char* _metadata_t::trackId
 

int _metadata_t::trackNum
 

int _metadata_t::variousArtist
 


The documentation for this struct was generated from the following file:
Generated on Thu Jul 13 09:51:25 2006 for MusicBrainz Tunepimp Library by  doxygen 1.4.6