Mallet Engine
2
Entity-Component based game engine, written in Java.
|
Public Member Functions | |
Sound (SoundInterface _sound) | |
final void | play () |
final void | playLoop () |
final void | pause () |
final void | stop () |
void | destroy () |
String | type () |
Public Attributes | |
SoundInterface | sound = null |
Sound has the ability to play the Resource it contains. This should be considered deprecated and not used.
If a Resource is hooked to an underlying system, for example the buffer in an ALSASound, then use destroy to unhook it.
Or if the resource stores other resources, call their respective, unregister().
Reimplemented from com.linxonline.mallet.resources.Resource.
final void com.linxonline.mallet.resources.sound.Sound.pause | ( | ) |
final void com.linxonline.mallet.resources.sound.Sound.play | ( | ) |
final void com.linxonline.mallet.resources.sound.Sound.playLoop | ( | ) |
final void com.linxonline.mallet.resources.sound.Sound.stop | ( | ) |
String com.linxonline.mallet.resources.sound.Sound.type | ( | ) |
Returns a String that denotes the type of resource ie: SOUND, TEXTURE, MODEL.
Reimplemented from com.linxonline.mallet.resources.Resource.