1SDL::CDROM(3)         User Contributed Perl Documentation        SDL::CDROM(3)
2
3
4

NAME

6       SDL::CDROM -- SDL Bindings for the CDROM device
7

CATEGORY

9       Core, CDROM
10

SYNOPSIS

12        use SDL ':init';
13        use SDL::CDROM;
14
15        SDL::init(SDL_INIT_CDROM);
16
17        print SDL::CDROM::num_drives();
18
19        print SDL::CDROM::name(0);
20
21        SDL::quit();
22

METHODS

24   num_drives
25        my $drives = SDL::CDROM::num_drives();
26
27       Returns number of drives available on the system
28
29   name
30        my $drive_name = SDL::CDROM::name($drive_num);
31
32       Returns human readable name for CDROM device
33
34       Examples:
35
36       ·   '/dev/cdrom'
37
38       ·   'E:'
39
40       ·   '/dev/disk/ide/1/master'
41

See Also

43       SDL::CD, SDL::CDTrack
44

AUTHORS

46       See "AUTHORS" in SDL.
47
48
49
50perl v5.32.0                      2020-07-28                     SDL::CDROM(3)
Impressum