GP
Class Sound

java.lang.Object
  |
  +--GP.Sound

public class Sound
extends java.lang.Object


Constructor Summary
Sound(java.lang.String soundFileName)
          Initialize a sound with a url.
 
Method Summary
 java.lang.String GetAudioFileName()
           
 void Play()
           
 void SetAudioClip(java.applet.AudioClip clip)
           
 void Stop()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sound

public Sound(java.lang.String soundFileName)
Initialize a sound with a url. soundFileName must be a url of one of the following types:

file:/u/cs015xxx/src/Cloud/sound.au absolute path

sound.au relative to the applet

http://www.cs.brown.edu/people/bmm/sounds/circle.aua url

Parameters:
soundFileName - the url for the sound file
Method Detail

GetAudioFileName

public java.lang.String GetAudioFileName()

SetAudioClip

public void SetAudioClip(java.applet.AudioClip clip)

Play

public void Play()

Stop

public void Stop()