26 #ifndef DO_NOT_DOCUMENT 32 #if defined(TAGLIB_STATIC) 33 #define TAGLIB_C_EXPORT 34 #elif defined(_WIN32) || defined(_WIN64) 35 #ifdef MAKE_TAGLIB_C_LIB 36 #define TAGLIB_C_EXPORT __declspec(dllexport) 38 #define TAGLIB_C_EXPORT __declspec(dllimport) 40 #elif defined(__GNUC__) && (__GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__ >= 1) 41 #define TAGLIB_C_EXPORT __attribute__ ((visibility("default"))) 43 #define TAGLIB_C_EXPORT #define TAGLIB_C_EXPORT
Definition: tag_c.h:43
TAGLIB_C_EXPORT void taglib_id3v2_set_default_text_encoding(TagLib_ID3v2_Encoding encoding)
This sets the default encoding for ID3v2 frames that are written to tags.
TAGLIB_C_EXPORT TagLib_File * taglib_file_new(const char *filename)
Creates a TagLib file based on filename.
TAGLIB_C_EXPORT void taglib_tag_set_artist(TagLib_Tag *tag, const char *artist)
Sets the tag's artist.
TAGLIB_C_EXPORT int taglib_audioproperties_bitrate(const TagLib_AudioProperties *audioProperties)
Returns the bitrate of the file in kb/s.
TAGLIB_C_EXPORT void taglib_set_strings_unicode(BOOL unicode)
By default all strings coming into or out of TagLib's C API are in UTF8.
TAGLIB_C_EXPORT char * taglib_tag_genre(const TagLib_Tag *tag)
Returns a string with this tag's genre.
TAGLIB_C_EXPORT BOOL taglib_file_save(TagLib_File *file)
Saves the file to disk.
int dummy
Definition: tag_c.h:67
TAGLIB_C_EXPORT BOOL taglib_file_is_valid(const TagLib_File *file)
Returns true if the file is open and readable and valid information for the Tag and / or AudioPropert...
int dummy
Definition: tag_c.h:66
String TAGLIB_EXPORT genre(int index)
Returns the name of the genre at index in the ID3v1 genre list.
TAGLIB_C_EXPORT char * taglib_tag_album(const TagLib_Tag *tag)
Returns a string with this tag's album name.
TAGLIB_C_EXPORT int taglib_audioproperties_channels(const TagLib_AudioProperties *audioProperties)
Returns the number of channels in the audio stream.
TagLib_File_Type
Definition: tag_c.h:93
TAGLIB_C_EXPORT int taglib_audioproperties_length(const TagLib_AudioProperties *audioProperties)
Returns the length of the file in seconds.
TAGLIB_C_EXPORT char * taglib_tag_comment(const TagLib_Tag *tag)
Returns a string with this tag's comment.
TAGLIB_C_EXPORT void taglib_file_free(TagLib_File *file)
Frees and closes the file.
TAGLIB_C_EXPORT char * taglib_tag_title(const TagLib_Tag *tag)
Returns a string with this tag's title.
#define BOOL
Definition: tag_c.h:47
TAGLIB_C_EXPORT void taglib_tag_set_album(TagLib_Tag *tag, const char *album)
Sets the tag's album.
TAGLIB_C_EXPORT void taglib_tag_set_track(TagLib_Tag *tag, unsigned int track)
Sets the tag's track number.
TAGLIB_C_EXPORT void taglib_tag_set_genre(TagLib_Tag *tag, const char *genre)
Sets the tag's genre.
TAGLIB_C_EXPORT TagLib_File * taglib_file_new_type(const char *filename, TagLib_File_Type type)
Creates a TagLib file based on filename.
TAGLIB_C_EXPORT unsigned int taglib_tag_year(const TagLib_Tag *tag)
Returns the tag's year or 0 if year is not set.
TAGLIB_C_EXPORT void taglib_tag_set_comment(TagLib_Tag *tag, const char *comment)
Sets the tag's comment.
TAGLIB_C_EXPORT TagLib_Tag * taglib_file_tag(const TagLib_File *file)
Returns a pointer to the tag associated with this file.
TAGLIB_C_EXPORT char * taglib_tag_artist(const TagLib_Tag *tag)
Returns a string with this tag's artist.
TAGLIB_C_EXPORT unsigned int taglib_tag_track(const TagLib_Tag *tag)
Returns the tag's track number or 0 if track number is not set.
TAGLIB_C_EXPORT void taglib_set_string_management_enabled(BOOL management)
TagLib can keep track of strings that are created when outputting tag values and clear them using tag...
TAGLIB_C_EXPORT void taglib_free(void *pointer)
Explicitly free a string returned from TagLib.
TAGLIB_C_EXPORT void taglib_tag_set_title(TagLib_Tag *tag, const char *title)
Sets the tag's title.
int dummy
Definition: tag_c.h:65
TAGLIB_C_EXPORT void taglib_tag_free_strings(void)
Frees all of the strings that have been created by the tag.
TAGLIB_C_EXPORT int taglib_audioproperties_samplerate(const TagLib_AudioProperties *audioProperties)
Returns the sample rate of the file in Hz.
TagLib_ID3v2_Encoding
Definition: tag_c.h:282
TAGLIB_C_EXPORT const TagLib_AudioProperties * taglib_file_audioproperties(const TagLib_File *file)
Returns a pointer to the audio properties associated with this file.
TAGLIB_C_EXPORT void taglib_tag_set_year(TagLib_Tag *tag, unsigned int year)
Sets the tag's year.