|
Jitsi: 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.control.AbstractControls
net.java.sip.communicator.impl.neomedia.control.ControlsAdapter
net.java.sip.communicator.impl.neomedia.conference.AudioMixingPushBufferStream
public class AudioMixingPushBufferStream
Represents a PushBufferStream containing the result of the audio mixing of DataSources.
| Field Summary |
|---|
| Fields inherited from class net.java.sip.communicator.impl.neomedia.control.ControlsAdapter |
|---|
EMPTY_CONTROLS |
| Fields inherited from interface javax.media.protocol.SourceStream |
|---|
LENGTH_UNKNOWN |
| Constructor Summary | |
|---|---|
AudioMixingPushBufferStream(AudioMixerPushBufferStream audioMixerStream,
AudioMixingPushBufferDataSource dataSource)
Initializes a new AudioMixingPushBufferStream mixing the input data of a specific AudioMixerPushBufferStream and excluding from the mix the audio contributions of a specific AudioMixingPushBufferDataSource. |
|
| Method Summary | |
|---|---|
boolean |
endOfStream()
Implements SourceStream.endOfStream(). |
javax.media.protocol.ContentDescriptor |
getContentDescriptor()
Implements SourceStream.getContentDescriptor(). |
long |
getContentLength()
Implements SourceStream.getContentLength(). |
AudioMixingPushBufferDataSource |
getDataSource()
Gets the AudioMixingPushBufferDataSource which created and owns this instance and defines the input data which is to not be mixed in the output of this PushBufferStream. |
javax.media.format.AudioFormat |
getFormat()
Implements PushBufferStream.getFormat(). |
void |
read(javax.media.Buffer buffer)
Implements PushBufferStream.read(Buffer). |
(package private) void |
setInputSamples(int[][] inputSamples,
int maxInputSampleCount,
long timeStamp)
Sets the collection of audio sample sets to be mixed in the sense of audio mixing by this stream when data is read from it. |
void |
setTransferHandler(javax.media.protocol.BufferTransferHandler transferHandler)
Implements PushBufferStream.setTransferHandler(BufferTransferHandler). |
(package private) void |
start()
Starts the pushing of data out of this stream. |
(package private) void |
stop()
Stops the pushing of data out of this stream. |
| Methods inherited from class net.java.sip.communicator.impl.neomedia.control.ControlsAdapter |
|---|
getControls |
| Methods inherited from class net.java.sip.communicator.impl.neomedia.control.AbstractControls |
|---|
getControl, getControl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.media.Controls |
|---|
getControl, getControls |
| Constructor Detail |
|---|
AudioMixingPushBufferStream(AudioMixerPushBufferStream audioMixerStream,
AudioMixingPushBufferDataSource dataSource)
audioMixerStream - the AudioMixerPushBufferStream reading
data from input DataSources and to push it to the new
AudioMixingPushBufferStreamdataSource - the AudioMixingPushBufferDataSource which has
requested the initialization of the new instance and which defines the
input data to not be mixed in the output of the new instance| Method Detail |
|---|
public boolean endOfStream()
SourceStream.endOfStream(). Delegates to the wrapped
AudioMixerPushBufferStream because this instance is just a facet
to it.
endOfStream in interface javax.media.protocol.SourceStreampublic javax.media.protocol.ContentDescriptor getContentDescriptor()
SourceStream.getContentDescriptor(). Delegates to the
wrapped AudioMixerPushBufferStream because this instance is just
a facet to it.
getContentDescriptor in interface javax.media.protocol.SourceStreampublic long getContentLength()
SourceStream.getContentLength(). Delegates to the
wrapped AudioMixerPushBufferStream because this instance is just
a facet to it.
getContentLength in interface javax.media.protocol.SourceStreampublic AudioMixingPushBufferDataSource getDataSource()
public javax.media.format.AudioFormat getFormat()
PushBufferStream.getFormat(). Delegates to the wrapped
AudioMixerPushBufferStream because this instance is just a facet
to it.
getFormat in interface javax.media.protocol.PushBufferStream
public void read(javax.media.Buffer buffer)
throws IOException
PushBufferStream.read(Buffer). If
inputSamples are available, mixes them and writes the mix to the
specified Buffer performing the necessary data type conversions.
read in interface javax.media.protocol.PushBufferStreambuffer - the Buffer to receive the data read from this
instance
IOException - if anything wrong happens while reading from this
instance
void setInputSamples(int[][] inputSamples,
int maxInputSampleCount,
long timeStamp)
inputSamples - the collection of audio sample sets to be mixed by
this stream when data is read from itmaxInputSampleCount - the maximum number of per-stream audio samples
available through inputSamplestimeStamp - the time stamp of inputSamples to be reported
in the specified Buffer when data is read from this instancepublic void setTransferHandler(javax.media.protocol.BufferTransferHandler transferHandler)
PushBufferStream.setTransferHandler(BufferTransferHandler). Sets
the BufferTransferHandler which is to be notified by this
instance when it has media available for reading.
setTransferHandler in interface javax.media.protocol.PushBufferStreamtransferHandler - the BufferTransferHandler to be notified
by this instance when it has media available for reading
void start()
throws IOException
IOException - if starting the pushing of data out of this stream
fails
void stop()
throws IOException
IOException - if stopping the pushing of data out of this stream
fails
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||