Audio::TagLib::MPC::File 1.42 review

Download
by rbytes.net on

Audio::TagLib::MPC::File is an implementation of Audio::TagLib::File with MPC specific methods. SYNOPSIS use Audio::TagLib;

License: Perl Artistic License
File size: 1479K
Developer: Dongxu Ma
0 stars award from rbytes.net

Audio::TagLib::MPC::File is an implementation of Audio::TagLib::File with MPC specific methods.

SYNOPSIS

use Audio::TagLib;

my $i = Audio::TagLib::MPC::File->new("sample mpc file.mpc");
print $i->tag()->title()->toCString(), "n"; # got title

This implements and provides an interface for MPC files to the Audio::TagLib::Tag and Audio::TagLib::AudioProperties interfaces by way of implementing the abstract Audio::TagLib::File API as well as providing some additional information specific to MPC files.

The only invalid tag combination supported is an ID3v1 tag after an APE tag.
new(PV $file, BOOL $readProperties = TRUE, PV $propertiesStyle = "Average")
Constructs an MPC file from $file. If $readProperties is true the file's audio properties will also be read using $propertiesStyle. If false, $propertiesStyle is ignored.

DESTROY()

Destroys this instance of the File.

Tag tag()

Returns the Tag for this file. This will be an APE tag, an ID3v1 tag or a combination of the two.

Properties audioProperties()

Returns the MPC::Properties for this file. If no audio properties were read then this will return undef.

BOOL save()

Save the file.

ID3v1::Tag ID3v1Tag(BOOL $create = FALSE)

Returns the ID3v1 tag of the file.

If $create is false (the default) this will return undef if there is no valid ID3v1 tag. If $create is true it will create an ID3v1 tag if one does not exist. If there is already an APE tag, the new ID3v1 tag will be placed after it.

B The Tag is B owned by the APE::File and should not be deleted by the user. It will be deleted when the file (object) is destroyed.

Requirements:
Perl

Audio::TagLib::MPC::File 1.42 search tags