Class Wav.Music
- java.lang.Object
-
- com.badlogic.gdx.backends.lwjgl3.audio.OpenALMusic
-
- com.badlogic.gdx.backends.lwjgl3.audio.Wav.Music
-
- All Implemented Interfaces:
com.badlogic.gdx.audio.Music,com.badlogic.gdx.utils.Disposable
- Enclosing class:
- Wav
public static class Wav.Music extends OpenALMusic
-
-
Field Summary
-
Fields inherited from class com.badlogic.gdx.backends.lwjgl3.audio.OpenALMusic
file
-
-
Constructor Summary
Constructors Constructor Description Music(OpenALLwjgl3Audio audio, com.badlogic.gdx.files.FileHandle file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intread(byte[] buffer)Fills as much of the buffer as possible and returns the number of bytes filled.voidreset()Resets the stream to the beginning.-
Methods inherited from class com.badlogic.gdx.backends.lwjgl3.audio.OpenALMusic
dispose, getChannels, getPosition, getRate, getSourceId, getVolume, isLooping, isPlaying, loop, pause, play, setLooping, setOnCompletionListener, setPan, setPosition, setup, setVolume, stop, update
-
-
-
-
Constructor Detail
-
Music
public Music(OpenALLwjgl3Audio audio, com.badlogic.gdx.files.FileHandle file)
-
-
Method Detail
-
read
public int read(byte[] buffer)
Description copied from class:OpenALMusicFills 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:
readin classOpenALMusic
-
reset
public void reset()
Description copied from class:OpenALMusicResets the stream to the beginning.- Specified by:
resetin classOpenALMusic
-
-