aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes play audio in loop Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply locked New topic
Author

play audio in loop

nayan rami
Ranch Hand

Joined: Dec 28, 2010
Posts: 30
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

Joined: Oct 27, 2005
Posts: 19552
    
  16

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.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39575
    
  27
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.


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: play audio in loop
 
Similar Threads
Is there a way to loop until AudioPlayer has stopped?
Quit audio before application exits.
Getting audio to play in the background of my GUI.
Java Sound API problems
How to play audio in the background