Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

sdl_cdplaytracks(3) [opensolaris 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)

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)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

still cant get the solaris cdrom!!

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)
Discussion started by: wixifer
8 Replies

2. UNIX for Dummies Questions & Answers

Mount a Filesystem

I want help about mount a filesystem to use a cdrom to install a software that be in the cd cdrom.. you can send a mail ::removed emails:: (5 Replies)
Discussion started by: amauryrgrullon
5 Replies

3. UNIX for Dummies Questions & Answers

Cdrom

How would I mount a cdrom drive in Unix (4 Replies)
Discussion started by: Hordak
4 Replies

4. UNIX for Dummies Questions & Answers

cdrom problems..

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)
Discussion started by: norsk hedensk
10 Replies

5. UNIX for Advanced & Expert Users

What is the command to start the cdrom

Hello people, What is the command to start the cdrom from the command prompt on solaris 9? plz help. rs (5 Replies)
Discussion started by: rsh
5 Replies

6. UNIX for Dummies Questions & Answers

Installing Debian on Sparc

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)
Discussion started by: bubbs
4 Replies

7. Programming

cd inserted event

:confused: i am programming in c and i need to start a procedure automatically when a cd is inserted. Anyone knows how can i do it? thanx (9 Replies)
Discussion started by: massimo_ratti
9 Replies

8. Solaris

Can't boot from cdrom at ok prompt

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)
Discussion started by: Msororaji
11 Replies

9. Solaris

not able to boot from cdrom

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)
Discussion started by: kumarmani
17 Replies

10. Filesystems, Disks and Memory

"modprobe -r cdrom" error.

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)
Discussion started by: zius_oram
9 Replies

11. Solaris

can't boot cdrom

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)
Discussion started by: tirupathi
6 Replies

12. Solaris

Solaris 9 Reset Password - boot cdrom -s not working

Boot device : /pci@1f,4000/scsi@3/disk@0,0:a File and args: -s cdrom SunOS Release 5.9 Version Generic_118558-11 64-bit (6 Replies)
Discussion started by: agummad
6 Replies

13. Solaris

need to safely reboot to cdrom

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)
Discussion started by: lcoreyl
5 Replies

14. Solaris

HOW TO INSTALL os from cdrom from console?

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)
Discussion started by: manalisharmabe
5 Replies

15. UNIX for Beginners Questions & Answers

Cannot boot cdrom -s

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)
Discussion started by: Stellaman1977
13 Replies