SDL::Cdrom - a SDL perl extension for managing CD-ROM drives
use SDL::Cdrom; $cdrom = SDL::Cdrom->new(0); $cdrom->play();
SDL::Cdrom exports by default only one symbol: CD_NUM_DRIVES.
SDL::Cdrom
CD_NUM_DRIVES
use SDL::Cdrom; my $drive => SDL::Cdrom->new($id);
Create a new SDL::Cdrom object. The passed $id is the number of the drive, whereas 0 is the first drive etc.
Returns the number of CD-ROM drives present.
my $name = $drive->name();
Returns the system dependent name of the CD-ROM device.
Return the status of the drive.
$drive->play ($start,$length,$fs,$fl);
Play a track.
Pause the playing.
Resume the playing.
Stop the playing.
Eject the medium in the drive.
Return the ID of the drive.
Return the number of tracks on the medium.
$drive->track($number);
Return the current played track number.
Return the current frame.
David J. Goehrig Documentation by Tels <http://bloodgate.com/>.
See perl(1), SDL::Mixer and SDL::App.
To install SDL_perl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SDL_perl
CPAN shell
perl -MCPAN -e shell install SDL_perl
For more information on module installation, please visit the detailed CPAN module installation guide.