org.gnu.gnome

Class Sound

public class Sound extends Struct

Class that can be used to play a sound.
Method Summary
voidinitialize(String hostname)
Initialize the esd connection
static intloadSample(String sampleName, String fileName)
Load the sample provided
static voidplay(String filename)
Play the specifyed sound file.
static voidshutdown()
Shutdown the sound system.

Method Detail

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.

Parameters: filename The file to play

shutdown

public static void shutdown()
Shutdown the sound system.