logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Authors

       See "AUTHORS" in SDL.

perl v5.40.0                                       2024-10-20                              pods::SDL::CDROM(3pm)

Category

       Core, CDROM

Methods

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'

Name

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

See Also

       SDL::CD, SDL::CDTrack

Synopsis

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

        SDL::init(SDL_INIT_CDROM);

        print SDL::CDROM::num_drives();

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

        SDL::quit();

See Also