Playing sound: what to use?

Discussion in 'Java' started by rapunzeljoy@gmail.com, Jan 13, 2005.

  1. Guest

    I am writing some code that includes the capability to play sound.
    After reading many tutorials I have some interesting stuff going.
    However, we tried changing a file recorded in a slightly different
    format for the file played in the demo I copied from and it gave a
    javax.sound.sampled.UnsupportedAudioFileException that said that it
    only supported 44100 kHz, 16 bit, mono, Windows PCM format audio. Why
    is that? I thought javax.sound.sampled was supposed to support several
    variations. At least, that's what it seems to say in the javadocs.
    There is a getFormat method that tells you about the format, so I would
    assume that you could set it to play various formats. How do you do get
    it to play, say 44100, 8 bit mono? I mean, sure I can convert the
    audio beforehand, but that is time and storage consuming if I need to
    convert lots of audio.

    Also, what could I use to play a VOX file? Thanks to whoever is a sound
    guru.

    Rebecca
     
    , Jan 13, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ron Clarke

    Sound lost when playing AVI files

    Ron Clarke, Feb 24, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    360
    Ron Clarke
    Feb 24, 2004
  2. Ike

    playing a sound

    Ike, Feb 26, 2004, in forum: Java
    Replies:
    6
    Views:
    454
    Erwin Moller
    Feb 26, 2004
  3. marko

    re-playing sound in J2ME

    marko, Dec 14, 2004, in forum: Java
    Replies:
    3
    Views:
    11,640
    Darryl L. Pierce
    Dec 15, 2004
  4. Christian Kremser

    Problem with playing sound files

    Christian Kremser, Mar 8, 2005, in forum: Java
    Replies:
    1
    Views:
    360
    Knute Johnson
    Mar 9, 2005
  5. Replies:
    0
    Views:
    562
Loading...

Share This Page