Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
SDL_CDPlayTracks(3)
Edit
PageHistory
Diff
Info
LikePages
SDL_CDPlayTracks !!!SDL_CDPlayTracks NAME SYNOPSIS DESCRIPTION RETURN VALUE EXAMPLES SEE ALSO ---- !!NAME SDL_CDPlayTracks- Play the given CD track(s) !!SYNOPSIS __#include __ __int SDL_CDPlayTracks__(__SDL_CD *cdrom, int start_track, int start_frame, int ntracks, int nframes)__); !!DESCRIPTION __SDL_CDPlayTracks__ plays the given CD starting at track __start_track__, for __ntracks__ tracks. __start_frame__ is the frame offset, from the beginning of the __start_track__, at which to start. __nframes__ is the frame offset, from the beginning of the last track (__start_track__+__ntracks__), at which to end playing. __SDL_CDPlayTracks__ should only be called after calling __SDL_CDStatus__ to get track information about the CD. __Note:__ Data tracks are ignored. !!RETURN VALUE Returns __0__, or __-1__ if there was an error. !!EXAMPLES /* assuming cdrom is a previously opened device */ /* Play the entire CD */ if(CD_INDRIVE(SDL_CDStatus(cdrom))) SDL_CDPlayTracks(cdrom, 0, 0, 0, 0); /* Play the first track */ if(CD_INDRIVE(SDL_CDStatus(cdrom))) SDL_CDPlayTracks(cdrom, 0, 0, 1, 0); /* Play first 15 seconds of the 2nd track */ if(CD_INDRIVE(SDL_CDStatus(cdrom))) SDL_CDPlayTracks(cdrom, 1, 0, 0, CD_FPS*15); !!SEE ALSO __SDL_CDPlay__, __SDL_CDStatus__, __SDL_CD__ ----
One page links to
SDL_CDPlayTracks(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.