org.gnu.gnome
Class Sound

java.lang.Object
  extended byorg.gnu.glib.Struct
      extended byorg.gnu.gnome.Sound

public class Sound
extends org.gnu.glib.Struct

Class that can be used to play a sound.


Constructor Summary
Sound()
           
 
Method Summary
 void initialize(java.lang.String hostname)
          Initialize the esd connection
static int loadSample(java.lang.String sampleName, java.lang.String fileName)
          Load the sample provided
static void play(java.lang.String filename)
          Play the specifyed sound file.
static void shutdown()
          Shutdown the sound system.
 
Methods inherited from class org.gnu.glib.Struct
equals, getHandle, getNullHandle, hashCode
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sound

public Sound()
Method Detail

initialize

public void initialize(java.lang.String hostname)
Initialize the esd connection


play

public static void play(java.lang.String filename)
Play the specifyed sound file.

Parameters:
filename - The file to play

loadSample

public static int loadSample(java.lang.String sampleName,
                             java.lang.String fileName)
Load the sample provided


shutdown

public static void shutdown()
Shutdown the sound system.