Class OggLoader

java.lang.Object
de.pottgames.tuningfork.OggLoader

public abstract class OggLoader extends Object
  • Constructor Details

    • OggLoader

      public OggLoader()
  • Method Details

    • load

      public static SoundBuffer load(File file)
      Loads an ogg into a SoundBuffer.
      Parameters:
      file - the file
      Returns:
      the SoundBuffer
    • loadReadable

      public static ReadableSoundBuffer loadReadable(File file)
      Loads an ogg into a ReadableSoundBuffer.
      Parameters:
      file - the file
      Returns:
      the SoundBuffer
    • load

      public static SoundBuffer load(com.badlogic.gdx.files.FileHandle fileHandle)
      Loads an ogg into a SoundBuffer.
      Parameters:
      fileHandle - the file handle
      Returns:
      the SoundBuffer
    • loadReadable

      public static ReadableSoundBuffer loadReadable(com.badlogic.gdx.files.FileHandle fileHandle)
      Loads an ogg into a ReadableSoundBuffer.
      Parameters:
      fileHandle - the file handle
      Returns:
      the SoundBuffer
    • loadNonPacked

      public static SoundBuffer loadNonPacked(String path)
      Loads an ogg into a SoundBuffer. Referenced file must not be packed into a jar. Be careful with this as packaging files into the jar is libGDXs default behavior on distribution.
      Parameters:
      path - the path to the file
      Returns:
      the SoundBuffer
    • loadNonPackedReadable

      public static ReadableSoundBuffer loadNonPackedReadable(String path)
      Loads an ogg into a ReadableSoundBuffer. Referenced file must not be packed into a jar. Be careful with this as packaging files into the jar is libGDXs default behavior on distribution.
      Parameters:
      path - the path to the file
      Returns:
      the SoundBuffer
    • load

      public static SoundBuffer load(InputStream stream)
      Loads an ogg into a SoundBuffer and closes the InputStream afterward.
      Parameters:
      stream - the input stream
      Returns:
      the SoundBuffer
    • loadReadable

      public static ReadableSoundBuffer loadReadable(InputStream stream)
      Loads an ogg into a SoundBuffer and closes the InputStream afterward.
      Parameters:
      stream - the input stream
      Returns:
      the SoundBuffer
    • load

      public static SoundBuffer load(OggInputStream input)
      Loads a SoundBuffer from a OggInputStream.
      Parameters:
      input - the OggInputStream
      Returns:
      the SoundBuffer
    • loadReadable

      public static ReadableSoundBuffer loadReadable(OggInputStream input)
      Parameters:
      input - the OggInputStream
      Returns:
      the ReadableSoundBuffer
    • loadReverse

      public static SoundBuffer loadReverse(com.badlogic.gdx.files.FileHandle fileHandle)
      Loads an ogg file in reverse into a SoundBuffer.
      Parameters:
      fileHandle - the file handle
      Returns:
      the SoundBuffer
    • loadReadableReverse

      public static ReadableSoundBuffer loadReadableReverse(com.badlogic.gdx.files.FileHandle fileHandle)
      Loads an ogg file in reverse into a ReadableSoundBuffer.
      Parameters:
      fileHandle - the file handle
      Returns:
      the SoundBuffer