SDL::CDTrack(3pm)

SDL::CDTrack3pm

Usage

 use SDL;
 use SDL::CDROM;
 use SDL::CD ':status';
 use SDL::CDTrack;
 SDL::init( SDL_INIT_CDROM );
 
 my $drives = SDL::CDROM::num_drives(); 
 if( $drives > 0 )
 {
     my $CD = SDL::CD->new(0); #first drive's CD
 
     if($CD)
     {
         if( $CD->status != CD_TRAYEMPTY )
         {
             my $track = SDL::CD->track(0);
         }
     }
 }

Category

Core, CDROM, Structure

Constants

The constants are exported by default. You can avoid this by doing:

 use SDL::CDTrack ();

and access them directly:

 SDL::CDTrack::SDL_AUDIO_TRACK;

or by choosing the export tags below:

Export tag: ':type'

 SDL_AUDIO_TRACK
 SDL_DATA_TRACK

Method

id

 $track->id() # 0-99

Track number

type

 $track->type() # SDL_AUDIO_TRACK or SDL_DATA_TRACK

Type of track

length

 $track->length()

Length, in frames, of this track

offset

 $track->offset()

Frame offset to the beginning of this track

Releases

7 releases since Debian 7 (Wheezy); the text changed 6 times.

  1. 7
  2. 8
  3. 9
  4. 10
  5. 11
  6. 12
  7. 13

Authors

See "AUTHORS" in SDL.

From libsdl-perl 2.548-5+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.