This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
    Bookmark Topic Watch Topic
  • New Topic

play audio in loop

 
nayan rami
Ranch Hand
Posts: 30
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
hello friends


can any one provide me code for play audio in loop in java application not in applet

i need this code urgently

thanks
 
Rob Spoor
Sheriff
Pie
Posts: 20380
45
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
1) We are NotACodeMill
2) EaseUp

You can still use AudioClip even if you're not using applets. Instead of using Applet.getAudioClip you can use the static Applet.newAudioClip(URL) method. This takes a URL, but you can convert a File into a URL quite easily:
But because the method takes a URL you can also use the getResource method of Class / ClassLoader.
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post the same question multiple times. Let's continue the discussion in this duplicate thread. If you have questions about the answers provided there, post follow-up questions in that topic.
 
I agree. Here's the link: http://aspose.com/file-tools
    Bookmark Topic Watch Topic
  • New Topic