FileDocCategorySizeDatePackage
SoundList.javaAPI DocExample730Tue May 30 21:25:24 BST 2000None

SoundList

public class SoundList extends Hashtable
Loads and holds a bunch of audio files whose locations are specified relative to a fixed base URL.

Fields Summary
JApplet
applet
URL
baseURL
Constructors Summary
public SoundList(URL baseURL)

        super(5); //Initialize Hashtable with capacity of 5 entries.
        this.baseURL = baseURL;
    
Methods Summary
public java.applet.AudioClipgetClip(java.lang.String relativeURL)

        return (AudioClip)get(relativeURL);
    
public voidputClip(java.applet.AudioClip clip, java.lang.String relativeURL)

        put(relativeURL, clip);
    
public voidstartLoading(java.lang.String relativeURL)

        new SoundLoader(this, baseURL, relativeURL);