Annotated edit history of
SDL_CD(3) version 1, including all changes.
View license author blame.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
SDL_CD |
|
|
2 |
!!!SDL_CD |
|
|
3 |
NAME |
|
|
4 |
STRUCTURE DEFINITION |
|
|
5 |
STRUCTURE DATA |
|
|
6 |
DESCRIPTION |
|
|
7 |
EXAMPLES |
|
|
8 |
SEE ALSO |
|
|
9 |
---- |
|
|
10 |
!!NAME |
|
|
11 |
|
|
|
12 |
|
|
|
13 |
SDL_CD- CDROM Drive Information |
|
|
14 |
!!STRUCTURE DEFINITION |
|
|
15 |
|
|
|
16 |
|
|
|
17 |
typedef struct{ |
|
|
18 |
int id; |
|
|
19 |
CDstatus status; |
|
|
20 |
int numtracks; |
|
|
21 |
int cur_track; |
|
|
22 |
int cur_frame; |
|
|
23 |
SDL_CDtrack track[[SDL_MAX_TRACKS+1]; |
|
|
24 |
} SDL_CD; |
|
|
25 |
!!STRUCTURE DATA |
|
|
26 |
|
|
|
27 |
|
|
|
28 |
__id__ Private drive identifier |
|
|
29 |
|
|
|
30 |
|
|
|
31 |
__status__ Drive ''status'' |
|
|
32 |
|
|
|
33 |
|
|
|
34 |
__numtracks__ Number of tracks on the CD |
|
|
35 |
|
|
|
36 |
|
|
|
37 |
__cur_track__ Current track |
|
|
38 |
|
|
|
39 |
|
|
|
40 |
__cur_frame__ Current frame offset within the |
|
|
41 |
track |
|
|
42 |
|
|
|
43 |
|
|
|
44 |
__track__[[SDL_MAX_TRACKS+1] |
|
|
45 |
|
|
|
46 |
|
|
|
47 |
Array of track descriptions. (see |
|
|
48 |
__SDL_CDtrack__) |
|
|
49 |
!!DESCRIPTION |
|
|
50 |
|
|
|
51 |
|
|
|
52 |
An __SDL_CD__ structure is returned by __SDL_CDOpen__. |
|
|
53 |
It represents an opened CDROM device and stores information |
|
|
54 |
on the layout of the tracks on the disc. |
|
|
55 |
|
|
|
56 |
|
|
|
57 |
A frame is the base data unit of a CD. __CD_FPS__ frames |
|
|
58 |
is equal to 1 second of music. SDL provides two macros for |
|
|
59 |
converting between time and frames: __FRAMES_TO_MSF(f, |
|
|
60 |
M,S,F)__ and __MSF_TO_FRAMES__. |
|
|
61 |
!!EXAMPLES |
|
|
62 |
|
|
|
63 |
|
|
|
64 |
int min, sec, frame; |
|
|
65 |
int frame_offset; |
|
|
66 |
FRAMES_TO_MSF(cdrom- |
|
|
67 |
!!SEE ALSO |
|
|
68 |
|
|
|
69 |
|
|
|
70 |
__SDL_CDOpen__, __SDL_CDtrack__ |
|
|
71 |
---- |
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.