de.lessvoid.nifty.spi.sound
Interface SoundDevice

All Known Implementing Classes:
NullSoundDevice

public interface SoundDevice

SoundLoader loads sounds and music.

Author:
void

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.
 

Method Detail

loadSound

SoundHandle loadSound(SoundSystem soundSystem,
                      String filename)
Load the Sound with the given name.

Parameters:
soundSystem - the SoundSystem
filename - filename to load
Returns:
initialized SoundHandle or null in case of any errors

loadMusic

SoundHandle loadMusic(SoundSystem soundSystem,
                      String filename)
Load the Music with the given name.

Parameters:
soundSystem - the SoundSystem
filename - filename to load
Returns:
initialized SoundHandle or null in case of any errors

update

void update(int delta)
Called from the SoundSystem in regular intervals with the given delta time in ms.

Parameters:
delta - delta from last call in ms


Copyright © 2011. All Rights Reserved.