Package pi.resources.sound
Class SoundContainer
Ein Speicher für Klänge des Datentyps
Sound.- Author:
- Steffen Wilke, Matthias Wilke, Josef Friedrich
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class pi.resources.ResourcesContainer
add, add, addClearedListener, addContainerListener, addManipulator, alias, clear, contains, contains, contains, count, get, get, get, get, get, get, getAll, getAsync, getAsync, getMultiple, getMultipleAsList, getResources, loadResource, remove, remove, removeClearedListener, removeContainerListener, removeManipulator, tryGet, tryGet
-
Constructor Details
-
SoundContainer
public SoundContainer()
-
-
Method Details
-
load
Loads the sound from the specified path and returns it.- Specified by:
loadin classResourcesContainer<Sound>- Parameters:
filePath- The path of the file to be loaded. (Can be relative or absolute)- Returns:
- The loaded Sound from the specified path.
- Throws:
Exception
-
get
Ruft denSoundmit dem angegebenen Dateipfad auf.- Specified by:
getin interfaceContainer<Sound>- Overrides:
getin classResourcesContainer<Sound>- Parameters:
filePath- Der Dateipfad, unter dem derSoundverwaltet wird.- Returns:
- Der
Sound. - Throws:
ResourceLoadException- wenn die Audio-Datei nicht aufgerufen werden konnte.
-