Jump to content

Java applet sound demo<template>

- - - - -

  • Please log in to reply
No replies to this topic

#1
Turk4n

Turk4n

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 3,847 posts
As I don't want to fuss about it.
import java.awt.*;

import java.applet.*;

public class SoundDemo extends Applet {

AudioClip a;

String filename;


public void init() {

filename = getParamete("Filename");

a=getAudioClip(getCodeBase(),filename);

a.loop();

add(new Label("Playing "+filename));

}

public void start() {

a.loop();

}

public void stop() {

a.stop();

}

}

Posted Image




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users