com.jme.sound.openAL.objects.util
Class JMEAudioInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
com.jme.sound.openAL.objects.util.JMEAudioInputStream
- Direct Known Subclasses:
- OggInputStream, WavInputStream
- public abstract class JMEAudioInputStream
- extends java.io.FilterInputStream
- Author:
- Arman
| Fields inherited from class java.io.FilterInputStream |
in |
|
Method Summary |
abstract int |
getAudioChannels()
|
abstract int |
getChannels()
|
java.lang.String |
getFileName()
|
protected abstract float |
getLength()
|
abstract int |
rate()
|
abstract int |
read(java.nio.ByteBuffer buffer,
int offset,
int length)
Reads up to len bytes of data from the input stream into a ByteBuffer. |
void |
setFileName(java.lang.String file)
|
protected abstract void |
setLength(float time)
|
| Methods inherited from class java.io.FilterInputStream |
available, close, mark, markSupported, read, read, read, reset, skip |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INVALID_OGG_MESSAGE
public static final java.lang.String INVALID_OGG_MESSAGE
- See Also:
- Constant Field Values
JMEAudioInputStream
public JMEAudioInputStream(java.io.InputStream in)
read
public abstract int read(java.nio.ByteBuffer buffer,
int offset,
int length)
throws java.io.IOException
- Reads up to len bytes of data from the input stream into a ByteBuffer.
- Returns:
- the total number of bytes read into the buffer, or -1 if there is
no more data because the end of the stream has been reached.
- Throws:
java.io.IOException
getChannels
public abstract int getChannels()
getAudioChannels
public abstract int getAudioChannels()
rate
public abstract int rate()
setLength
protected abstract void setLength(float time)
getLength
protected abstract float getLength()
setFileName
public void setFileName(java.lang.String file)
getFileName
public java.lang.String getFileName()