com.jme.sound.openAL.objects.util
Class WavInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
com.jme.sound.openAL.objects.util.JMEAudioInputStream
com.jme.sound.openAL.objects.util.WavInputStream
- public class WavInputStream
- extends JMEAudioInputStream
| Fields inherited from class java.io.FilterInputStream |
in |
| 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 |
WavInputStream
public WavInputStream(java.io.InputStream _in)
throws java.io.IOException
read
public int read(java.nio.ByteBuffer b,
int off,
int len)
throws java.io.IOException
- Reads up to len bytes of data from the input stream into a ByteBuffer.
- Specified by:
read in class JMEAudioInputStream
- Parameters:
b - the buffer into which the data is read.off - the start offset of the data.len - the maximum number of bytes read.
- 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
channels
public int channels()
depth
public int depth()
rate
public int rate()
- Specified by:
rate in class JMEAudioInputStream
length
public int length()
marksupported
public boolean marksupported()
readSample
public void readSample(byte[] b,
int start,
int length)
throws java.io.IOException
- Throws:
java.io.IOException
readSample
public void readSample(short[] b,
int start,
int length)
throws java.io.IOException
- Throws:
java.io.IOException
readSample
public void readSample(int[] b,
int start,
int length)
throws java.io.IOException
- Throws:
java.io.IOException
getChannels
public int getChannels()
- Specified by:
getChannels in class JMEAudioInputStream
- Returns:
getAudioChannels
public int getAudioChannels()
- Specified by:
getAudioChannels in class JMEAudioInputStream
setLength
protected void setLength(float time)
- Specified by:
setLength in class JMEAudioInputStream
getLength
public float getLength()
- Specified by:
getLength in class JMEAudioInputStream