User Profile
Collapse
-
Using the sun.audio package seems to work much better, thanks for the link. -
-
It´s a desktop application. Im making a space-shooter game, when you click the fire button the space ship shoots laser and a laser sound is played. You can shoot very fast so when you fire the second laser the other laser-sound is already playing and the new laser sound overlaps the old one. The problem is when I fire rapidly the application stops responding for a second as if it can´t handle so many sounds at a time.Leave a comment:
-
This is the second forum I have asked the same question without any reply. Can nobody help?Leave a comment:
-
Playing sounds in java application
Hello I want to know why my applications stops responding for approx. 1 sec when I play sounds rapidly.
This is the method I use
private void playSound(int index)
{
//sound.stop();
sound = JApplet.newAudi oClip(url[index]);
sound.play();
}
The index points to a specific URL array which keeps the location of the wav. file.
If I play sounds...
No activity results to display
Show More
Leave a comment: