comparison docs/html/guidecdromexamples.html @ 803:355632dca928

Updated SDL HTML documentation
author Sam Lantinga <slouken@libsdl.org>
date Tue, 10 Feb 2004 15:15:40 +0000
parents e5bc29de3f0a
children
comparison
equal deleted inserted replaced
802:3c609d54f100 803:355632dca928
2 ><HEAD 2 ><HEAD
3 ><TITLE 3 ><TITLE
4 >CDROM Examples</TITLE 4 >CDROM Examples</TITLE
5 ><META 5 ><META
6 NAME="GENERATOR" 6 NAME="GENERATOR"
7 CONTENT="Modular DocBook HTML Stylesheet Version 1.64 7 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
8 "><LINK 8 "><LINK
9 REL="HOME" 9 REL="HOME"
10 TITLE="SDL Library Documentation" 10 TITLE="SDL Library Documentation"
11 HREF="index.html"><LINK 11 HREF="index.html"><LINK
12 REL="UP" 12 REL="UP"
26 VLINK="#551a8b" 26 VLINK="#551a8b"
27 ALINK="#ff0000" 27 ALINK="#ff0000"
28 ><DIV 28 ><DIV
29 CLASS="NAVHEADER" 29 CLASS="NAVHEADER"
30 ><TABLE 30 ><TABLE
31 SUMMARY="Header navigation table"
31 WIDTH="100%" 32 WIDTH="100%"
32 BORDER="0" 33 BORDER="0"
33 CELLPADDING="0" 34 CELLPADDING="0"
34 CELLSPACING="0" 35 CELLSPACING="0"
35 ><TR 36 ><TR
43 WIDTH="10%" 44 WIDTH="10%"
44 ALIGN="left" 45 ALIGN="left"
45 VALIGN="bottom" 46 VALIGN="bottom"
46 ><A 47 ><A
47 HREF="guideaudioexamples.html" 48 HREF="guideaudioexamples.html"
49 ACCESSKEY="P"
48 >Prev</A 50 >Prev</A
49 ></TD 51 ></TD
50 ><TD 52 ><TD
51 WIDTH="80%" 53 WIDTH="80%"
52 ALIGN="center" 54 ALIGN="center"
56 WIDTH="10%" 58 WIDTH="10%"
57 ALIGN="right" 59 ALIGN="right"
58 VALIGN="bottom" 60 VALIGN="bottom"
59 ><A 61 ><A
60 HREF="guidetimeexamples.html" 62 HREF="guidetimeexamples.html"
63 ACCESSKEY="N"
61 >Next</A 64 >Next</A
62 ></TD 65 ></TD
63 ></TR 66 ></TR
64 ></TABLE 67 ></TABLE
65 ><HR 68 ><HR
69 CLASS="SECT1" 72 CLASS="SECT1"
70 ><H1 73 ><H1
71 CLASS="SECT1" 74 CLASS="SECT1"
72 ><A 75 ><A
73 NAME="GUIDECDROMEXAMPLES" 76 NAME="GUIDECDROMEXAMPLES"
74 >CDROM Examples</A 77 ></A
75 ></H1 78 >CDROM Examples</H1
76 ><P 79 ><P
77 ></P 80 ></P
78 ><DIV 81 ><DIV
79 CLASS="SECT2" 82 CLASS="SECT2"
80 ><H2 83 ><H2
81 CLASS="SECT2" 84 CLASS="SECT2"
82 ><A 85 ><A
83 NAME="AEN393" 86 NAME="AEN393"
84 >Listing CD-ROM drives</A 87 ></A
85 ></H2 88 >Listing CD-ROM drives</H2
86 ><P 89 ><P
87 ><PRE 90 ><PRE
88 CLASS="PROGRAMLISTING" 91 CLASS="PROGRAMLISTING"
89 > #include "SDL.h" 92 > #include "SDL.h"
90 93
106 CLASS="SECT2" 109 CLASS="SECT2"
107 ><H2 110 ><H2
108 CLASS="SECT2" 111 CLASS="SECT2"
109 ><A 112 ><A
110 NAME="AEN397" 113 NAME="AEN397"
111 >Opening the default drive</A 114 ></A
112 ></H2 115 >Opening the default drive</H2
113 ><P 116 ><P
114 ><PRE 117 ><PRE
115 CLASS="PROGRAMLISTING" 118 CLASS="PROGRAMLISTING"
116 > SDL_CD *cdrom; 119 > SDL_CD *cdrom;
117 CDstatus status; 120 CDstatus status;
155 CLASS="SECT2" 158 CLASS="SECT2"
156 ><H2 159 ><H2
157 CLASS="SECT2" 160 CLASS="SECT2"
158 ><A 161 ><A
159 NAME="AEN401" 162 NAME="AEN401"
160 >Listing the tracks on a CD</A 163 ></A
161 ></H2 164 >Listing the tracks on a CD</H2
162 ><P 165 ><P
163 ><PRE 166 ><PRE
164 CLASS="PROGRAMLISTING" 167 CLASS="PROGRAMLISTING"
165 > SDL_CD *cdrom; /* Assuming this has already been set.. */ 168 > SDL_CD *cdrom; /* Assuming this has already been set.. */
166 int i; 169 int i;
181 CLASS="SECT2" 184 CLASS="SECT2"
182 ><H2 185 ><H2
183 CLASS="SECT2" 186 CLASS="SECT2"
184 ><A 187 ><A
185 NAME="AEN405" 188 NAME="AEN405"
186 >Play an entire CD</A 189 ></A
187 ></H2 190 >Play an entire CD</H2
188 ><P 191 ><P
189 ><PRE 192 ><PRE
190 CLASS="PROGRAMLISTING" 193 CLASS="PROGRAMLISTING"
191 > SDL_CD *cdrom; /* Assuming this has already been set.. */ 194 > SDL_CD *cdrom; /* Assuming this has already been set.. */
192 195
208 ><DIV 211 ><DIV
209 CLASS="NAVFOOTER" 212 CLASS="NAVFOOTER"
210 ><HR 213 ><HR
211 ALIGN="LEFT" 214 ALIGN="LEFT"
212 WIDTH="100%"><TABLE 215 WIDTH="100%"><TABLE
216 SUMMARY="Footer navigation table"
213 WIDTH="100%" 217 WIDTH="100%"
214 BORDER="0" 218 BORDER="0"
215 CELLPADDING="0" 219 CELLPADDING="0"
216 CELLSPACING="0" 220 CELLSPACING="0"
217 ><TR 221 ><TR
219 WIDTH="33%" 223 WIDTH="33%"
220 ALIGN="left" 224 ALIGN="left"
221 VALIGN="top" 225 VALIGN="top"
222 ><A 226 ><A
223 HREF="guideaudioexamples.html" 227 HREF="guideaudioexamples.html"
228 ACCESSKEY="P"
224 >Prev</A 229 >Prev</A
225 ></TD 230 ></TD
226 ><TD 231 ><TD
227 WIDTH="34%" 232 WIDTH="34%"
228 ALIGN="center" 233 ALIGN="center"
229 VALIGN="top" 234 VALIGN="top"
230 ><A 235 ><A
231 HREF="index.html" 236 HREF="index.html"
237 ACCESSKEY="H"
232 >Home</A 238 >Home</A
233 ></TD 239 ></TD
234 ><TD 240 ><TD
235 WIDTH="33%" 241 WIDTH="33%"
236 ALIGN="right" 242 ALIGN="right"
237 VALIGN="top" 243 VALIGN="top"
238 ><A 244 ><A
239 HREF="guidetimeexamples.html" 245 HREF="guidetimeexamples.html"
246 ACCESSKEY="N"
240 >Next</A 247 >Next</A
241 ></TD 248 ></TD
242 ></TR 249 ></TR
243 ><TR 250 ><TR
244 ><TD 251 ><TD
250 WIDTH="34%" 257 WIDTH="34%"
251 ALIGN="center" 258 ALIGN="center"
252 VALIGN="top" 259 VALIGN="top"
253 ><A 260 ><A
254 HREF="guideexamples.html" 261 HREF="guideexamples.html"
262 ACCESSKEY="U"
255 >Up</A 263 >Up</A
256 ></TD 264 ></TD
257 ><TD 265 ><TD
258 WIDTH="33%" 266 WIDTH="33%"
259 ALIGN="right" 267 ALIGN="right"