org.gnu.gnome

Class Sound


public class Sound
extends Boxed

Class that can be used to play a sound.

Method Summary

protected static int
gnome_sound_connection_get()
protected static void
gnome_sound_init(String hostname)
protected static void
gnome_sound_play(String filename)
protected static int
gnome_sound_sample_load(String sample_name, String filename)
protected static void
gnome_sound_shutdown()
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

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.

Parameters:
filename - The file to play


shutdown

public static void shutdown()
Shutdown the sound system.