Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2011
    Posts
    93
    Rep Power
    0

    Default Java and audio output

    Hello. So far, in learning about Java, I am only able to get the computer to print out a message.

    I would like to try and write an application that will output two audio tones of different pitches. What java class or java utility do I need to learn about in order to accomplish such a task?

    Thank you. hmb

  2. #2
    Tolls is online now Moderator
    Join Date
    Apr 2009
    Posts
    11,447
    Rep Power
    18

    Default Re: Java and audio output

    Funnily enough I've been lloking into sound synthesis in Java just this past few days.
    Here's a look at it on a Stack Overflow thread.
    There's some links to packages as well, but try the example at the top first.
    Please do not ask for code as refusal often offends.

  3. #3
    Join Date
    Mar 2011
    Posts
    93
    Rep Power
    0

    Default Re: Java and audio output

    Hello. Thanks for your reply. I will try it out.

    At this time, I don't need note synthesis or sampling. I am happy to simply have the computer play back a pre-recorded tone (i.e play back a .wav file - it is no big deal to save a .wav file to disk and then access it a needed).

    hmb

  4. #4
    Tolls is online now Moderator
    Join Date
    Apr 2009
    Posts
    11,447
    Rep Power
    18

    Default Re: Java and audio output

    If you've got wav files that's even easier.
    Applets have AudioClips I think, or there is simply the Java Sound API.
    Here's the guide to that one.
    Please do not ask for code as refusal often offends.

Similar Threads

  1. pause audio in java
    By Saran185 in forum Advanced Java
    Replies: 1
    Last Post: 03-09-2011, 02:04 PM
  2. Fast audio output
    By torsion in forum Threads and Synchronization
    Replies: 0
    Last Post: 12-11-2010, 04:31 PM
  3. Audio processing in Java?
    By blind melon in forum New To Java
    Replies: 11
    Last Post: 12-02-2010, 11:22 PM
  4. Problems with Java Audio Recording
    By pars1987@gmail.com in forum Advanced Java
    Replies: 2
    Last Post: 03-27-2009, 10:18 AM
  5. Java, output string, getting correct output? HELP!
    By computerboyo in forum New To Java
    Replies: 2
    Last Post: 02-25-2009, 11:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •