POE::Component::CD::Rip - POE Component for running cdparanoia, a CD ripper.
use POE qw(Component::CD::Rip);
$cd = POE::Component::CD::Rip->new(alias => $alias); $cd->rip(3, "/tmp/03.rip");
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.
The module provides an object oriented interface as follows:
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.
Indicates the device to rip from. Default: /dev/cdrom.
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 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:
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.
Fired upon completion of a rip. The ARG0 parameter contains the name of the file ripped.
Fired on the event of an error.
Erick Calder <firstname.lastname@example.org>
My gratitude to Rocco Caputo and Matt Cashner whose code has helped me put this together.
$Date: 2002/09/14 22:45:41 $
$Revision: 1.2 $
Copyright (c) 2002 Erick Calder. This product is distributed under the MIT License. A copy of this license was included in a file called LICENSE. If for some reason, this file was not included, please see http://www.opensource.org/licenses/mit-license.html to obtain a copy of this license.