Class Ogg.Music

  • All Implemented Interfaces:
    com.badlogic.gdx.audio.Music, com.badlogic.gdx.utils.Disposable
    Enclosing class:
    Ogg

    public static class Ogg.Music
    extends OpenALMusic
    • Constructor Detail

      • Music

        public Music​(OpenALLwjgl3Audio audio,
                     com.badlogic.gdx.files.FileHandle file)
    • Method Detail

      • read

        public int read​(byte[] buffer)
        Description copied from class: OpenALMusic
        Fills as much of the buffer as possible and returns the number of bytes filled. Returns <= 0 to indicate the end of the stream.
        Specified by:
        read in class OpenALMusic
      • reset

        public void reset()
        Description copied from class: OpenALMusic
        Resets the stream to the beginning.
        Specified by:
        reset in class OpenALMusic
      • loop

        protected void loop()
        Description copied from class: OpenALMusic
        By default, does just the same as reset(). Used to add special behaviour in Ogg.Music.
        Overrides:
        loop in class OpenALMusic