|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.InputStream
com.groovemanager.spi.rex.REXInputStream
This class is used when constructing an AudioInputStream for REX files. It makes use of the REX API´s preview functionality.
| Field Summary | |
|---|---|
private java.nio.ByteBuffer[] |
buffers
The buffers (one for each channel) into which the audio data will be rendered |
private int |
channels
The number of channels in the file |
private int |
currentSlice
The number of frames rendered so far. |
private REXHandle |
handle
The REX handle representing the file to be streamed |
private int |
length
The length of the file in sample frames |
private int |
sliceCount
The number of slices |
private REXSliceInfo[] |
sliceInfos
The REXSliceInfo objects for all slices |
| Constructor Summary | |
|---|---|
REXInputStream(REXHandle handle)
Constrcuts a new REXInputStream |
|
| Method Summary | |
|---|---|
int |
available()
|
boolean |
markSupported()
|
int |
read()
because of the frame size granularity of 4 or 8 bytes, this method should never be called. |
int |
read(byte[] b)
|
int |
read(byte[] b,
int off,
int len)
|
private boolean |
renderNext()
Render the next part of audio data |
long |
skip(long s)
|
| Methods inherited from class java.io.InputStream |
|---|
close, mark, reset |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.nio.ByteBuffer[] buffers
private int channels
private int currentSlice
private REXHandle handle
private int length
private int sliceCount
private REXSliceInfo[] sliceInfos
| Constructor Detail |
|---|
REXInputStream(REXHandle handle)
throws REXError
handle - A REXHandle object referring to the audio data that should
be streamed
REXError| Method Detail |
|---|
public int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOExceptionInputStream.available()public boolean markSupported()
markSupported in class java.io.InputStreamInputStream.markSupported()
public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionInputStream.read()
public int read(byte[] b)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionInputStream.read(byte[])
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionInputStream.read(byte[], int, int)private boolean renderNext()
public long skip(long s)
throws java.io.IOException
skip in class java.io.InputStreamjava.io.IOExceptionInputStream.skip(long)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||