public static class Mini2DxOgg.Music extends Mini2DxOpenALMusic
bufferOverhead, file| Constructor and Description |
|---|
Music(Mini2DxOpenALAudio 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(Mini2DxOpenALAudio audio, com.badlogic.gdx.files.FileHandle file)
public int read(byte[] buffer)
Mini2DxOpenALMusicread in class Mini2DxOpenALMusicpublic void reset()
Mini2DxOpenALMusicreset in class Mini2DxOpenALMusicprotected void loop()
Mini2DxOpenALMusicloop in class Mini2DxOpenALMusic