Solved

a class to controll atapi cd-rom?

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Running JavaFX on JDeveloper 12C 1 53
jsp login check 12 42
add projects t working set in maven 2 19
servlet and mdb, jms error 1 32
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
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 scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
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…

840 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