Solved

a class to controll atapi cd-rom?

Posted on 1998-04-16
5
263 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 200 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
rhino JavaScript import, load 25 82
Arrays.asList  VS  ArrayList 4 54
servlet example 17 28
printf performancy 11 31
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …

813 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now