|
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.Objectjavax.media.protocol.DataSource
javax.media.protocol.PushBufferDataSource
net.java.sip.communicator.impl.neomedia.conference.AudioMixingPushBufferDataSource
public class AudioMixingPushBufferDataSource
Represents a PushBufferDataSource which provides a single PushBufferStream containing the result of the audio mixing of DataSources.
| Field Summary |
|---|
| Fields inherited from interface javax.media.Duration |
|---|
DURATION_UNBOUNDED, DURATION_UNKNOWN |
| Constructor Summary | |
|---|---|
AudioMixingPushBufferDataSource(AudioMixer audioMixer)
Initializes a new AudioMixingPushBufferDataSource instance which gives access to the result of the audio mixing performed by a specific AudioMixer. |
|
| Method Summary | |
|---|---|
void |
addDTMF(DTMFInbandTone tone)
Adds a new inband DTMF tone to send. |
void |
addInputDataSource(javax.media.protocol.DataSource inputDataSource)
Adds a new input DataSource to be mixed by the associated AudioMixer of this instance and to not have its audio contributions included in the mixing output represented by this DataSource. |
void |
connect()
Implements DataSource.connect(). |
void |
disconnect()
Implements DataSource.disconnect(). |
javax.media.CaptureDeviceInfo |
getCaptureDeviceInfo()
Implements CaptureDevice.getCaptureDeviceInfo(). |
String |
getContentType()
Implements DataSource.getContentType(). |
Object |
getControl(String controlType)
Implements DataSource.getControl(String). |
Object[] |
getControls()
Implements DataSource.getControls(). |
javax.media.Time |
getDuration()
Implements DataSource.getDuration(). |
javax.media.control.FormatControl[] |
getFormatControls()
Implements CaptureDevice.getFormatControls(). |
int[] |
getNextToneSignal(double samplingFrequency,
int sampleSizeInBits)
Gets the next inband DTMF tone signal. |
javax.media.protocol.PushBufferStream[] |
getStreams()
Implements PushBufferDataSource.getStreams(). |
boolean |
isMute()
Determines whether this DataSource is mute. |
boolean |
isSendingDTMF()
Determines whether this DataSource sends a DTMF tone. |
void |
setMute(boolean mute)
Sets the mute state of this DataSource. |
void |
start()
Implements DataSource.start(). |
void |
stop()
Implements DataSource.stop(). |
| Methods inherited from class javax.media.protocol.DataSource |
|---|
getLocator, initCheck, setLocator |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AudioMixingPushBufferDataSource(AudioMixer audioMixer)
audioMixer - the AudioMixer performing audio mixing,
managing the input DataSources and pushing the data of the new
output PushBufferDataSource| Method Detail |
|---|
public void addInputDataSource(javax.media.protocol.DataSource inputDataSource)
inputDataSource - a DataSource to be added for mixing to
the AudioMixer associate with this instance and to not have its
audio contributions included in the mixing output represented by this
DataSource
public void connect()
throws IOException
DataSource.connect(). Lets the AudioMixer
know that one of its output PushBufferDataSources has been
connected and marks this DataSource as connected.
connect in interface javax.media.protocol.CaptureDeviceconnect in class javax.media.protocol.DataSourceIOException - if the AudioMixer fails to connectpublic void disconnect()
DataSource.disconnect(). Marks this
DataSource as disconnected and notifies the AudioMixer
that one of its output PushBufferDataSources has been
disconnected.
disconnect in interface javax.media.protocol.CaptureDevicedisconnect in class javax.media.protocol.DataSourcepublic javax.media.CaptureDeviceInfo getCaptureDeviceInfo()
CaptureDevice.getCaptureDeviceInfo(). Delegates to the
associated AudioMixer because it knows which
CaptureDevice is being wrapped.
getCaptureDeviceInfo in interface javax.media.protocol.CaptureDevicepublic String getContentType()
DataSource.getContentType(). Delegates to the
associated AudioMixer because it manages the inputs and knows
their characteristics.
getContentType in class javax.media.protocol.DataSourcepublic Object getControl(String controlType)
DataSource.getControl(String).
getControl in interface javax.media.ControlsgetControl in class javax.media.protocol.DataSourcecontrolType - a String value which names the type of the
control of this instance to be retrieved
public Object[] getControls()
DataSource.getControls(). Gets an array of
Objects which represent the controls available for this
DataSource.
getControls in interface javax.media.ControlsgetControls in class javax.media.protocol.DataSourcepublic javax.media.Time getDuration()
DataSource.getDuration(). Delegates to the associated
AudioMixer because it manages the inputs and knows their
characteristics.
getDuration in interface javax.media.DurationgetDuration in class javax.media.protocol.DataSourcepublic javax.media.control.FormatControl[] getFormatControls()
CaptureDevice.getFormatControls(). Delegates to the
associated AudioMixer because it knows which
CaptureDevice is being wrapped.
getFormatControls in interface javax.media.protocol.CaptureDevicepublic javax.media.protocol.PushBufferStream[] getStreams()
PushBufferDataSource.getStreams(). Gets a
PushBufferStream which reads data from the associated
AudioMixer and mixes its inputs.
getStreams in class javax.media.protocol.PushBufferDataSource
public void start()
throws IOException
DataSource.start(). Starts the output
PushBufferStream of this DataSource (if it exists) and
notifies the AudioMixer that one of its output
PushBufferDataSources has been started.
start in interface javax.media.protocol.CaptureDevicestart in class javax.media.protocol.DataSourceIOException - if anything wrong happens while starting the output
PushBufferStream of this DataSource
public void stop()
throws IOException
DataSource.stop(). Notifies the AudioMixer
that one of its output PushBufferDataSources has been stopped
and stops the output PushBufferStream of this
DataSource (if it exists).
stop in interface javax.media.protocol.CaptureDevicestop in class javax.media.protocol.DataSourceIOException - if anything wrong happens while stopping the output
PushBufferStream of this DataSourcepublic boolean isMute()
isMute in interface MuteDataSourcepublic void setMute(boolean mute)
setMute in interface MuteDataSourcemute - true to mute this DataSource; otherwise,
falsepublic void addDTMF(DTMFInbandTone tone)
addDTMF in interface InbandDTMFDataSourcetone - the DTMF tone to send.public boolean isSendingDTMF()
public int[] getNextToneSignal(double samplingFrequency,
int sampleSizeInBits)
samplingFrequency - The sampling frequency (codec clock rate) in Hz
of the stream which will encapsulate this signal.sampleSizeInBits - The size of each sample (8 for a byte, 16 for a
short and 32 for an int)
|
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 | |||||||||