Audio::TagLib::ID3v1::Tag - An ID3v1 tag implementation


Audio-TagLib documentation Contained in the Audio-TagLib distribution.

Index


Code Index:

NAME

Top

Audio::TagLib::ID3v1::Tag - An ID3v1 tag implementation

SYNOPSIS

Top

  use Audio::TagLib::ID3v1::Tag;

  my $i = Audio::TagLib::ID3v1::Tag->new();
  $i->setYear(1981);
  print $i->year(), "\n"; # got 1981

DESCRIPTION

Top

This is an implementation of the ID3v1 format. ID3v1 is both the simplist and most common of tag formats but is rather limited. Because of its pervasiveness and the way that applications have been written around the fields that it provides, the generic Audio::TagLib::Tag API is a mirror of what is provided by ID3v1.

ID3v1 tags should generally only contain Latin1 information. However because many applications do not follow this rule there is now support for overriding the ID3v1 string handling using the ID3v1::StringHandler class. Please see the documentation for that class for more information.

see StringHandler

NOTE Most fields are truncated to a maximum of 28-30 bytes. The truncation happens automatically when the tag is rendered.

new()

Create an ID3v1 tag with default values.

new(File $file, IV $tagOffset)

Create an ID3v1 tag and parse the data in $file starting at $tagOffset.

DESTROY()

Destroys this Tag instance.

ByteVector render()

Renders the in memory values to a ByteVector suitable for writing to the file.

ByteVector fileIdentifier() [static]

Returns the string "TAG" suitable for usage in locating the tag in a file.

String title()
String artist()
String album()
String comment()
String genre()
UV year()
UV track()
void setTitle(String $s)
void setArist(String $s)
void setAlbum(String $s)
void setComment(String $s)
void setGenre(String $s)
void setYear(UV $i)
void setTrack(UV $i)

see Tag

void setStringHandler(StringHandler $handler) [static]

Sets the string handler that decides how the ID3v1 data will be converted to and from binary data.

see StringHandler

EXPORT

None by default.

SEE ALSO

Top

Audio::TagLib Tag

AUTHOR

Top

Dongxu Ma, <dongxu@cpan.org>

COPYRIGHT AND LICENSE

Top


Audio-TagLib documentation Contained in the Audio-TagLib distribution.

package Audio::TagLib::ID3v1::Tag;

use 5.008003;
use strict;
use warnings;

our $VERSION = '1.41';

use Audio::TagLib;

our @ISA = qw(Audio::TagLib::Tag);

# Preloaded methods go here.

1;
__END__
# Below is stub documentation for your module. You'd better edit it!