pods::...DTrack(3pm)

πŸ’– NAME

okay so this is pods::...DTrack(3pm) from User Contributed Perl Documentation, and it's the manual page for SDL::CDTrack β€” SDL Bindings for structure SDL_CDTrack. Periodt. πŸ’…

πŸ’Ώ CATEGORY

Category check: Core, CDROM, Structure. All three, no cap. πŸ¦‹

✨ SYNOPSIS

Here's the whole little flow, bestie β€” copy it exactly:

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

iykyk πŸ’–

πŸ’… METHOD

The methods are giving main character energy. Here's every one, exactly as listed: 🫢

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 β€” go look, bestie. 🌈

πŸ’œ AUTHORS

See "AUTHORS" in SDL. πŸ™ˆ


That's the whole page! This one's serving perl v5.42.3, dated 2026-08-19, with the pods::...DTrack(3pm) header. Byeee, bestie! πŸ«ΆπŸ’œβœ¨

πŸ“¦ where this page comes from