Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Go Back   Code Forums > Application and Web Development > Java
User Name
Password

Reply
 
LinkBack Thread Tools Display Modes
Old 07-05-2006, 06:15 PM   #1 (permalink)
spidermo
Recruit
 
Join Date: Jun 2006
Posts: 14
spidermo is on a distinguished road
Question Playing audio cd's

I have made a program that plays mp3's and cd's using JMF 2.1.1e. It gives you a list that you chose what you want to listen to from. It plays both of them just fine.
It plays cd's fine, but I don't think I am doing it in the correct fashion. When you eject a cd that it is playing from, it doesn't hang, but it doesn't seem to realize that the source is not there anymore. Also, if it is playing a cd and I use System.exit(0); it will keep playing (I have a feeling that is from thread complications).
Anyhow, if anybody knows of a way that that will play cd's and produce either no errors or catchable errors I would be very happy for some help.
__________________
spidermo is offline   Reply With Quote
Old 07-06-2006, 01:47 AM   #2 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,114
Belisarius is on a distinguished road
I haven't tried to work with mounting/unmounting or using sound in Java before, so I'm afraid I won't be much help, but you could try adding in some shutdown hooks to kill the threads.
__________________
GitS
Belisarius is offline   Reply With Quote
Old 07-06-2006, 09:33 AM   #3 (permalink)
spidermo
Recruit
 
Join Date: Jun 2006
Posts: 14
spidermo is on a distinguished road
I am less worried about the cd's playing after the program shuts down. I am more interested in the actual playing of cd's. Thanks though.
__________________
spidermo is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
iPod undermines Microsoft on copy-locked CDs sde Code Newbie News 0 07-12-2004 06:35 AM


All times are GMT -8. The time now is 12:28 AM.


Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2006, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting
Open Circle