public class NullSoundDevice extends Object implements SoundDevice
Constructor and Description |
---|
NullSoundDevice() |
Modifier and Type | Method and Description |
---|---|
SoundHandle |
loadMusic(SoundSystem soundSystem,
String filename)
Load the Music with the given name.
|
SoundHandle |
loadSound(SoundSystem soundSystem,
String filename)
Load the Sound with the given name.
|
void |
setResourceLoader(NiftyResourceLoader niftyResourceLoader)
Gives this RenderDevice access to the NiftyResourceLoader.
|
void |
update(int delta)
Called from the SoundSystem in regular intervals with the given
delta time in ms.
|
public void setResourceLoader(NiftyResourceLoader niftyResourceLoader)
SoundDevice
setResourceLoader
in interface SoundDevice
niftyResourceLoader
- NiftyResourceLoaderpublic SoundHandle loadMusic(SoundSystem soundSystem, String filename)
SoundDevice
loadMusic
in interface SoundDevice
soundSystem
- the SoundSystemfilename
- filename to loadpublic SoundHandle loadSound(SoundSystem soundSystem, String filename)
SoundDevice
loadSound
in interface SoundDevice
soundSystem
- the SoundSystemfilename
- filename to loadpublic void update(int delta)
SoundDevice
update
in interface SoundDevice
delta
- delta from last call in msCopyright © 2013. All Rights Reserved.