Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
SDL_CD(3)
Edit
PageHistory
Diff
Info
LikePages
SDL_CD !!!SDL_CD NAME STRUCTURE DEFINITION STRUCTURE DATA DESCRIPTION EXAMPLES SEE ALSO ---- !!NAME SDL_CD- CDROM Drive Information !!STRUCTURE DEFINITION typedef struct{ int id; CDstatus status; int numtracks; int cur_track; int cur_frame; SDL_CDtrack track[[SDL_MAX_TRACKS+1]; } SDL_CD; !!STRUCTURE DATA __id__ Private drive identifier __status__ Drive ''status'' __numtracks__ Number of tracks on the CD __cur_track__ Current track __cur_frame__ Current frame offset within the track __track__[[SDL_MAX_TRACKS+1] Array of track descriptions. (see __SDL_CDtrack__) !!DESCRIPTION An __SDL_CD__ structure is returned by __SDL_CDOpen__. It represents an opened CDROM device and stores information on the layout of the tracks on the disc. A frame is the base data unit of a CD. __CD_FPS__ frames is equal to 1 second of music. SDL provides two macros for converting between time and frames: __FRAMES_TO_MSF(f, M,S,F)__ and __MSF_TO_FRAMES__. !!EXAMPLES int min, sec, frame; int frame_offset; FRAMES_TO_MSF(cdrom- !!SEE ALSO __SDL_CDOpen__, __SDL_CDtrack__ ----
One page links to
SDL_CD(3)
:
SDLManPages
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.