Package com.jme3.niftygui
Class SoundHandleJme
java.lang.Object
com.jme3.niftygui.SoundHandleJme
- All Implemented Interfaces:
- de.lessvoid.nifty.spi.sound.SoundHandle
- 
Constructor SummaryConstructorsConstructorDescriptionSoundHandleJme(AudioRenderer ar, AssetManager am, String fileName) For streaming music only.SoundHandleJme(AudioRenderer ar, AudioNode node) 
- 
Method Summary
- 
Constructor Details- 
SoundHandleJme
- 
SoundHandleJmeFor 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- 
playpublic void play()- Specified by:
- playin interface- de.lessvoid.nifty.spi.sound.SoundHandle
 
- 
stoppublic void stop()- Specified by:
- stopin interface- de.lessvoid.nifty.spi.sound.SoundHandle
 
- 
setVolumepublic void setVolume(float f) - Specified by:
- setVolumein interface- de.lessvoid.nifty.spi.sound.SoundHandle
 
- 
getVolumepublic float getVolume()- Specified by:
- getVolumein interface- de.lessvoid.nifty.spi.sound.SoundHandle
 
- 
isPlayingpublic boolean isPlaying()- Specified by:
- isPlayingin interface- de.lessvoid.nifty.spi.sound.SoundHandle
 
- 
disposepublic void dispose()- Specified by:
- disposein interface- de.lessvoid.nifty.spi.sound.SoundHandle
 
 
-