SDL::Cdrom - a SDL perl extension for managing CD-ROM drives
use SDL::Cdrom; $cdrom = SDL::Cdrom->new(0); $cdrom->play();
cd_num_drives
.Create a new SDL::Cdrom object. The passed $id is the number of the drive, whereas 0 is the first drive etc.
use SDL::Cdrom; my $drive => SDL::Cdrom->new($id);
Returns the number of CD-ROM drives present.
Returns the system dependent name of the CD-ROM device. It takes a SDL::Cdrom as first parameter.
Return the status of the drive. It takes a SDL::Cdrom as first parameter.
Play a track from the SDL::Cdrom given as first parameter, second parameter is the frame to start, the third is the lenght to play. It returns 1 on succés 0 on error.
Pause the playing of the SDL::Cdrom given as first parameter. It returns 1 on succés 0 on error.
Resume the playing of the SDL::Cdrom given as first parameter. It returns 1 on succés 0 on error.
Stop the playing of the SDL::Cdrom given as first parameter. It returns 1 on succés 0 on error.
Eject the medium in the SDL::Cdrom given as first parameter. It returns 1 on succés 0 on error.
Return the ID of the drive given as first parameter.
Return the number of tracks on the SDL::Cdrom given as first parameter.
Returns the track description of the track given as second parameter. the first parameter is a SDL:Cdrom.
Return the current played track number given as first parameter.
Return the current frame given as first parameter.
David J. Goehrig Documentation by Tels <http://bloodgate.com/>.
perl SDL::Mixer SDL::App.