1<HTML 2><HEAD 3><TITLE 4>SDL_CDtrack</TITLE 5><META 6NAME="GENERATOR" 7CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ 8"><LINK 9REL="HOME" 10TITLE="SDL Library Documentation" 11HREF="index.html"><LINK 12REL="UP" 13TITLE="CD-ROM" 14HREF="cdrom.html"><LINK 15REL="PREVIOUS" 16TITLE="SDL_CD" 17HREF="sdlcd.html"><LINK 18REL="NEXT" 19TITLE="Multi-threaded Programming" 20HREF="thread.html"></HEAD 21><BODY 22CLASS="REFENTRY" 23BGCOLOR="#FFF8DC" 24TEXT="#000000" 25LINK="#0000ee" 26VLINK="#551a8b" 27ALINK="#ff0000" 28><DIV 29CLASS="NAVHEADER" 30><TABLE 31SUMMARY="Header navigation table" 32WIDTH="100%" 33BORDER="0" 34CELLPADDING="0" 35CELLSPACING="0" 36><TR 37><TH 38COLSPAN="3" 39ALIGN="center" 40>SDL Library Documentation</TH 41></TR 42><TR 43><TD 44WIDTH="10%" 45ALIGN="left" 46VALIGN="bottom" 47><A 48HREF="sdlcd.html" 49ACCESSKEY="P" 50>Prev</A 51></TD 52><TD 53WIDTH="80%" 54ALIGN="center" 55VALIGN="bottom" 56></TD 57><TD 58WIDTH="10%" 59ALIGN="right" 60VALIGN="bottom" 61><A 62HREF="thread.html" 63ACCESSKEY="N" 64>Next</A 65></TD 66></TR 67></TABLE 68><HR 69ALIGN="LEFT" 70WIDTH="100%"></DIV 71><H1 72><A 73NAME="SDLCDTRACK" 74></A 75>SDL_CDtrack</H1 76><DIV 77CLASS="REFNAMEDIV" 78><A 79NAME="AEN7628" 80></A 81><H2 82>Name</H2 83>SDL_CDtrack -- CD Track Information Structure</DIV 84><DIV 85CLASS="REFSECT1" 86><A 87NAME="AEN7631" 88></A 89><H2 90>Structure Definition</H2 91><PRE 92CLASS="PROGRAMLISTING" 93>typedef struct{ 94 Uint8 id; 95 Uint8 type; 96 Uint32 length; 97 Uint32 offset; 98} SDL_CDtrack;</PRE 99></DIV 100><DIV 101CLASS="REFSECT1" 102><A 103NAME="AEN7634" 104></A 105><H2 106>Structure Data</H2 107><DIV 108CLASS="INFORMALTABLE" 109><A 110NAME="AEN7636" 111></A 112><P 113></P 114><TABLE 115BORDER="0" 116CLASS="CALSTABLE" 117><TBODY 118><TR 119><TD 120ALIGN="LEFT" 121VALIGN="TOP" 122><TT 123CLASS="STRUCTFIELD" 124><I 125>id</I 126></TT 127></TD 128><TD 129ALIGN="LEFT" 130VALIGN="TOP" 131>Track number (0-99)</TD 132></TR 133><TR 134><TD 135ALIGN="LEFT" 136VALIGN="TOP" 137><TT 138CLASS="STRUCTFIELD" 139><I 140>type</I 141></TT 142></TD 143><TD 144ALIGN="LEFT" 145VALIGN="TOP" 146><TT 147CLASS="LITERAL" 148>SDL_AUDIO_TRACK</TT 149> or <TT 150CLASS="LITERAL" 151>SDL_DATA_TRACK</TT 152></TD 153></TR 154><TR 155><TD 156ALIGN="LEFT" 157VALIGN="TOP" 158><TT 159CLASS="STRUCTFIELD" 160><I 161>length</I 162></TT 163></TD 164><TD 165ALIGN="LEFT" 166VALIGN="TOP" 167>Length, in frames, of this track</TD 168></TR 169><TR 170><TD 171ALIGN="LEFT" 172VALIGN="TOP" 173><TT 174CLASS="STRUCTFIELD" 175><I 176>offset</I 177></TT 178></TD 179><TD 180ALIGN="LEFT" 181VALIGN="TOP" 182>Frame offset to the beginning of this track</TD 183></TR 184></TBODY 185></TABLE 186><P 187></P 188></DIV 189></DIV 190><DIV 191CLASS="REFSECT1" 192><A 193NAME="AEN7657" 194></A 195><H2 196>Description</H2 197><P 198><SPAN 199CLASS="STRUCTNAME" 200>SDL_CDtrack</SPAN 201> stores data on each track on a CD, its fields should be pretty self explainatory. It is a member a the <A 202HREF="sdlcd.html" 203><SPAN 204CLASS="STRUCTNAME" 205>SDL_CD</SPAN 206></A 207> structure.</P 208><DIV 209CLASS="NOTE" 210><BLOCKQUOTE 211CLASS="NOTE" 212><P 213><B 214>Note: </B 215>Frames can be converted to standard timings. There are <TT 216CLASS="LITERAL" 217>CD_FPS</TT 218> frames per second, so <SPAN 219CLASS="STRUCTNAME" 220>SDL_CDtrack</SPAN 221>.<TT 222CLASS="STRUCTFIELD" 223><I 224>length</I 225></TT 226>/<TT 227CLASS="LITERAL" 228>CD_FPS</TT 229>=length_in_seconds.</P 230></BLOCKQUOTE 231></DIV 232></DIV 233><DIV 234CLASS="REFSECT1" 235><A 236NAME="AEN7669" 237></A 238><H2 239>See Also</H2 240><P 241><A 242HREF="sdlcd.html" 243><SPAN 244CLASS="STRUCTNAME" 245>SDL_CD</SPAN 246></A 247></P 248></DIV 249><DIV 250CLASS="NAVFOOTER" 251><HR 252ALIGN="LEFT" 253WIDTH="100%"><TABLE 254SUMMARY="Footer navigation table" 255WIDTH="100%" 256BORDER="0" 257CELLPADDING="0" 258CELLSPACING="0" 259><TR 260><TD 261WIDTH="33%" 262ALIGN="left" 263VALIGN="top" 264><A 265HREF="sdlcd.html" 266ACCESSKEY="P" 267>Prev</A 268></TD 269><TD 270WIDTH="34%" 271ALIGN="center" 272VALIGN="top" 273><A 274HREF="index.html" 275ACCESSKEY="H" 276>Home</A 277></TD 278><TD 279WIDTH="33%" 280ALIGN="right" 281VALIGN="top" 282><A 283HREF="thread.html" 284ACCESSKEY="N" 285>Next</A 286></TD 287></TR 288><TR 289><TD 290WIDTH="33%" 291ALIGN="left" 292VALIGN="top" 293>SDL_CD</TD 294><TD 295WIDTH="34%" 296ALIGN="center" 297VALIGN="top" 298><A 299HREF="cdrom.html" 300ACCESSKEY="U" 301>Up</A 302></TD 303><TD 304WIDTH="33%" 305ALIGN="right" 306VALIGN="top" 307>Multi-threaded Programming</TD 308></TR 309></TABLE 310></DIV 311></BODY 312></HTML 313>