Audio::TagLib::Tag - A simple, generic interface to common audio meta data fields
This is an attempt to abstract away the difference in the meta data formats of various audio codecs and tagging schemes. As such it is generally a subset of what is available in the specific formats but should be suitable for most applications. This is meant to complient the generic APIs found in Audio::TagLib::AudioProperties, Audio::TagLib::File and Audio::TagLib::FileRef.
Detroys this Tag instance.
Returns the track name; if no track name is present in the tag String::null will be returned.
Returns the artist name; if no artist name is present in the tag String::null will be returned.
Returns the album name; if no album name is present in the tag String::null will be returned.
Returns the track comment; if no comment is present in the tag String::null will be returned.
Returns the genre name; if no genre is present in the tag String::null will be returned.
Returns the year; if there is no year set, this will return 0.
Returns the track number; if there is no track number set, this will return 0.
Sets the title to $s. If $s is String::null() then this value will be cleared.
Sets the artist to $s. If $s is String::null() then this value will be cleared.
Sets the album to $s. If $s is String::null() then this value will be cleared.
Sets the comment to $s. If $s is String::null() then this value will be cleared.
Sets the genre to $s. If $s is String::null() then this value will be cleared. For tag formats that use a fixed set of genres, the appropriate value will be selected based on a string comparison. A list of available genres for those formats should be available in that type's implementation.
Sets the year to $i. If $i is 0 then this value will be cleared.
Sets the track to $i. If $i is 0 then this value will be cleared.
Copies the generic data from one tag to another.
NOTE This will no affect any of the lower level details of the tag. For instance if any of the tag type specific data (maybe a URL for a band) is set, this will not modify or copy that. This just copies using the API in this class.
If $overwrite is true then the values will be unconditionally copied. If false only empty values will be overwritten.
None by default.
Audio::TagLib
Dongxu Ma, <dongxu@cpan.org>
Copyright (C) 2005 by Dongxu Ma
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.7 or, at your option, any later version of Perl 5 you may have available.
To install Audio::TagLib, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Audio::TagLib
CPAN shell
perl -MCPAN -e shell install Audio::TagLib
For more information on module installation, please visit the detailed CPAN module installation guide.