POE::Component::CD::Rip - POE Component for running cdparanoia, a CD ripper.


POE-Component-CD-Rip documentation  | view source Contained in the POE-Component-CD-Rip distribution.

Index


NAME

Top

POE::Component::CD::Rip - POE Component for running cdparanoia, a CD ripper.

SYNOPSIS

Top

use POE qw(Component::CD::Rip);

$cd = POE::Component::CD::Rip->new(alias => $alias); $cd->rip(3, "/tmp/03.rip");

$POE::Kernel->run();

DESCRIPTION

Top

This POE component serves to rip tracks from a CD. At present it is merely a wrapper for the cdparanoia program which does the bulk of the work.

METHODS

Top

The module provides an object oriented interface as follows:

new

Used to initialise the system and create a module instance. The following parameters are available:

Indicates the name of a session to which module callbacks will be posted. Default: main.

Indicates the device to rip from. Default: /dev/cdrom.

rip

Used to request that a track be ripped. The following parameters are required:

Indicates the number of the track to rip, starting with 1.

Provides the name of the file where to store the rip.

    e.g. C<$cdr->rip(3, "/tmp/tst.rip");>

CALLBACKS

Top

Callbacks are made to the session indicated in the spawn() method. The names of the functions called back may also be set via the aforementioned method. The following callbacks are issued:

status

Fired during processing. ARG0 is the block number being processed whilst ARG1 represents the percentage of completion expressed as a whole number between 0 and 100.

done

Fired upon completion of a rip. The ARG0 parameter contains the name of the file ripped.

error

Fired on the event of an error.

AUTHOR

Top

Erick Calder <ecalder@cpan.org>

My gratitude to Rocco Caputo and Matt Cashner whose code has helped me put this together.

DATE

Top

$Date: 2002/09/14 22:45:41 $

VERSION

Top

$Revision: 1.2 $

LICENSE AND COPYRIGHT

Top


POE-Component-CD-Rip documentation  | view source Contained in the POE-Component-CD-Rip distribution.