Music.OnCompletionListener| Constructor and Description |
|---|
OpenALMusic(OpenALLwjgl3Audio audio,
FileHandle file) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
int |
getChannels() |
float |
getPosition() |
int |
getRate() |
int |
getSourceId() |
float |
getVolume() |
boolean |
isLooping() |
boolean |
isPlaying() |
void |
pause() |
void |
play() |
abstract int |
read(byte[] buffer)
Fills as much of the buffer as possible and returns the number of bytes filled.
|
abstract void |
reset()
Resets the stream to the beginning.
|
void |
setLooping(boolean isLooping) |
void |
setOnCompletionListener(Music.OnCompletionListener listener) |
void |
setPan(float pan,
float volume) |
void |
setPosition(float position) |
void |
setVolume(float volume) |
void |
stop() |
void |
update() |
public OpenALMusic(OpenALLwjgl3Audio audio, FileHandle file)
public void setLooping(boolean isLooping)
setLooping in interface Musicpublic void setPosition(float position)
setPosition in interface Musicpublic float getPosition()
getPosition in interface Musicpublic abstract int read(byte[] buffer)
public abstract void reset()
public int getChannels()
public int getRate()
public void update()
public void dispose()
dispose in interface Musicdispose in interface Disposablepublic void setOnCompletionListener(Music.OnCompletionListener listener)
setOnCompletionListener in interface Musicpublic int getSourceId()
Copyright © 2021. All rights reserved.