|
SIP Communicator: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.media.protocol.portaudio.streams.InputPortAudioStream
public class InputPortAudioStream
The input audio stream.
| Field Summary | |
|---|---|
protected byte[] |
buffer
The buffer to return. |
| Constructor Summary | |
|---|---|
InputPortAudioStream(MasterPortAudioStream st)
Creates new input stream (slave) with master input stream. |
|
| Method Summary | |
|---|---|
byte[] |
read()
Block and read a buffer from the stream if there is no buffer. |
void |
setBuffer(byte[] buffer)
The parent can set a buffer that was requested and read by other slave stream. |
void |
start()
Starts the stream. |
void |
stop()
Stops the stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected byte[] buffer
| Constructor Detail |
|---|
public InputPortAudioStream(MasterPortAudioStream st)
st - the parent(master) input stream.| Method Detail |
|---|
public byte[] read()
throws PortAudioException
PortAudioException - if an error occurs while reading.
public void start()
throws PortAudioException
PortAudioException - if stream cannot be started.
public void stop()
throws PortAudioException
PortAudioExceptionpublic void setBuffer(byte[] buffer)
buffer - the buffer to set.
|
SIP Communicator: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||