org.gnu.gnome
Class Sound
public class Sound
extends Struct
Class that can be used to play a sound.
void | initialize(String hostname) - Initialize the esd connection
|
static int | loadSample(String sampleName, String fileName) - Load the sample provided
|
static void | play(String filename) - Play the specifyed sound file.
|
static void | shutdown() - Shutdown the sound system.
|
initialize
public void initialize(String hostname)
Initialize the esd connection
loadSample
public static int loadSample(String sampleName,
String fileName)
Load the sample provided
play
public static void play(String filename)
Play the specifyed sound file.
filename
- The file to play
shutdown
public static void shutdown()
Shutdown the sound system.