Class SoundHandleJme

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

public class SoundHandleJme extends Object implements de.lessvoid.nifty.spi.sound.SoundHandle
  • Constructor Details

    • SoundHandleJme

      public SoundHandleJme(AudioRenderer ar, AudioNode node)
    • SoundHandleJme

      public SoundHandleJme(AudioRenderer ar, AssetManager am, String fileName)
      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 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