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 repeatiply say every 100ms the application stops responding for 1 sec. If I stop the previous sound with sound.stop() then it´s ok but I want the new sound to overlap the old one not to restart it.
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 repeatiply say every 100ms the application stops responding for 1 sec. If I stop the previous sound with sound.stop() then it´s ok but I want the new sound to overlap the old one not to restart it.
Comment