com.jme3.niftygui
Class SoundHandleJme

java.lang.Object
  extended by com.jme3.niftygui.SoundHandleJme
All Implemented Interfaces:
de.lessvoid.nifty.spi.sound.SoundHandle

public class SoundHandleJme
extends java.lang.Object
implements de.lessvoid.nifty.spi.sound.SoundHandle


Constructor Summary
SoundHandleJme(AudioRenderer ar, AssetManager am, java.lang.String fileName)
          For streaming music only.
SoundHandleJme(AudioRenderer ar, AudioNode node)
           
 
Method Summary
 void dispose()
           
 float getVolume()
           
 boolean isPlaying()
           
 void play()
           
 void setVolume(float f)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoundHandleJme

public SoundHandleJme(AudioRenderer ar,
                      AudioNode node)

SoundHandleJme

public SoundHandleJme(AudioRenderer ar,
                      AssetManager am,
                      java.lang.String fileName)
For streaming music only. (May need to loop..)

Parameters:
ar -
am -
fileName -
Method Detail

play

public void play()
Specified by:
play in interface de.lessvoid.nifty.spi.sound.SoundHandle

stop

public void stop()
Specified by:
stop in interface de.lessvoid.nifty.spi.sound.SoundHandle

setVolume

public void setVolume(float f)
Specified by:
setVolume in interface de.lessvoid.nifty.spi.sound.SoundHandle

getVolume

public float getVolume()
Specified by:
getVolume in interface de.lessvoid.nifty.spi.sound.SoundHandle

isPlaying

public boolean isPlaying()
Specified by:
isPlaying in interface de.lessvoid.nifty.spi.sound.SoundHandle

dispose

public void dispose()
Specified by:
dispose in interface de.lessvoid.nifty.spi.sound.SoundHandle