pods::SDL::CDROM(3pm)

πŸ“¦ version 2.548, in opensuse-leap 16.0

πŸ’Ώ NAME

SDL::CDROM -- SDL Bindings for the CDROM device. This is the pods::SDL::CDROM(3pm) page from the User Contributed Perl Documentation, and it is literally right here to explain the CDROM vibes. πŸ’…βœ¨

🏷️ CATEGORY

Core, CDROM. That is the category list, bestie β€” both of them. πŸŽ€

πŸš€ SYNOPSIS

Okay so here is the whole little setup sequence, exactly as written:

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

SDL::init(SDL_INIT_CDROM);

print SDL::CDROM::num_drives();

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

SDL::quit();

🧚 METHODS

πŸ’Ώ num_drives

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

Returns number of drives available on the system. That is the whole mood: you call it, it gives you the drive count. 🫢

🌸 name

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

Returns human readable name for CDROM device. So you hand over the drive number and get a name that actually reads like something. Iconic. πŸ‘‘

πŸ“ Examples

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

πŸ‘€ See Also

SDL::CD, SDL::CDTrack β€” go peek at those too, iykyk. πŸ¦‹

πŸ’– AUTHORS

See "AUTHORS" in SDL.


mwah πŸ’‹ β€” signed off by perl v5.42.0, dated 2024-05-01, on the pods::SDL::CDROM(3pm) page. πŸ’–

πŸ“¦ where this page comes from