Home ··· Articles ··· Documentation ··· Dev ··· Irc ··· Download ··· About

Index


NAME

Top

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

CATEGORY

Top

Core, CDROM

SYNOPSIS

Top

 use SDL ':init';
 use SDL::CDROM;

 SDL::init(SDL_INIT_CDROM);

 print SDL::CDROM::num_drives();

 print SDL::CDROM::name(0);

 SDL::quit();

METHODS

Top

num_drives

 my $drives = SDL::CDROM::num_drives(); 

Returns number of drives available on the system

name

 my $drive_name = SDL::CDROM::name($drive_num);

Returns human readable name for CDROM device

Examples:

  • '/dev/cdrom'
  • 'E:'
  • '/dev/disk/ide/1/master'

See Also

Top

AUTHORS

Top

©2009. designed by FROGGS, hosted by mst, maintained by kthakore