com.badlogic.gdx.backends.openal
Class Ogg.Music
java.lang.Object
com.badlogic.gdx.backends.openal.OpenALMusic
com.badlogic.gdx.backends.openal.Ogg.Music
- All Implemented Interfaces:
- Music, Disposable
- Enclosing class:
- Ogg
public static class Ogg.Music
- extends OpenALMusic
|
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 |
Ogg.Music
public Ogg.Music(OpenALAudio audio,
FileHandle file)
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.