java.lang.Object
de.gurkenlabs.litiengine.resources.ResourcesContainer<Sound>
de.gurkenlabs.litiengine.resources.Sounds

public final class Sounds
extends ResourcesContainer<Sound>
  • Method Details

    • load

      public Sound load​(SoundResource resource)
      Loads a sound from the specified XML resource.
      Parameters:
      resource - The XML resource that contains the sound as Base64 string.
      Returns:
      The Sound instance loaded from the specified resource.
      See Also:
      Codec.decode(String)
    • load

      protected Sound load​(java.net.URL resourceName) throws java.lang.Exception
      Loads the sound from the specified path and returns it.
      Specified by:
      load in class ResourcesContainer<Sound>
      Parameters:
      resourceName - The path of the file to be loaded.(Can be relative or absolute)
      Returns:
      The loaded Sound from the specified path.
      Throws:
      java.lang.Exception