File type
Special convenience ID3v2 functions
Types which can be stored in a TagLib_Variant.
Returns the bitrate of the file in kb/s.
Returns the number of channels in the audio stream.
Returns the length of the file in seconds.
Returns the sample rate of the file in Hz.
Frees the null terminated array props of property attribute arrays (as returned by taglib_complex_property_get()) and the data such as C-strings and byte vectors contained in these attributes.
Frees the null terminated array keys (as returned by taglib_complex_property_keys()) and the C-strings it contains.
Get value(s) of complex property key.
Get the keys of the complex properties.
Sets the complex property key with value. Use value = null to remove the property, otherwise it will be replaced with the null terminated array of attributes in value.
Appends value to the complex property key (sets it if non-existing). Use value = null to remove all values associated with the key.
Returns a pointer to the audio properties associated with this file. This will be freed automatically when the file is freed.
Frees and closes the file.
Returns true if the file is open and readable and valid information for the Tag and / or AudioProperties was found.
Creates a TagLib file based on filename. TagLib will try to guess the file type.
Creates a TagLib file from a stream. A byte vector stream can be used to read a file from memory and write to memory, e.g. when fetching network data. The stream has to be created using taglib_memory_iostream_new() and shall be freed using taglib_iostream_free() after this file is freed with taglib_file_free().
Creates a TagLib file based on filename. Rather than attempting to guess the type, it will use the one specified by type.
Saves the file to disk.
Returns a pointer to the tag associated with this file. This will be freed automatically when the file is freed.
Explicitly free a string returned from TagLib
This sets the default encoding for ID3v2 frames that are written to tags.
Frees and closes the stream.
Creates a byte vector stream from size bytes of data. Such a stream can be used with taglib_file_new_iostream() to create a file from memory.
Extract the complex property values of a picture.
Frees the null terminated array props and the C-strings it contains.
Get value(s) of property prop.
Get the keys of the property map.
Sets the property prop with value. Use value = null to remove the property, otherwise it will be replaced.
Appends value to the property prop (sets it if non-existing). Use value = null to remove all values associated with the property.
TagLib can keep track of strings that are created when outputting tag values and clear them using taglib_tag_clear_strings(). This is enabled by default. However if you wish to do more fine grained management of strings, you can do so by setting management to false.
By default all strings coming into or out of TagLib's C API are in UTF8. However, it may be desirable for TagLib to operate on Latin1 (ISO-8859-1) strings in which case this should be set to false.
Returns a string with this tag's album name.
Returns a string with this tag's artist.
Returns a string with this tag's comment.
Frees all of the strings that have been created by the tag.
Returns a string with this tag's genre.
Sets the tag's album.
Sets the tag's artist.
Sets the tag's comment.
Sets the tag's genre.
Sets the tag's title.
Sets the tag's track number. 0 indicates that this field should be cleared.
Sets the tag's year. 0 indicates that this field should be cleared.
Returns a string with this tag's title.
Returns the tag's track number or 0 if the track number is not set.
Returns the tag's year or 0 if the year is not set.
Attribute of a complex property. Complex properties consist of a null-terminated array of pointers to this structure with key and value.
Picture data extracted from a complex property by the convenience function taglib_picture_from_complex_property().
Discriminated union used in complex property attributes.