public static class Ogg.Music extends OpenALMusic
file| Constructor and Description |
|---|
Music(OpenALLwjgl3Audio audio,
com.badlogic.gdx.files.FileHandle file) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
loop()
By default, does just the same as reset().
|
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.
|
dispose, getChannels, getPosition, getRate, getSourceId, getVolume, isLooping, isPlaying, pause, play, setLooping, setOnCompletionListener, setPan, setPosition, setup, setVolume, stop, updatepublic Music(OpenALLwjgl3Audio audio, com.badlogic.gdx.files.FileHandle file)
public int read(byte[] buffer)
OpenALMusicread in class OpenALMusicpublic void reset()
OpenALMusicreset in class OpenALMusicprotected void loop()
OpenALMusicloop in class OpenALMusic