Audio::Musepack(3pm)

Audio::Musepack3pm

An object-oriented interface to musepack file information and ape tag fields.

Usage

    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";
    }

Overview

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

•

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

•

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

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

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 4 times.

  1. 6.0
  2. 7–9
  3. 10
  4. 11
  5. 12–13

Author

Dan Sully, <[email protected]>

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

From libaudio-musepack-perl 1.0.1-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.