org.gnu.gnome

Class Sound

public class Sound extends Struct

Deprecated: This class is part of the java-gnome 2.x family of libraries, which, due to their inefficiency and complexity, are no longer being maintained and have been abandoned by the java-gnome project. This class may have an equivalent in java-gnome 4.0; have a look for org.gnome.gnome.Sound.

Class that can be used to play a sound.
Method Summary
voidinitialize(String hostname)
Initialize the esd connection
static intloadSample(String sampleName, String fileName)
Load the sample provided
static voidplay(String filename)
Play the specifyed sound file.
static voidshutdown()
Shutdown the sound system.

Method Detail

initialize

public void initialize(String hostname)

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Initialize the esd connection

loadSample

public static int loadSample(String sampleName, String fileName)

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Load the sample provided

play

public static void play(String filename)

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Play the specifyed sound file.

Parameters: filename The file to play

shutdown

public static void shutdown()

Deprecated: Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Shutdown the sound system.