org.gnu.gnome

Class Sound


public class Sound
extends Struct

Class that can be used to play a sound.

Method Summary

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.

Method Details

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.