Class SoundContainer

java.lang.Object
pi.resources.ResourcesContainer<Sound>
pi.resources.sound.SoundContainer
All Implemented Interfaces:
Container<Sound>

public final class SoundContainer extends ResourcesContainer<Sound>
Ein Speicher für Klänge des Datentyps Sound.
Author:
Steffen Wilke, Matthias Wilke
  • Constructor Details

    • SoundContainer

      public SoundContainer()
  • 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:
    • load

      protected Sound load(URL name) throws Exception
      Loads the sound from the specified path and returns it.
      Specified by:
      load in class ResourcesContainer<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