5 SDL::Cdrom - a SDL perl extension for managing CD-ROM drives
10 $cdrom = SDL::Cdrom->new(0);
25 Create a new SDL::Cdrom object. The passed $id is the number of the drive,
26 whereas 0 is the first drive etc.
29 my $drive => SDL::Cdrom->new($id);
33 =head2 cd_num_drives()
35 Returns the number of CD-ROM drives present.
39 Returns the system dependent name of the CD-ROM device.
40 It takes a SDL::Cdrom as first parameter.
44 Return the status of the drive.
45 It takes a SDL::Cdrom as first parameter.
47 =head2 play(cd,start,length,fs,fl)
49 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.
50 It returns 1 on succés 0 on error.
54 Pause the playing of the SDL::Cdrom given as first parameter.
55 It returns 1 on succés 0 on error.
59 Resume the playing of the SDL::Cdrom given as first parameter.
60 It returns 1 on succés 0 on error.
64 Stop the playing of the SDL::Cdrom given as first parameter.
65 It returns 1 on succés 0 on error.
69 Eject the medium in the SDL::Cdrom given as first parameter.
70 It returns 1 on succés 0 on error.
74 Return the ID of the drive given as first parameter.
78 Return the number of tracks on the SDL::Cdrom given as first parameter.
80 =head2 track(cd,number)
82 Returns the track description of the track given as second parameter.
83 the first parameter is a SDL:Cdrom.
87 Return the current played track number given as first parameter.
89 =head2 current_frame(cd)
91 Return the current frame given as first parameter.
96 Documentation by Tels <http://bloodgate.com/>.
100 L<perl> L<SDL::Mixer> L<SDL::App>.