FileDocCategorySizeDatePackage
SoundLoader.javaAPI DocExample767Tue May 30 21:25:24 BST 2000None

SoundLoader

public class SoundLoader extends Thread

Fields Summary
SoundList
soundList
URL
completeURL
String
relativeURL
Constructors Summary
public SoundLoader(SoundList soundList, URL baseURL, String relativeURL)

        this.soundList = soundList;
        try {
            completeURL = new URL(baseURL, relativeURL);
        } catch (MalformedURLException e){
            System.err.println(e.getMessage());
        }
        this.relativeURL = relativeURL;
        setPriority(MIN_PRIORITY);
        start();
    
Methods Summary
public voidrun()

        AudioClip audioClip = Applet.newAudioClip(completeURL);
        soundList.putClip(audioClip, relativeURL);