<h3 id="TOP">Index</h3>
<ul><li><a href="#NAME">NAME</a></li>
-<li><a href="#CATEGORY">CATEGORY</a>
+<li><a href="#CATEGORY">CATEGORY</a></li>
+<li><a href="#SYNOPSIS">SYNOPSIS</a></li>
+<li><a href="#CONSTANTS">CONSTANTS</a></li>
+<li><a href="#METHOD">METHOD</a>
+<ul><li><a href="#id">id</a></li>
+<li><a href="#type">type</a></li>
+<li><a href="#length">length</a></li>
+<li><a href="#offset">offset </a></li>
+</ul>
+</li>
+<li><a href="#SEE_ALSO">SEE ALSO</a>
</li>
</ul><hr />
<!-- INDEX END -->
</div>
<h1 id="CATEGORY">CATEGORY</h1><p><a href="#TOP" class="toplink">Top</a></p>
<div id="CATEGORY_CONTENT">
-<p>TODO, Core, CDROM, Structure</p>
+<p>Core, CDROM, Structure</p>
+
+</div>
+<h1 id="SYNOPSIS">SYNOPSIS</h1><p><a href="#TOP" class="toplink">Top</a></p>
+<div id="SYNOPSIS_CONTENT">
+<pre> use SDL ':init';
+ 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);
+ }
+ }
+ }
+
+</pre>
+
+</div>
+<h1 id="CONSTANTS">CONSTANTS</h1><p><a href="#TOP" class="toplink">Top</a></p>
+<div id="CONSTANTS_CONTENT">
+<p>The constants are not exported by default. You can export them into your namespace by doing:</p>
+<pre> use SDL::CDTrack ':all';
+
+</pre>
+<p>or access them directly:</p>
+<pre> SDL::CDTrack::SDL_AUDIO_TRACK;
+
+</pre>
+<p>or by choosing the export tags below:</p>
+<p>Export tag: ':type'</p>
+<pre> SDL_AUDIO_TRACK
+ SDL_DATA_TRACK
+
+</pre>
+
+</div>
+<h1 id="METHOD">METHOD</h1><p><a href="#TOP" class="toplink">Top</a></p>
+<div id="METHOD_CONTENT">
+
+</div>
+<h2 id="id">id</h2>
+<div id="id_CONTENT">
+<pre> $track->id() # 0-99
+
+</pre>
+<p>Track number</p>
+
+</div>
+<h2 id="type">type</h2>
+<div id="type_CONTENT">
+<pre> $track->type() # SDL_AUDIO_TRACK or SDL_DATA_TRACK
+
+</pre>
+<p>Type of track</p>
+
+</div>
+<h2 id="length">length</h2>
+<div id="length_CONTENT">
+<pre> $track->length()
+
+</pre>
+<p>Length, in frames, of this track </p>
+
+</div>
+<h2 id="offset">offset </h2>
+<div id="offset_CONTENT">
+<pre> $track->offset()
+
+</pre>
+<p>Frame offset to the beginning of this track </p>
+
+</div>
+<h1 id="SEE_ALSO">SEE ALSO</h1><p><a href="#TOP" class="toplink">Top</a></p>
+<div id="SEE_ALSO_CONTENT">
+<p><a href="SDL-CDROM.html">SDL::CDROM</a>, <a href="SDL-CD.html">SDL::CD</a></p>
</div>
</div>
\ No newline at end of file