This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
    Bookmark Topic Watch Topic
  • New Topic

play audio in loop

 
nayan rami
Ranch Hand
Posts: 30
  • 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: 20531
54
Chrome Eclipse IDE Java Windows
  • 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
Posts: 42967
73
  • 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.
 
    Bookmark Topic Watch Topic
  • New Topic