|
GF4J 0.9.4 Beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.io.InputStream | +--gameframe.engines.jdk11x.CLoopingSoundStream
Looping sound stream that uses the given CSoundStream as the source for audio data. This means that the sample data is not duplicated (which of course saves memory).
Field Summary | |
private CSoundStream |
m_soundStream
The sound stream object that is used as the base for looping sound stream. |
Fields inherited from class java.io.InputStream |
SKIP_BUFFER_SIZE, skipBuffer |
Constructor Summary | |
CLoopingSoundStream(CSoundStream soundStream)
Constructs a looping sound stream from the given sound stream. |
Method Summary | |
int |
available()
Redirected to underlying CSoundStream object. |
void |
close()
Redirected to underlying CSoundStream object. |
void |
mark(int readLimit)
Redirected to underlying CSoundStream object. |
boolean |
markSupported()
Redirected to underlying CSoundStream object. |
int |
read()
Overrides the read method of input stream to read from the underlying sound stream with looping. |
int |
read(byte[] aBuffer)
Overrides the read method of input stream to read from the underlying sound stream with looping. |
int |
read(byte[] aBuffer,
int offset,
int length)
Overrides the read method of input stream to read from the underlying sound stream with looping. |
void |
reset()
Redirected to underlying CSoundStream object. |
long |
skip(long numSkippedBytes)
Redirected to underlying CSoundStream object. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private CSoundStream m_soundStream
Constructor Detail |
public CLoopingSoundStream(CSoundStream soundStream)
soundStream
- The sound stream used as the base.Method Detail |
public int read() throws java.io.IOException
read
in class java.io.InputStream
public int read(byte[] aBuffer) throws java.io.IOException
read
in class java.io.InputStream
aBuffer
- The buffer to read into.public int read(byte[] aBuffer, int offset, int length) throws java.io.IOException
read
in class java.io.InputStream
aBuffer
- The buffer to read into.offset
- The offset to the buffer.length
- The length of read.public long skip(long numSkippedBytes) throws java.io.IOException
skip
in class java.io.InputStream
public int available() throws java.io.IOException
available
in class java.io.InputStream
public void close() throws java.io.IOException
close
in class java.io.InputStream
public void mark(int readLimit)
mark
in class java.io.InputStream
public void reset() throws java.io.IOException
reset
in class java.io.InputStream
public boolean markSupported()
markSupported
in class java.io.InputStream
|
GF4J 0.9.4 Beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |