de.lessvoid.nifty.nulldevice
Class NullSoundDevice

java.lang.Object
  extended by de.lessvoid.nifty.nulldevice.NullSoundDevice
All Implemented Interfaces:
SoundDevice

public class NullSoundDevice
extends Object
implements SoundDevice


Constructor Summary
NullSoundDevice()
           
 
Method Summary
 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 update(int delta)
          Called from the SoundSystem in regular intervals with the given delta time in ms.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullSoundDevice

public NullSoundDevice()
Method Detail

loadMusic

public SoundHandle loadMusic(SoundSystem soundSystem,
                             String filename)
Description copied from interface: SoundDevice
Load the Music with the given name.

Specified by:
loadMusic in interface SoundDevice
Parameters:
soundSystem - the SoundSystem
filename - filename to load
Returns:
initialized SoundHandle or null in case of any errors

loadSound

public SoundHandle loadSound(SoundSystem soundSystem,
                             String filename)
Description copied from interface: SoundDevice
Load the Sound with the given name.

Specified by:
loadSound in interface SoundDevice
Parameters:
soundSystem - the SoundSystem
filename - filename to load
Returns:
initialized SoundHandle or null in case of any errors

update

public void update(int delta)
Description copied from interface: SoundDevice
Called from the SoundSystem in regular intervals with the given delta time in ms.

Specified by:
update in interface SoundDevice
Parameters:
delta - delta from last call in ms


Copyright © 2011. All Rights Reserved.