// The SoundApplet that plays a different sound on start and stop

import java.applet.Applet;
import java.applet.AudioClip;

public class SoundApplet extends Applet
{
	
	private AudioClip theStartSound, theStopSound;
	
	public void init()
	{
	  this.theStartSound = this.getAudioClip( this.getDocumentBase(), "start.wav" );
	  this.theStopSound = this.getAudioClip( this.getDocumentBase(), "stop.wav" );
	}
	
	public void start()
	{
	  this.theStartSound.play();
	}

	public void stop()
	{
	  this.theStopSound.play();
	}
}
