java.lang.Object
java.io.InputStream
com.anotherbigidea.flash.sound.ADPCMHelper.FramedInputStream
- All Implemented Interfaces:
- java.io.Closeable
- Enclosing class:
- ADPCMHelper
- public static class ADPCMHelper.FramedInputStream
- extends java.io.InputStream
InputStream wrapper that ensures AudioInputStream is read on a frame-by-frame basis
|
Method Summary |
int |
read()
This method reads an unsigned byte from the input stream and returns it
as an int in the range of 0-255. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
in
protected java.io.InputStream in
frameData
protected byte[] frameData
dataPtr
protected int dataPtr
frameSize
protected int frameSize
done
protected boolean done
ADPCMHelper.FramedInputStream
public ADPCMHelper.FramedInputStream(java.io.InputStream in,
int frameSize)
read
public int read()
throws java.io.IOException
- Description copied from class:
java.io.InputStream
- This method reads an unsigned byte from the input stream and returns it
as an int in the range of 0-255. This method also will return -1 if
the end of the stream has been reached.
This method will block until the byte can be read.