Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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: 20495
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
Pie
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