Matt Koscica > Audio-Cuefile-Parser-0.02 > Audio::Cuefile::Parser

Download:
Audio-Cuefile-Parser-0.02.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  2
View/Report Bugs
Module Version: 0.02   Source  

NAME ^

Audio::Cuefile::Parser

VERSION ^

Version 0.02

SYNOPSIS ^

Class to parse a cuefile and access the chewy, nougat centre. Returns Audio::Cuefile::Parser::Track objects.

USAGE ^

use Audio::Cuefile::Parser;

my $filename = 'filename.cue';

my $cue = Audio::Cuefile::Parser->new($filename);

my ($audio_file, $cd_performer, $cd_title) = ($cue->file, $cue->performer, $cue->title);

foreach my $track ($cue->tracks) {

  my ($position, $index, $performer, $title) =
    ($track->position, $track->index, $track->performer, $track->title);

  print "$position $index $performer $title";
}

CUEFILE METHODS ^

$cue->tracks

Returns a list of Audio::Cuefile::Parser::Track objects.

$cue->file

Returns the filename associated with the FILE keyword from the .cue's headers (i.e. the audio file that the .cue file is describing).

$cue->performer

The audio file's performer.

$cue->title

The title of the audio file.

TRACK METHODS ^

$track->index

Timestamp that signifies the track's beginning.

$track->performer

The track's performer.

$track->position

The track's position in the audio file.

$track->title

Track title.

AUTHOR ^

Matt Koscica <matt.koscica@gmail.com>

BUGS ^

Probably a few, the regexes are very simple.

Please report any bugs or feature requests to bug-audio-cuefile-parser@rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Audio-Cuefile-Parser. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

COPYRIGHT & LICENSE ^

Copyright 2005-2010 Matt Koscica, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: