SDL_CDPlayTracks(3) SDL API Reference SDL_CDPlayTracks(3)NAME
SDL_CDPlayTracks- Play the given CD track(s)
SYNOPSIS
#include "SDL.h"
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
SDL Tue 11 Sep 2001, 22:58 SDL_CDPlayTracks(3)
Check Out this Related Man Page
SDL_CDPlayTracks(3) SDL API Reference SDL_CDPlayTracks(3)NAME
SDL_CDPlayTracks - Play the given CD track(s)
SYNOPSIS
#include "SDL.h"
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
SDL Tue 11 Sep 2001, 22:58 SDL_CDPlayTracks(3)
ok here is what i do and get:
# mount /dev/sd6a /cdrom
mount /dev/sd6a write-protected
ok so what do i do its a external cdrom and its on scsi number 6. its a SparcSTATION 2. we're trying to put red hat sparc 6.2 on it but it wont boot. i am about to take the hard drives out and install it a... (8 Replies)
Hi all,
Thru the installation i get the message to insert oracle CD 2 into cdrom drive but does not come up.
with eject cdrom i get the device is busy.
what i have to do to open the cdrom drive and continue the installation?
plz explain to complete the installation
thanks
grep (7 Replies)
im running suse 8.1 and im having problems with my cdrom drives. i have one pextor12/10/32 cd burner, and one 8x generic ATAPI cdrom. i have the cdburner in /etc/fstab as /dev/cdrecorder and it mounts to /media/cdrecorder/
i have the cdrom in fstab as /dev/cdrom and it mounts to: (you guessed it)... (10 Replies)
I've downloaded the iso images and attempted an boot cdrom in order to install directly from cdrom, but I keep getting error message:
Fast Data Access MMU Miss
After checking simillar issue on the net I've update open boot firmware to the latest 4.10.6 but still no success.
Anyone could help... (4 Replies)
I want to install Solaris 9 on SUN ULTRA 10. The cdrom is attached to an ide controller. The server is currently running Solaris 2.6
I insert Solaris cd 1 of 2 and at the ok prompt I type boot cdrom i get the error below
Boot device: /pci@1f,0/pci@1,1/ide@3/cdrom@2,0:f file and args:... (11 Replies)
Hi all am trying to boot the system from cdrom in single user mode , however when i am giving command boot cdrom -s i am getting below error
Boot Device: /pci@1f,0/pci@1,1/ide@3/cdrom@2,0: f file and args:
Can't read disk label
Can't open disk label package
can,t open boot device
... (17 Replies)
hello all,
i used modprobe -r usb-storage its working properly but when i use the same command with cdrom module as modprobe -r cdrom it is giving error as Fatal error:module cdrom in use, but i dont have any thing in rom and not using it.
thanx. (9 Replies)
iam traying to install o/s in spark machine it showing error
ok >boot cdrom
is showing error
short disk read
failed to read superblock
the file just loaded does not appear to excutable
how to solve this can u help me (6 Replies)
I am using:
reboot -- cdrom
However I'm afraid of causing file system errors/corruption. I've seen many threads say that
init 6
is safer, but I need to get to CDROM.
Is there a command that is as safe as init, but can boot to cdrom, or should I not worry so much about the reboot... (5 Replies)
Hi all,
I need to do installation via console , a image is stored in cdrom.
The OS is Sun Solaris ,
Please tell me how to go about it.
I just need to know the first command and thereafter.
Please advise.
Thanks Manali (5 Replies)
Good Afternoon,
I'm trying to boot from cdrom so I:
bash-2.05# init 0
{1} ok boot cdrom -s and I get:
Rebooting with command: boot cdrom -s
Boot Device: /pci@1e,600000/ide@d/cdrom@2,0:f File and args: -s
Can't read disk label.
Can't open disk label package
Evaluating:
Can't open boot... (13 Replies)