|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.badlogic.gdx.audio.io.VorbisDecoder
public class VorbisDecoder
A Decoder
implementation that decodes OGG Vorbis files using tremor
Constructor Summary | |
---|---|
VorbisDecoder(java.lang.String filename)
Opens the given file for ogg decoding. |
Method Summary | |
---|---|
void |
dispose()
Disposes the decoder and frees all associated resources |
float |
getLength()
|
int |
getNumChannels()
|
int |
getRate()
|
int |
readSamples(java.nio.ShortBuffer samples)
Reads in samples.capacity() samples in 16-bit signed PCM format from the decoder. |
int |
skipSamples(int numSamples)
Skips numSamples samples. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VorbisDecoder(java.lang.String filename)
filename
- the filenameMethod Detail |
---|
public void dispose()
dispose
in interface Decoder
dispose
in interface Disposable
public float getLength()
getLength
in interface Decoder
public int getNumChannels()
getNumChannels
in interface Decoder
public int getRate()
getRate
in interface Decoder
public int readSamples(java.nio.ShortBuffer samples)
readSamples
in interface Decoder
samples
- The number of read samples.public int skipSamples(int numSamples)
skipSamples
in interface Decoder
numSamples
- the number of samples to skip
|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |