Mallet Engine  2
Entity-Component based game engine, written in Java.
 All Classes Namespaces Files Functions Variables
Classes | Public Member Functions | Protected Member Functions | Static Protected Attributes
com.linxonline.mallet.audio.AudioSystem Class Reference

List of all members.

Classes

class  ActiveSound

Public Member Functions

 AudioSystem ()
 AudioSystem (final SourceGenerator _generator)
 AudioSystem (final AddEventInterface _eventSystem, final SourceGenerator _generator)
void setSourceGenerator (final SourceGenerator _generator)
void update (final float _dt)
final void processEvent (final Event _event)
final void passEvent (final Event _event)
final String[] getWantedEventTypes ()

Protected Member Functions

void updateEvents ()
void updateActiveSounds ()
void useEventInAudio (final Event _event)
void creatAudio (final Settings _audio)
void modifyAudio (final Settings _settings, final ActiveSound _sound)
void storeActiveSound (final ActiveSound _sound)
ActiveSound createActiveSound (final String _file)
void passIDToCallback (final int _id, final Settings _audio)
void removeActiveSounds ()

Static Protected Attributes

static final SoundManager soundManager = new SoundManager()

Constructor & Destructor Documentation

com.linxonline.mallet.audio.AudioSystem.AudioSystem ( final AddEventInterface  _eventSystem,
final SourceGenerator  _generator 
)

Member Function Documentation

ActiveSound com.linxonline.mallet.audio.AudioSystem.createActiveSound ( final String  _file) [protected]
void com.linxonline.mallet.audio.AudioSystem.modifyAudio ( final Settings  _settings,
final ActiveSound  _sound 
) [protected]

Modify the settings of a running AudioSource.

final void com.linxonline.mallet.audio.AudioSystem.passEvent ( final Event  _event)
void com.linxonline.mallet.audio.AudioSystem.passIDToCallback ( final int  _id,
final Settings  _audio 
) [protected]

Pass the ActiveSound ID to the IDInterface provided. Currently called when ActiveSound is created

final void com.linxonline.mallet.audio.AudioSystem.processEvent ( final Event  _event)

Remove ActiveSounds from the removeSounds array.

void com.linxonline.mallet.audio.AudioSystem.storeActiveSound ( final ActiveSound  _sound) [protected]
void com.linxonline.mallet.audio.AudioSystem.useEventInAudio ( final Event  _event) [protected]

Member Data Documentation

final SoundManager com.linxonline.mallet.audio.AudioSystem.soundManager = new SoundManager() [static, protected]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables