com.badlogic.gdx.backends.openal
Class Mp3.Music

java.lang.Object
  extended by com.badlogic.gdx.backends.openal.OpenALMusic
      extended by com.badlogic.gdx.backends.openal.Mp3.Music
All Implemented Interfaces:
Music, Disposable
Enclosing class:
Mp3

public static class Mp3.Music
extends OpenALMusic


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.badlogic.gdx.audio.Music
Music.OnCompletionListener
 
Constructor Summary
Mp3.Music(OpenALAudio audio, FileHandle file)
           
 
Method Summary
 int read(byte[] buffer)
          Fills as much of the buffer as possible and returns the number of bytes filled.
 void reset()
          Resets the stream to the beginning.
 
Methods inherited from class com.badlogic.gdx.backends.openal.OpenALMusic
dispose, getChannels, getPosition, getRate, getSourceId, getVolume, isLooping, isPlaying, pause, play, setLooping, setOnCompletionListener, setPan, setVolume, stop, update
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mp3.Music

public Mp3.Music(OpenALAudio audio,
                 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


Copyright © 2013. All Rights Reserved.