Query: sdl_cd
OS: redhat
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
SDL_CD(3) SDL API Reference SDL_CD(3)NAMESDL_CD- CDROM Drive InformationSTRUCTURE DEFINITIONtypedef struct{ int id; CDstatus status; int numtracks; int cur_track; int cur_frame; SDL_CDtrack track[SDL_MAX_TRACKS+1]; } SDL_CD;STRUCTURE DATAid 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)DESCRIPTIONAn 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.EXAMPLESint min, sec, frame; int frame_offset; FRAMES_TO_MSF(cdrom->cur_frame, &min, &sec, &frame); printf("Current Position: %d minutes, %d seconds, %d frames ", min, sec, frame); frame_offset=MSF_TO_FRAMES(min, sec, frame);SEE ALSOSDL_CDOpen, SDL_CDtrackSDLTue 11 Sep 2001, 22:58 SDL_CD(3)
Related Man Pages |
---|
sdl_cdopen(3) - opensolaris |
sdl_cdopen(3) - redhat |
sdl_cdopen(3) - suse |
sdl_cdplaytracks(3) - suse |
sdl_cdplaytracks(3) - opensolaris |
Similar Topics in the Unix Linux Community |
---|
Make all words begin with capital letter? |
Reduced Activity Notification |
Retrieving previous command in a script |
Package |
Issue with events occuring in DST window |