i mport java.applet.*;
import j ava.awt.*;
import java.awt.image.*;
public class SimpleAudioImage extends Applet{
private Image img;
private Audioclip ac;
public void init(){
img = getImage(getDocumentBase(), "javalogo52x88.gif");
ac = getAudioClip(getDocumentBase(), "yesterday.au");
}
public void start (){ ac.loop();
}
public void paint(Graphics g){
int w = img.getWidthfthis), h = img.getHeight(this);
g.drawlmage(img, 0, 0, 2 * w, 2 * h, this);
}
public void stop() { ac.stop();
}
}