Class SoundContainer
java.lang.Object
de.pirckheimer_gymnasium.engine_pi.resources.ResourcesContainer<Sound>
de.pirckheimer_gymnasium.engine_pi.resources.SoundContainer
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class de.pirckheimer_gymnasium.engine_pi.resources.ResourcesContainer
add, add, addClearedListener, addContainerListener, addManipulator, clear, contains, contains, contains, count, get, get, get, get, get, get, get, getAlias, getAll, getAsync, getAsync, getResources, loadResource, remove, remove, removeClearedListener, removeContainerListener, removeManipulator, tryGet, tryGet
-
Constructor Details
-
SoundContainer
public SoundContainer()
-
-
Method Details
-
load
Loads a sound from the specified XML resource.- Parameters:
resource- The XML resource that contains the sound as Base64 string.- Returns:
- The
Soundinstance loaded from the specified resource. - See Also:
-
load
Loads the sound from the specified path and returns it.- Specified by:
loadin classResourcesContainer<Sound>- Parameters:
name- The path of the file to be loaded.(Can be relative or absolute)- Returns:
- The loaded Sound from the specified path.
- Throws:
Exception
-