Annotated edit history of
SDL_CDOpen(3) version 1, including all changes.
View license author blame.
| Rev |
Author |
# |
Line |
| 1 |
perry |
1 |
SDL_CDOpen |
| |
|
2 |
!!!SDL_CDOpen |
| |
|
3 |
NAME |
| |
|
4 |
SYNOPSIS |
| |
|
5 |
DESCRIPTION |
| |
|
6 |
EXAMPLES |
| |
|
7 |
SEE ALSO |
| |
|
8 |
---- |
| |
|
9 |
!!NAME |
| |
|
10 |
|
| |
|
11 |
|
| |
|
12 |
SDL_CDOpen- Opens a CD-ROM drive for access. |
| |
|
13 |
!!SYNOPSIS |
| |
|
14 |
|
| |
|
15 |
|
| |
|
16 |
__#include __ |
| |
|
17 |
|
| |
|
18 |
|
| |
|
19 |
__SDL_CD *SDL_CDOpen__(__int drive__); |
| |
|
20 |
!!DESCRIPTION |
| |
|
21 |
|
| |
|
22 |
|
| |
|
23 |
Opens a CD-ROM drive for access. It returns a __SDL_CD__ |
| |
|
24 |
structure on success, or __NULL__ if the drive was |
| |
|
25 |
invalid or busy. This newly opened CD-ROM becomes the |
| |
|
26 |
default CD used when other CD functions are passed a |
| |
|
27 |
__NULL__ CD-ROM handle. |
| |
|
28 |
|
| |
|
29 |
|
| |
|
30 |
Drives are numbered starting with 0. Drive 0 is the system |
| |
|
31 |
default CD-ROM. |
| |
|
32 |
!!EXAMPLES |
| |
|
33 |
|
| |
|
34 |
|
| |
|
35 |
SDL_CD *cdrom; |
| |
|
36 |
int cur_track; |
| |
|
37 |
int min, sec, frame; |
| |
|
38 |
SDL_Init(SDL_INIT_CDROM); |
| |
|
39 |
atexit(SDL_Quit); |
| |
|
40 |
/* Check for CD drives */ |
| |
|
41 |
if(!SDL_CDNumDrives()){ |
| |
|
42 |
/* None found */ |
| |
|
43 |
fprintf(stderr, |
| |
|
44 |
!!SEE ALSO |
| |
|
45 |
|
| |
|
46 |
|
| |
|
47 |
__SDL_CD__, __SDL_CDtrack__, |
| |
|
48 |
__SDL_CDClose__ |
| |
|
49 |
---- |
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.