Results 1 to 4 of 4
  1. #1
    ashton is offline Member
    Join Date
    Jan 2009
    Posts
    31
    Rep Power
    0

    Default playing audio in J-App??

    Hi guys!

    Can someone please direct me to more tutorials on how to add an audio file inside a java program?? I've searched the net but not much of help... I'm just into trying some stuff with java...

    Or if someone can give me a sample code, it would be of great help...

    thnx in advance!

  2. #2
    Doctor Cactus is offline Member
    Join Date
    Oct 2008
    Posts
    63
    Rep Power
    0

    Default

    Hi, Ashton. If you just want to play a WAV sound in your java application, then take a look at this link:

    Java play WAV sound file - AnyExample.com

  3. #3
    ashton is offline Member
    Join Date
    Jan 2009
    Posts
    31
    Rep Power
    0

    Default thanks

    Does java only accepts *.wav files? I just thought *.mp3's are a lot easier to deal with..:)

  4. #4
    unborn dreams is offline Member
    Join Date
    Jan 2009
    Posts
    15
    Rep Power
    0

    Default

    Quote Originally Posted by ashton View Post
    Does java only accepts *.wav files? I just thought *.mp3's are a lot easier to deal with..:)
    To use file formats other than *.wav and *.au, you should use the JMF frame work. It can also be used to play mpg videos too.

    However, beware of this: While Java is platform independent, remember mp3 is not platform independent.

Similar Threads

  1. Re-playing sound
    By JSK in forum CLDC and MIDP
    Replies: 0
    Last Post: 02-06-2008, 11:34 AM
  2. Playing sound in applet??????
    By Bagesh in forum Java Applets
    Replies: 2
    Last Post: 07-13-2007, 04:46 PM
  3. Playing Mp3 in a Mobile phone
    By luisarca in forum CLDC and MIDP
    Replies: 1
    Last Post: 06-23-2007, 05:20 PM
  4. Playing Mp3 in a Mobile phone
    By luisarca in forum Sun Java Wireless Toolkit
    Replies: 0
    Last Post: 06-21-2007, 10:17 AM

Posting Permissions

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