java - Is the Clip class appropriate for 'heavy use'? -


I am working on a program that is of clip s ( clip) Series runs .start () ), average on each other.

The meaning of a clip has started, and after each other it has been closed and another clip has been started, and so on for 10 clips

The result is not 'fluid', some clips do not even start or hear.

My question: Is there a proper clip class for this type of object? Or should the clips stop and start very often?

If the clip is not suitable, can you recommend an alternative category or library for this purpose? Or maybe there are some guidelines for working with the clip which I have described as working with the matter? (Probably about threading or some things)

I do not have much experience with audio in Java, but I have experience with clips The experience is bad. I have found that for some reason it takes half a second to restart a clip which is not acceptable (found that some older bugs were fixed in relation to this issue, but probably At the time I was seeing a new bug in it). A sourcedetine has worked better for me with a buffer to keep a complete source.

However, I suggest that it is a simple abstract that works.

Here's an example from their page:

  // tin sound tin sound init (); // Load a sound and music / Note: You can also load files, URLs, and inputstream with music song = Tynysond.loadmusic ("Song."); Sound coin = small sound.loadsound ("coin.wav"); // Start playing music on the Loop song. Play (true); // play multiple times in a loop for sound (int i = 0; i    

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -