All Packages Class Hierarchy This Package Previous Next Index
public class netscape.application.Sound extends java.lang.Object implements netscape.util.Codable { /* Constructors */ public Sound(); /* Methods */ public static Sound soundFromURL(URL); public static synchronized Sound soundNamed(String); public void decode(Decoder); public void describeClassInfo(ClassInfo); public boolean doesLoop(); public void encode(Encoder); public void finishDecoding(); public String name(); public void play(); public void setLoops(boolean); public void stop(); public String toString(); }Object subclass representing a sound. Typically, you retrieve a Sound by name from an 8 bit, µlaw, 8000 Hz, one-channel, Sun ".au" file:
sound = Sound.soundNamed("MySound.au");
public Sound()
public static synchronized Sound soundNamed(String soundName)
"codebase"/sounds/soundNameand attempts to load this file. soundName can specify a file name or path, such as "newSounds/MySound.au".
Note: No error will be reported if the specified Sound file does not exist or is the wrong format.
public static Sound soundFromURL(URL url)
public String name()
public void setLoops(boolean flag)
public boolean doesLoop()
public void play()
public void stop()
public String toString()
public void describeClassInfo(ClassInfo info)
public void encode(Encoder encoder) throws CodingException
public void decode(Decoder decoder) throws CodingException
public void finishDecoding() throws CodingException
All Packages Class Hierarchy This Package Previous Next Index