com.jme.sound.fmod.objects
Class Sample3D

java.lang.Object
  extended bycom.jme.sound.fmod.scene.Playable
      extended bycom.jme.sound.fmod.scene.SoundSpatial
          extended bycom.jme.sound.fmod.objects.Sample3D

public class Sample3D
extends SoundSpatial

Author:
Arman

Field Summary
static int METHOD_MUTE
           
static int METHOD_PAUSE
           
static int METHOD_STOP
           
 
Fields inherited from class com.jme.sound.fmod.scene.SoundSpatial
allowInterrupt
 
Fields inherited from class com.jme.sound.fmod.scene.Playable
configuration, configured, listener, playingChannel
 
Constructor Summary
Sample3D(Listener listener, java.lang.String file, int renderMethod)
           
Sample3D(java.lang.String file)
           
 
Method Summary
 void bindEvent(int eventNumber)
           
 void draw()
           
 boolean fireEvent(int eventNumber)
          Used internally for firing an event on this sound playing object.
 boolean isPaused()
           
 boolean isPlaying()
           
 void mute()
           
 boolean pause()
           
 boolean play()
           
 void setConfiguration(Configuration conf)
           
 void setMaxAudibleDistance(int max)
           
 void setMinDistance(int min)
           
 void setPosition(float x, float y, float z)
           
 void setRenderMethod(int method)
           
 void setVelocity(float x, float y, float z)
           
 void setVolume(int volume)
           
 boolean stop()
           
 
Methods inherited from class com.jme.sound.fmod.scene.SoundSpatial
allowsInterrupt, getParent, onDraw, propagateBoundToRoot, setAllowInterrupt, setForceCull, setParent, updateGeometricState, updateWorldData
 
Methods inherited from class com.jme.sound.fmod.scene.Playable
getFxChorusID, getFxCompressorID, getFxDistorsionID, getFxEchoID, getFxFlangerID, getFxGargleID, getFxI3DL2ReverbID, getFxMaxID, getFxParamEqID, getFxWavesReverbID, resetConfig, setFxChorusID, setFxCompressorID, setFxDistorsionID, setFxEchoID, setFxFlangerID, setFxGargleID, setFxI3DL2ReverbID, setFxMaxID, setFxParamEqID, setFxWavesReverbID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

METHOD_PAUSE

public static final int METHOD_PAUSE
See Also:
Constant Field Values

METHOD_STOP

public static final int METHOD_STOP
See Also:
Constant Field Values

METHOD_MUTE

public static final int METHOD_MUTE
See Also:
Constant Field Values
Constructor Detail

Sample3D

public Sample3D(java.lang.String file)

Sample3D

public Sample3D(Listener listener,
                java.lang.String file,
                int renderMethod)
Method Detail

setConfiguration

public void setConfiguration(Configuration conf)

setRenderMethod

public void setRenderMethod(int method)

draw

public void draw()
Specified by:
draw in class SoundSpatial

play

public boolean play()

pause

public boolean pause()

isPaused

public boolean isPaused()

stop

public boolean stop()

isPlaying

public boolean isPlaying()

mute

public void mute()

setPosition

public void setPosition(float x,
                        float y,
                        float z)

setVelocity

public void setVelocity(float x,
                        float y,
                        float z)

setMinDistance

public void setMinDistance(int min)

setVolume

public void setVolume(int volume)

setMaxAudibleDistance

public void setMaxAudibleDistance(int max)

bindEvent

public void bindEvent(int eventNumber)

fireEvent

public boolean fireEvent(int eventNumber)
Used internally for firing an event on this sound playing object.

Specified by:
fireEvent in class SoundSpatial
Returns:
true if the event has been fired and false if this sound does not "know" the event