public interface ICodec
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
Should close any open streams and remove references to all instantiated
objects.
|
boolean |
endOfStream()
Should return false if there is still more data available to be read in.
|
AudioFormat |
getAudioFormat()
Should return the audio format of the data being returned by the read() and
readAll() methods.
|
boolean |
initialize(URL url)
Should make any preperations required before reading from the audio stream.
|
boolean |
initialized()
Should return false if the stream is busy initializing.
|
SoundBuffer |
read()
Should read in one stream buffer worth of audio data.
|
SoundBuffer |
readAll()
Should read in all the audio data from the stream (up to the default
"maximum file size".
|
void |
reverseByteOrder(boolean b)
Should tell derived classes when they may need to reverse the byte order of
the data before returning it in the read() and readAll() methods.
|
void reverseByteOrder(boolean b)
b - True if the calling audio library requires byte-reversal by some codec libraries.boolean initialize(URL url)
boolean initialized()
SoundBuffer read()
SoundSystemConfig for more
information about accessing and changing default settings.SoundBuffer readAll()
SoundSystemConfig for more
information about accessing and changing default settings.boolean endOfStream()
void cleanup()
AudioFormat getAudioFormat()
Copyright © 2017. All rights reserved.