Solved

a class to controll atapi cd-rom?

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

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…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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 about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

760 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

16 Experts available now in Live!

Get 1:1 Help Now