Audio::Musepack - An object-oriented interface to Musepack file information and APE tag fields.


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

Index


Code Index:

NAME

Top

Audio::Musepack - An object-oriented interface to Musepack file information and APE tag fields.

SYNOPSIS

Top

    use Audio::Musepack;
    my $mpc = Audio::Musepack->new("song.mpc");

    my $mpcInfo = $mpc->info();

    foreach (keys %$mpcInfo) {
        print "$_: $mpcInfo->{$_}\n";
    }

    my $mpcTags = $mpc->tags();

    foreach (keys %$mpcTags) {
        print "$_: $mpcTags->{$_}\n";
    }

DESCRIPTION

Top

This module returns a hash containing basic information about a Musepack file, as well as tag information contained in the Musepack file's APE tags.

CONSTRUCTORS

Top

* new( $filename )

Opens a Musepack file, ensuring that it exists and is actually an Musepack stream, then loads the information and comment fields.

INSTANCE METHODS

Top

* info( [$key] )

Returns a hashref containing information about the Musepack file from the file's information header.

The optional parameter, key, allows you to retrieve a single value from the info hash. Returns undef if the key is not found.

* tags( [$key] )

Returns a hashref containing tag keys and values of the Musepack file from the file's APE tags.

The optional parameter, key, allows you to retrieve a single value from the tag hash. Returns undef if the key is not found.

NOTE

Top

This module is now a wrapper around Audio::Scan.

SEE ALSO

Top

http://www.personal.uni-jena.de/~pfk/mpp/index2.html, Audio::Scan

AUTHOR

Top

Dan Sully, <daniel@cpan.org>

Original Author: Erik Reckase, <cerebusjam at hotmail dot com>

COPYRIGHT

Top


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

package Audio::Musepack;

use strict;
use base qw(Audio::APETags);

our $VERSION = '1.0.1';

1;

__END__