Class NoSoundGroup

java.lang.Object
games.stendhal.client.sound.nosound.NoSoundGroup
All Implemented Interfaces:
SoundGroup

public class NoSoundGroup extends Object implements SoundGroup
  • Constructor Details

    • NoSoundGroup

      public NoSoundGroup()
  • Method Details

    • changeVolume

      public void changeVolume(float intToFloat)
      Description copied from interface: SoundGroup
      changes the volumne
      Specified by:
      changeVolume in interface SoundGroup
      Parameters:
      intToFloat - volume
    • getVolume

      public float getVolume()
      Description copied from interface: SoundGroup
      gets the current volumne
      Specified by:
      getVolume in interface SoundGroup
      Returns:
      volumne
    • loadSound

      public boolean loadSound(String name, String fileURI, SoundFileType fileType, boolean enableStreaming)
      Description copied from interface: SoundGroup
      Loads a sound
      Specified by:
      loadSound in interface SoundGroup
      Parameters:
      name - name of sound
      fileURI - "audio:/"
      fileType - Type.OGG
      enableStreaming - should streaming be enabled?
      Returns:
      true, if the sound could be loaded; false otherwise.
    • play

      public SoundHandle play(String soundName, int layerLevel, AudibleArea area, Time fadeInDuration, boolean autoRepeat, boolean clone)
      Description copied from interface: SoundGroup
      plays a sound
      Specified by:
      play in interface SoundGroup
      Parameters:
      soundName - name of sound
      layerLevel - on which layer should the sound be played
      area - in which area is the sound hearable?
      fadeInDuration - time the sound will fade in
      autoRepeat - should the sound be played in a loop?
      clone - should the sound be cloned for manipulation?
      Returns:
      a handle to the sound, so that it can be cancled in case of looped sounds
    • play

      public SoundHandle play(String soundName, float volume, int layerLevel, AudibleArea area, Time fadeInDuration, boolean autoRepeat, boolean clone)
      Description copied from interface: SoundGroup
      plays a sound
      Specified by:
      play in interface SoundGroup
      Parameters:
      soundName - name of sound
      volume - volumne
      layerLevel - on which layer should the sound be played
      area - in which area is the sound hearable?
      fadeInDuration - time the sound will fade in
      autoRepeat - should the sound be played in a loop?
      clone - should the sound be cloned for manipulation?
      Returns:
      a handle to the sound, so that it can be cancled in case of looped sounds
    • enableStreaming

      public void enableStreaming()
      Description copied from interface: SoundGroup
      enables streaming for this group.
      Specified by:
      enableStreaming in interface SoundGroup