Playing audio clips

import java.applet.*;
import java.lang.*;
import java.net.URL;
public class AudioDemo extends Applet {

AudioClip aud_clip;
public void init()
{
aud_clip=getAudioClip(getDocumentBase(),"chicken.au");
}

public void start()
{
aud_clip.play();
}
}

//Download .Au File from HERE....!!!
//Save .au file in Folder Where You Save Programs...Chicken.au

No comments:

Post a Comment