Package com.jme3.niftygui
Class SoundHandleJme
java.lang.Object
com.jme3.niftygui.SoundHandleJme
- All Implemented Interfaces:
de.lessvoid.nifty.spi.sound.SoundHandle
-
Constructor Summary
ConstructorDescriptionSoundHandleJme
(AudioRenderer ar, AssetManager am, String fileName) For streaming music only.SoundHandleJme
(AudioRenderer ar, AudioNode node) -
Method Summary
-
Constructor Details
-
SoundHandleJme
-
SoundHandleJme
For streaming music only. (May need to loop.)- Parameters:
ar
- for rendering audio (not null)am
- the AssetManager for loading assets (not null)fileName
- the path to the audio asset (not null)
-
-
Method Details
-
play
public void play()- Specified by:
play
in interfacede.lessvoid.nifty.spi.sound.SoundHandle
-
stop
public void stop()- Specified by:
stop
in interfacede.lessvoid.nifty.spi.sound.SoundHandle
-
setVolume
public void setVolume(float f) - Specified by:
setVolume
in interfacede.lessvoid.nifty.spi.sound.SoundHandle
-
getVolume
public float getVolume()- Specified by:
getVolume
in interfacede.lessvoid.nifty.spi.sound.SoundHandle
-
isPlaying
public boolean isPlaying()- Specified by:
isPlaying
in interfacede.lessvoid.nifty.spi.sound.SoundHandle
-
dispose
public void dispose()- Specified by:
dispose
in interfacede.lessvoid.nifty.spi.sound.SoundHandle
-