pods::SDL::CDTrack man page on OpenSuSE

Man page or keyword search:  
man Server   25941 pages
apropos Keyword Search (all sections)
Output format
OpenSuSE logo
[printable version]

pods::SDL::CDTrack(3) User Contributed Perl Documentationpods::SDL::CDTrack(3)

NAME
       SDL::CDTrack -- SDL Bindings for structure SDL_CDTrack

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 drive's 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.

perl v5.18.1			  2013-09-28		 pods::SDL::CDTrack(3)
[top]

List of man pages available for OpenSuSE

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net