|
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.neomedia.portaudio.streams.InputPortAudioStream
public class InputPortAudioStream
The input audio stream.
| Constructor Summary | |
|---|---|
InputPortAudioStream(MasterPortAudioStream parentStream)
Creates new input stream (slave) with master input stream. |
|
| Method Summary | |
|---|---|
void |
read(javax.media.Buffer buffer)
Reads audio data from this InputPortAudioStream into a specific Buffer blocking until audio data is indeed available. |
(package private) void |
setBuffer(byte[] bufferData,
int bufferLength,
long bufferTimeStamp)
Sets the audio data to be read from this InputPortAudioStream upon the next request. |
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 |
| Constructor Detail |
|---|
public InputPortAudioStream(MasterPortAudioStream parentStream)
parentStream - the parent/master input stream.| Method Detail |
|---|
public void read(javax.media.Buffer buffer)
throws PortAudioException
buffer - the Buffer into which the audio data read from
this InputPortAudioStream is to be returned
PortAudioException - if an error occurs while reading
void setBuffer(byte[] bufferData,
int bufferLength,
long bufferTimeStamp)
parentStream in order to provide
all audio samples to all its slaves and not only to the one which caused
the actual read from PortAudio.
bufferData - the audio data to be read from this
InputPortAudioStream upon the next requestbufferLength - the number of bytes in bufferData which
represent valid audio data to be read from this
InputPortAudioStream upon the next requestbufferTimeStamp - the time stamp of the audio data in
bufferData represented in accord with
Buffer.FLAG_SYSTEM_TIME
public void start()
throws PortAudioException
PortAudioException - if an error occurs while starting this
InputPortAudioStream
public void stop()
throws PortAudioException
PortAudioException - if an error occurs while stopping this
InputPortAudioStream
|
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 | |||||||||