Audio::CD 0.04 review

Download
by rbytes.net on

License: Perl Artistic License
File size: 6K
Developer: Doug MacEachern
0 stars award from rbytes.net

Audio::CD is a Perl interface to libcdaudio (cd + cddb).

SYNOPSIS

use Audio::CD ();
my $cd = Audio::CD->init;

Audio::CD provides a Perl interface to libcdaudio by Tony Arcieri, available from http://cdcd.undergrid.net/

Several classes provide glue for the libcdaudio functions and data structures.

Audio::CD Class ^

init

Initialize the Audio::CD object:
my $cd = Audio::CD->init;

stat

Stat the Audio::CD object, returns an Audio::CD::Info object.
my $info = $cd->stat;

cddb

Returns an Audio::CDDB object.
my $cddb = $cd->cddb;

play

Play the given cd track (defaults to 1).
$cd->play(1);

stop

Stop the cd.
$cd->stop;

pause

Pause the cd.
$cd->pause;

resume

Resume the cd.
$cd->resume;

eject

Eject the cd.
$cd->eject;

close

Close the cd tray.
$cd->close;

play_frames

$cd->play_frames($startframe, $endframe);

play_track_pos

$cd->play_track_pos($strarttrack, $endtrack, $startpos);

play_track

$cd->play_track($strarttrack, $endtrack);

track_advance

$cd->track_advance($endtrack, $minutes, $seconds);

advance

$cd->advance($minutes, $seconds);

get_volume

Returns an Audio::CD::Volume object.

my $vol = $cd->get_volume;

set_volume

$cd->set_volume($vol);

Requirements:
Perl

Audio::CD 0.04 keywords