|
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.DSAudioStream
public class DSAudioStream
The stream used by jmf, wraps our InputPortAudioStream, which wraps the actual PortAudio stream.
| Field Summary |
|---|
| Fields inherited from interface javax.media.protocol.SourceStream |
|---|
LENGTH_UNKNOWN |
| Constructor Summary | |
|---|---|
DSAudioStream(javax.media.MediaLocator locator)
Creates new stream. |
|
| Method Summary | |
|---|---|
boolean |
endOfStream()
The stream never ends. |
javax.media.protocol.ContentDescriptor |
getContentDescriptor()
We are providing access to raw data |
long |
getContentLength()
We are streaming. |
Object |
getControl(String controlType)
Return required control from the Control[] array if exists |
Object[] |
getControls()
Gives control information to the caller |
javax.media.Format |
getFormat()
Returns the supported format by this stream. |
void |
read(javax.media.Buffer buffer)
Block and read a buffer from the stream. |
(package private) void |
start()
Starts the stream operation |
(package private) void |
stop()
Stops the stream operation. |
boolean |
willReadBlock()
Query if the next read will block. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DSAudioStream(javax.media.MediaLocator locator)
locator - the locator to extract the device index from it.| Method Detail |
|---|
void start()
throws PortAudioException
PortAudioException - if fail to start.
void stop()
throws PortAudioException
PortAudioException - if fail to stop.public boolean willReadBlock()
willReadBlock in interface javax.media.protocol.PullBufferStream
public void read(javax.media.Buffer buffer)
throws IOException
read in interface javax.media.protocol.PullBufferStreambuffer - the Buffer to read captured media into
IOException - if an error occurs while reading.public javax.media.Format getFormat()
getFormat in interface javax.media.protocol.PullBufferStreampublic javax.media.protocol.ContentDescriptor getContentDescriptor()
getContentDescriptor in interface javax.media.protocol.SourceStreampublic long getContentLength()
getContentLength in interface javax.media.protocol.SourceStreampublic boolean endOfStream()
endOfStream in interface javax.media.protocol.SourceStreampublic Object[] getControls()
getControls in interface javax.media.Controlspublic Object getControl(String controlType)
getControl in interface javax.media.ControlscontrolType - the control class name.
|
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 | |||||||||