[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

a class to controll atapi cd-rom?

Posted on 1998-04-16
5
Medium Priority
?
291 Views
Last Modified: 2010-04-16
Anyone know if there are, or know where I could find, any classes that are used to make
an atapi cd-rom drive play music cd's? ie: play, pause, next track, etc.
I am building a small cd player application and the only problem I have is actually getting the
thing to work ;>
I am hoping that I don't have to resort to native methods to do this so if anyone know's a way
i'd be gratefull.

Thanks
0
Comment
Question by:rasp
  • 3
5 Comments
 

Author Comment

by:rasp
ID: 1234108
Adjusted points to 200
0
 

Expert Comment

by:java_lord
ID: 1234109
Begin login to java_lords core memory bank and make a withdrawal.
Dot Dot <space> Dot Dot <space>
OKay. You must call routines that change and read the contents
of interupts in registers for the io to and from the device.
So you must use native methods.

Follow me...I am Java_LOrd

0
 

Author Comment

by:rasp
ID: 1234110
Do you know of any toolkits out there that may help me to do this?

Can someone write (or has someone writen) a driver in java, for specific platforms?
As we speak I am working on a winblows machine but I will be quite happy to get my
program to work in Linux only.
I don't want to re-invent the wheel here, it would be nice to be able to use other people's code ;>
0
 

Accepted Solution

by:
psionics earned 800 total points
ID: 1234111
I'm afraid to my knowledge there are no ready made (native) classes for linux
to control CD-Roms ATAPI or otherwise.

If you are not afraid to use Class java.lang.Runtime

There is an exec call there.
There should be a linux commandline player here:
         ftp://sunsite.unc.edu/pub/Linux/apps/sound/cdrom/cli
         size: 24634                          name:  cdtool-2.1.4.tar.gz

Here is an extract of the lsm, have fun !


Title:          CDTOOL CD-ROM Audio Disc Utilities
Version:        2.1.4
Entered-date:   3/24/1998
Description:    A package of command-line utilities to play and catalog
                audio discs on a CD-ROM drive.  cdplay, cdpause, cdstop,
                and cdeject do what they say.  cdir lists the tracks and
                their lengths, and will reference a database of cd names,
                artists, and track names.  cdinfo gives you various infos
                like time played, etc. (This is 2.1 Beta and feedback
                is WELCOMED.  We have been using this for several months.
                Only source is included currently.).  Original authors are:
                tinsel@uiuc.edu (Thomas Insel) and
                smol0075@rz.uni-hildesheim.de (Sven Oliver Moll)
Keywords:       cd-rom, compact disc, audio, music
Author:         whampton@staffnet.com (Wade Hampton)
Maintained-by:  whampton@staffnet.com (Wade Hampton)
Primary-site:   sunsite.unc.edu /pub/Linux/apps/sound/cdrom
                24634 cdtool-2.1.4.tar.gz
                1k    cdtool-2.1.4.lsm
Alternate-site:
Original-site:  sunsite.unc.edu
Platforms:      Linux X86, CD-ROM
Copying-policy: GPL



0
 

Author Comment

by:rasp
ID: 1234112
Thanks much psionic!

I will d/l this and play around with it....
maybe someday i'll make some native classes to do these things
with java :>


0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Suggested Courses
Course of the Month19 days, 19 hours left to enroll

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question