public final class Sounds extends ResourcesContainer<Sound>
Modifier and Type | Method and Description |
---|---|
Sound |
load(SoundResource resource)
Loads a sound from the specified XML resource.
|
protected Sound |
load(java.net.URL resourceName)
Loads the sound from the specified path and returns it.
|
add, add, addClearedListener, addContainerListener, clear, contains, contains, contains, count, get, get, get, get, get, get, get, getAlias, getAll, getAsync, getAsync, getResources, remove, remove, removeClearedListener, removeContainerListener, tryGet, tryGet
public Sound load(SoundResource resource)
resource
- The XML resource that contains the sound as Base64 string.Sound
instance loaded from the specified resource.Codec.decode(String)
protected Sound load(java.net.URL resourceName) throws java.lang.Exception
load
in class ResourcesContainer<Sound>
resourceName
- The path of the file to be loaded.(Can be relative or absolute)java.lang.Exception