-
sun.audio
I have written a program that takes advantage of sun.audio objects. It compiles fine on my mac, but when I try to compile it on a Windows or Linux computer, it warns that sun.audio might be removed in a future release, and wont let it compile. I want to be able to compile it so it will run better on them (I can copy over compiled files and run it, but the performance isn't good). How do I manage this?
-
Re: sun.audio
Are you using an IDE? If so, which one? It should let you compile even if it's a soon to be removed feature.
Have you looked into the Sound API? It might be able to do the samething you want from the sun.audio.
-
Re: sun.audio
I tried with jGrasp and with javac command. Both give the same error. I have not seen sound, I just saw on a webpage that applications couldn't have sound, only applets.
-
Re: sun.audio
I know that the Sound API can play audio and MIDI in a regular application as well as an applet.
Here's a link to a tutorial for using the Sound API: Java Sound
I did some research on the sun.audio API, and it looks like it's extremely old. There were articles from over 10 years ago that gave tutorials about using the sun.audio API. I think Sun might have replaced the sun.audio API with the Sound API.