import java.applet.AudioClip;
import java.awt.*;public class Time extends javax.swing.JApplet implements Runnable
{
AudioClip aud;
AudioClip bud;
Thread thr;

public void init()
{
aud=getAudioClip(getCodeBase(),"Global.wav");
bud=getAudioClip(getCodeBase(),"Folder.wav");

}

public void start()
{
if(thr==null)
{
thr = new Thread(this);
thr.start();
}
}

public void stop()
{
if(thr!=null)
{
if(aud!=null)
aud.stop();

thr=null;
}
}

public void run()
{
if(aud!=null)
{
aud.loop();
}
Thread thisThread=Thread.currentThread();
while(thr==thisThread)
{
try{
Thread.sleep(5000);
if(bud!=null)
{
  bud.play();
}

}
catch(InterruptedException e)
{
System.out.println("出错了...");
}
}
}

public void paint(Graphics screen)
{
Graphics2D aa=(Graphics2D)screen;
aa.drawString("play...", 10, 10);
}
}运行正常,但是就是没有声音?
为什么会这样?