import java.applet.*;
import java.applet.AudioClip.*;
public class audio1 extends Applet
{
AudioClip ac1;
AudioClip ac2;
public void init()
{
ac1=getAudioClip(getCodeBase(), "computer.wav");
ac2=getAudioClip(getCodeBase(), "ding.wav");
ac1.play();
ac2.loop();
ac2.play();
ac1.loop();
}
}
Playing Audio Clip using Applet
Book navigation
- Armstrong Number
- Palindrome Checking
- Playing Audio Clip using Applet
- Applet Form
- Exception Handling
- Multiple Inheritance and Packages
- Shopping List
- Simple Multithread program
- JDBC Program Select, Insert, Update, Delete records
- RMI - Example AddServer
- Simple Bank Account Process
- TCP Server and Client in Java
- UDP Server and Client in Java
- FTP Server and Client in Java
- Chat Server and Client in Java
- Echo Server and Client in Java
- Address Resolution Protocol in Java
- Ping server and Client in Java
- Multicast Server and Client in Java
- Transposition Cipher Method
- Poly-alphabetic Cipher Method Encryption - Java
- DES - Using Data Encryption Standard in Java
- AES - Using Advanced Encryption Standard in Java
- Bit Stuffing
Comments