Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: sun.audio

  1. #1
    Junior Member
    Join Date
    Oct 2009
    Posts
    8
    Thanks
    0
    Thanked 3 Times in 2 Posts

    Default 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?

  2. #2
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,896
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default 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.

  3. #3
    Junior Member
    Join Date
    Oct 2009
    Posts
    8
    Thanks
    0
    Thanked 3 Times in 2 Posts

    Default 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.

  4. #4
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,896
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default 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.
    Last edited by helloworld922; November 12th, 2009 at 01:19 AM.

Similar Threads

  1. How to detect audio input from a telephone call?
    By ces_31 in forum Java Theory & Questions
    Replies: 0
    Last Post: August 12th, 2009, 12:45 AM