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


Manual Reference Pages  -  PODS::SDL::CDTRACK (3)

.ds Aq ’

NAME

SDL::CDTrack -- SDL Bindings for structure SDL_CDTrack

CONTENTS

CATEGORY

Core, CDROM, Structure

SYNOPSIS



 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 drives CD

     if($CD)
     {
         if( $CD->status != CD_TRAYEMPTY )
         {
             my $track = SDL::CD->track(0);
         }
     }
 }



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

SEE ALSO

SDL::CDROM, SDL::CD

AUTHORS

See AUTHORS in SDL.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 PODS::SDL::CDTRACK (3) 2016-04-05

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