|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ICodec
The ICodec interface provides a common interface for SoundSystem to use
for accessing external codec libraries.
SoundSystem License:
You are free to use this library for any purpose, commercial or otherwise.
You may modify this library or source code, and distribute it any way you
like, provided the following conditions are met:
1) You may not falsely claim to be the author of this library or any
unmodified portion of it.
2) You may not copyright this library or a modified version of it and then
sue me for copyright infringement.
3) If you modify the source code, you must clearly document the changes
made before redistributing the modified source code, so other users know
it is not the original code.
4) You are not required to give me credit for this library in any derived
work, but if you do, you must also mention my website:
http://www.paulscode.com
5) I the author will not be responsible for any damages (physical,
financial, or otherwise) caused by the use if this library or any part
of it.
6) I the author do not guarantee, warrant, or make any representations,
either expressed or implied, regarding the use of this library or any
part of it.
Author: Paul Lamb
http://www.paulscode.com
| Method Summary | |
|---|---|
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. |
javax.sound.sampled.AudioFormat |
getAudioFormat()
Should return the audio format of the data being returned by the read() and readAll() methods. |
boolean |
initialize(java.net.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. |
| Method Detail |
|---|
void reverseByteOrder(boolean b)
b - True if the calling audio library requires byte-reversal by some codec libraries.boolean initialize(java.net.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()
javax.sound.sampled.AudioFormat getAudioFormat()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||