GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
pods::SDL::CDTrack(3) User Contributed Perl Documentation pods::SDL::CDTrack(3)

SDL::CDTrack -- SDL Bindings for structure SDL_CDTrack

Core, CDROM, Structure

 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);
         }
     }
 }

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

 $track->id() # 0-99

Track number

 $track->type() # SDL_AUDIO_TRACK or SDL_DATA_TRACK

Type of track

 $track->length()

Length, in frames, of this track

 $track->offset()

Frame offset to the beginning of this track

SDL::CDROM, SDL::CD

See "AUTHORS" in SDL.
2022-06-07 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.