public class SoundDeviceJme
extends java.lang.Object
implements de.lessvoid.nifty.spi.sound.SoundDevice
Modifier and Type | Field and Description |
---|---|
protected AudioRenderer |
ar |
protected AssetManager |
assetManager |
Constructor and Description |
---|
SoundDeviceJme(AssetManager assetManager,
AudioRenderer ar) |
Modifier and Type | Method and Description |
---|---|
de.lessvoid.nifty.spi.sound.SoundHandle |
loadMusic(de.lessvoid.nifty.sound.SoundSystem soundSystem,
java.lang.String filename) |
de.lessvoid.nifty.spi.sound.SoundHandle |
loadSound(de.lessvoid.nifty.sound.SoundSystem soundSystem,
java.lang.String filename) |
void |
setResourceLoader(de.lessvoid.nifty.tools.resourceloader.NiftyResourceLoader niftyResourceLoader) |
void |
update(int delta) |
protected AssetManager assetManager
protected AudioRenderer ar
public SoundDeviceJme(AssetManager assetManager, AudioRenderer ar)
public void setResourceLoader(de.lessvoid.nifty.tools.resourceloader.NiftyResourceLoader niftyResourceLoader)
setResourceLoader
in interface de.lessvoid.nifty.spi.sound.SoundDevice
public de.lessvoid.nifty.spi.sound.SoundHandle loadSound(de.lessvoid.nifty.sound.SoundSystem soundSystem, java.lang.String filename)
loadSound
in interface de.lessvoid.nifty.spi.sound.SoundDevice
public de.lessvoid.nifty.spi.sound.SoundHandle loadMusic(de.lessvoid.nifty.sound.SoundSystem soundSystem, java.lang.String filename)
loadMusic
in interface de.lessvoid.nifty.spi.sound.SoundDevice
public void update(int delta)
update
in interface de.lessvoid.nifty.spi.sound.SoundDevice