|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jme.sound.openAL.SoundSystem
| Field Summary | |
static int |
OUTPUT_ALSA
|
static int |
OUTPUT_ASIO
|
static int |
OUTPUT_DEFAULT
|
static int |
OUTPUT_DSOUND
|
static int |
OUTPUT_ESD
|
static int |
OUTPUT_MAC
|
static int |
OUTPUT_OSS
|
static int |
OUTPUT_WINMM
|
| Constructor Summary | |
SoundSystem()
|
|
| Method Summary | |
static void |
addSampleToNode(int sample,
int destNode)
Adds a sample to the given node identifier |
static void |
bindEventToSample(int sample,
int event)
Binds an event to the given sample. |
static int |
create3DSample(java.lang.String file)
Creates a 3D sample and returns an identifier for it |
static int |
createSoundNode()
Creates a node ans return an integer as it's identifier. |
static int |
createStream(java.lang.String file,
boolean loadIntoMemory)
Creates a Music stream and returns an identifier for it |
static void |
draw()
Draws all nodes in the scene |
static void |
draw(int nodeName)
Draws the given node in the scene |
static float |
getStreamLength(int streamName)
Get the length of the given stream in milliseconds |
static void |
init(Camera cam,
int outputMethod)
init the sound system by setting it's listener's position to the cameras position |
static boolean |
isStreamOpened(int streamName)
Checks if a stream is opened. |
static void |
onEvent(int eventName)
Fires an event on all nodes |
static void |
onEvent(int nodeName,
int eventName)
|
static boolean |
pauseStream(int streamName)
|
static boolean |
playStream(int streamName)
|
static void |
setRolloffFactor(float rolloff)
|
static void |
setSampleConfig(int sample,
Configuration conf)
Set the FX configuration of the given sample |
static void |
setSampleMaxAudibleDistance(int sample,
int dist)
Sets the units from which the sample will stop playing |
static void |
setSampleMinAudibleDistance(int sample,
int dist)
|
static void |
setSamplePosition(int sample,
float x,
float y,
float z)
Sets the spatial position of a given sample |
static void |
setSampleVelocity(int sample,
float x,
float y,
float z)
Sets the velocity of a given sample |
static void |
setSampleVolume(int sample,
float volume)
Set the volume of the given sample |
static void |
setStreamConfig(int streamName,
Configuration conf)
Set the FX configuration of the given stream |
static void |
setStreamLooping(int streamName,
boolean loop)
Make a stream loop |
static void |
stopStream(int streamName)
|
static void |
update(float time)
Updates the geometric states of all nodes in the scene |
static void |
update(int nodeName,
float time)
Updates the geometric states of the given node in the scene |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int OUTPUT_DEFAULT
public static final int OUTPUT_DSOUND
public static final int OUTPUT_WINMM
public static final int OUTPUT_ASIO
public static final int OUTPUT_OSS
public static final int OUTPUT_ESD
public static final int OUTPUT_ALSA
public static final int OUTPUT_MAC
| Constructor Detail |
public SoundSystem()
| Method Detail |
public static void init(Camera cam,
int outputMethod)
cam - outputMethod - public static void update(float time)
time - currently not used
public static void update(int nodeName,
float time)
nodeName - the node to updatetime - currently not usedpublic static void draw()
public static void draw(int nodeName)
nodeName - the node to updatepublic static int createSoundNode()
public static int create3DSample(java.lang.String file)
file - the sample file name
public static int createStream(java.lang.String file,
boolean loadIntoMemory)
file - streaming file nameloadIntoMemory -
public static boolean isStreamOpened(int streamName)
streamName -
public static void setStreamLooping(int streamName,
boolean loop)
streamName - public static float getStreamLength(int streamName)
streamName -
public static boolean playStream(int streamName)
public static boolean pauseStream(int streamName)
public static void stopStream(int streamName)
public static void setSamplePosition(int sample,
float x,
float y,
float z)
sample - the sample identifierx - the x position of the sampley - the y position of the samplez - the z position of the sample
public static void setSampleVelocity(int sample,
float x,
float y,
float z)
sample - the sample identifierx - the x velocity of the sampley - the y velocity of the samplez - the z velocity of the sample
public static void setSampleConfig(int sample,
Configuration conf)
sample - sample the sample identifierconf - the config
public static void bindEventToSample(int sample,
int event)
sample - the sample to which the event will be boundevent - the unique event numberpublic static void onEvent(int eventName)
eventName - the event to fire
public static void onEvent(int nodeName,
int eventName)
nodeName - eventName -
public static void setStreamConfig(int streamName,
Configuration conf)
conf - the config
public static void setSampleMaxAudibleDistance(int sample,
int dist)
sample - the sample identifierdist - the distance unit from which the sample will stop playing
public static void setSampleMinAudibleDistance(int sample,
int dist)
public static void addSampleToNode(int sample,
int destNode)
destNode - sample - public static void setRolloffFactor(float rolloff)
public static void setSampleVolume(int sample,
float volume)
sample - volume -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||