SDL_CD
NAMESTRUCTURE 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->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 ALSO
SDL_CDOpen, SDL_CDtrack
More Linux Commands
manpages/keytool-java-1.8.0-openjdk.1.html
keytool-java-1.8.0-openjdk(1) Manages a keystore (database)
The keytool command is a key and certificate management utility. It enables users to administer their own public/private key pairs and associated certificates f
manpages/NetworkManager.8.html
NetworkManager(8) - network management daemon (Man Page)....
The NetworkManager daemon attempts to make networking configuration and operation as painless and automatic as possible by managing the primary network connecti
manpages/partprobe.8.html
partprobe(8) - inform the OS of partition table changes.....
This manual page documents briefly the partprobe command. partprobe is a program that informs the operating system kernel of partition table changes, by request
manpages/Tcl_GetHashValue.3.html
Tcl_GetHashValue(3) - procedures to manage hash tables......
A hash table consists of zero or more entries, each consisting of a key and a value. Given the key for an entry, the hashing routines can very quickly locate th
manpages/chroot.1.html
chroot(1) - run command or interactive shell with special ro
Run COMMAND with root directory set to NEWROOT. --groups=G_LIST specify supplementary groups as g1,g2,..,gN --userspec=USER:GROUP specify user and group (ID or
manpages/iswalpha.3.html
iswalpha(3) - test for alphabetic wide character (Man Page)
The iswalpha() function is the wide-character equivalent of the isalpha(3) function. It tests whether wc is a wide character belonging to the wide-character cla
manpages/qiflush_sp.3ncurses.html
qiflush_sp(3ncurses) - curses screen-pointer extension......
This implementation can be configured to provide a set of functions which improve the ability to manage multiple screens. This feature can be added to any of th
manpages/XDrawRectangles.3.html
XDrawRectangles(3) - draw rectangles and rectangles structur
The XDrawRectangle and XDrawRectangles functions draw the outlines of the specified rectangle or rectangles as if a five-point PolyLine protocol request were sp
manpages/make_sha1.8.html
make_sha1(8) - Generate SHA1 checksums for given set of user
Generate SHA1 checksums for messages given set of users. Works as incremental update: reads in existing set of SHA1 checksums from sha1_dir/u/userid (hashed on
manpages/Xsecurity.7.html
Xsecurity(7) - X display access control - Linux manual page
X provides mechanism for implementing many access control systems. The sample implementation includes five mechanisms. Any client on a host in the host acces...
manpages/XML::DOM::Comment.3pm.html
XML::DOM::Comment(3pm) - An XML comment in XML::DOM.........
XML::DOM::Comment extends XML::DOM::CharacterData which extends XML::DOM::Node. This node represents the content of a comment, i.e., all the characters between
manpages/futimesat.2.html
futimesat(2) - change timestamps of a file relative to a dir
This system call is obsolete. Use utimensat(2) instead. The futimesat() system call operates in exactly the same way as utimes(2), except for the differences de
