com.badlogic.gdx.backends.openal
Class Wav.Music
java.lang.Object
com.badlogic.gdx.backends.openal.OpenALMusic
com.badlogic.gdx.backends.openal.Wav.Music
- All Implemented Interfaces:
- Music, Disposable
- Enclosing class:
- Wav
public static class Wav.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 |
Wav.Music
public Wav.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.