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");
$POE::Kernel->run();
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. Default: main.
main
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:
spawn()
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 <ecalder@cpan.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.
4 POD Errors
The following errors were encountered while parsing the POD:
'=item' outside of any '=over'
You forgot a '=back' before '=head2'
You forgot a '=back' before '=head1'
To install POE::Component::CD::Rip, copy and paste the appropriate command in to your terminal.
cpanm
cpanm POE::Component::CD::Rip
CPAN shell
perl -MCPAN -e shell install POE::Component::CD::Rip
For more information on module installation, please visit the detailed CPAN module installation guide.