org.gnu.gnome
Class Sound

java.lang.Object
  |
  +--org.gnu.glib.Boxed
        |
        +--org.gnu.gnome.Sound

public class Sound
extends Boxed

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.Boxed
equals, getHandle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, 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.


Please send any bug reports, comments, or suggestions for the API or documentation to java-gnome-developer@lists.sf.net