org.gnu.gnome
Class Sound
public class Sound
extends Boxed
Class that can be used to play a sound.
gnome_sound_connection_get
protected static final int gnome_sound_connection_get()
gnome_sound_init
protected static final void gnome_sound_init(String hostname)
gnome_sound_play
protected static final void gnome_sound_play(String filename)
gnome_sound_sample_load
protected static final int gnome_sound_sample_load(String sample_name,
String filename)
gnome_sound_shutdown
protected static final void gnome_sound_shutdown()
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.