Play Audio Clip Using Applet - Online Code

Description

This is a code to show audioclip can be added to your applet. Here in this code specify your own path for the audio clip. Before you execute this code, you must place five '.au' clips in the directory from where you execute the code and these clips should be named 0-5 respectively.

Source Code

import java.applet.*;
import java.awt.*;
import java.util.Random;

public class OnTheFarm extends Applet implements Runnable
{

    AudioClip clip[] = new AudioClip[8];
    Thread thread;
    Random rand = new Random(System.cu
... (login or register to view full code)

To view full code, you must Login or Register, its FREE.

Hey, registering yourself just takes less than a minute and opens up a whole new GetGyan experience.




Comments

No comment yet. Be the first to post a comment.