com.b3dgs.lionengine.audio
Interface Sound


public interface Sound

Handle sound fx routine. The sound is expected to be short, as it has to be played quickly.


Method Summary
 void play()
          Play sound immediatly until the end, and free ressources.
 void setVolume(int vol)
          Set sound volume [0-100]
 

Method Detail

play

void play()
Play sound immediatly until the end, and free ressources. Sounds are played in a separated thread.


setVolume

void setVolume(int vol)
Set sound volume [0-100]

Parameters:
vol - volume value.