I am using ordinary java and playing some wav-files when I press a key. At the exact time I press the key and the sound occur there is a small shorts interference sound. The sound is not in The wav-file.

I am using the Clip class start() method to play the fuled and the wav-files is local in the src folder. Anyone know what can be the problem, Maybe some bettetr way to play wav's like Androids java got soundpool.

Here is the code:

Here is the clip I am using and filename.

public String[]sax={"c.wav","d.wav","e.wav","f.wav","g.wava.wav","b.wav};
 
public Clip[]saxClip=new Clip[sax.length];
Here is loading the clips:
    for(int i=0;i<saxClip.length;i++)
    {
        try 
        {
 
            url = this.getClass().getClassLoader().getResource("sounds/"+sax[i+saxStart]);
            audioIn = AudioSystem.getAudioInputStream(url);
            saxClip[i] = AudioSystem.getClip();
            saxClip[i].open(audioIn);
        } 
        catch (UnsupportedAudioFileException e) 
        {
            e.printStackTrace();
        } 
        catch (IOException e) 
        {
            e.printStackTrace();
        } 
        catch (LineUnavailableException e) 
        {
            e.printStackTrace();
        }
    }
And this is how I play them:

saxClip[note].setFramePosition(0);
saxClip[note].start();
Thanks /micke