|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Decoder
Interface for audio decoders that return successive amplitude frames. When a decoder is no longer used it has to be disposed.
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. |
Method Detail |
---|
int readSamples(java.nio.ShortBuffer samples)
samples
- The number of read samples.int skipSamples(int numSamples)
numSamples
- the number of samples to skip
int getNumChannels()
int getRate()
float getLength()
void dispose()
dispose
in interface Disposable
|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |