|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectaudio.AudioBuffer
public class AudioBuffer
Encapsulates the concept of an audio buffer with a time-stamp. It also contains 'written' flag, which can be used to indicate whether there is written but unread data in the buffer.
Field Summary | |
---|---|
private byte[] |
buf
|
private long |
timestamp
|
private boolean |
written
|
Constructor Summary | |
---|---|
AudioBuffer(int size)
Constructs buffer with given size. |
Method Summary | |
---|---|
byte[] |
getByteArray()
Gets buffer contents. |
long |
getTimestamp()
Returns the time-stamp associated with the buffer |
boolean |
isWritten()
Returns status of the flag 'written' |
void |
setRead()
Resets the flag 'written' |
void |
setTimestamp(long timestamp)
Associates time-stamp with the buffer. |
void |
setWritten()
Sets the flag 'written' |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private byte[] buf
private boolean written
private long timestamp
Constructor Detail |
---|
public AudioBuffer(int size)
Method Detail |
---|
public byte[] getByteArray()
public boolean isWritten()
public void setWritten()
public void setRead()
public long getTimestamp()
public void setTimestamp(long timestamp)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |