[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

a class to controll atapi cd-rom?

Posted on 1998-04-16
5
Medium Priority
?
288 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses

656 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