public class DataSource extends AbstractPushBufferCaptureDevice
Modifier and Type | Field and Description |
---|---|
(package private) boolean |
aec
The indicator which determines whether the voice capture DMO is to be
used to perform echo cancellation and/or noise reduction.
|
(package private) WASAPISystem |
audioSystem
The WASAPISystem which has contributed this
CaptureDevice/DataSource.
|
Constructor and Description |
---|
DataSource()
Initializes a new DataSource instance.
|
DataSource(javax.media.MediaLocator locator)
Initializes a new DataSource instance with a specific
MediaLocator.
|
Modifier and Type | Method and Description |
---|---|
protected WASAPIStream |
createStream(int streamIndex,
javax.media.control.FormatControl formatControl)
Create a new PushBufferStream which is to be at a specific
zero-based index in the list of streams of this
PushBufferDataSource.
|
protected void |
doConnect()
Opens a connection to the media source specified by the
MediaLocator of this DataSource.
|
protected void |
doDisconnect()
Closes the connection to the media source specified by the
MediaLocator of this DataSource.
|
(package private) javax.media.Format[] |
getIAudioClientSupportedFormats()
Gets the Formats of media data supported by the audio endpoint
device associated with this instance.
|
protected javax.media.Format[] |
getSupportedFormats(int streamIndex)
Gets the Formats which are to be reported by a
FormatControl as supported formats for a
PushBufferStream at a specific zero-based index in the list of
streams of this PushBufferDataSource.
|
connect, createFrameRateControl, disconnect, doStart, doStop, getCaptureDeviceInfo, getContentType, getControl, getControls, getDuration, getFormat, getFormatControls, getStreams, getStreamSyncRoot, setFormat, start, stop, streams
final boolean aec
final WASAPISystem audioSystem
public DataSource()
public DataSource(javax.media.MediaLocator locator)
locator
- the MediaLocator to initialize the new instance
withprotected WASAPIStream createStream(int streamIndex, javax.media.control.FormatControl formatControl)
createStream
in class AbstractPushBufferCaptureDevice
streamIndex
- the zero-based index of the PushBufferStream
in the list of streams of this PushBufferDataSourceformatControl
- the FormatControl which is to abstract the
Format-related information of the new instanceprotected void doConnect() throws java.io.IOException
doConnect
in class AbstractPushBufferCaptureDevice
java.io.IOException
- if anything goes wrong while opening the connection
to the media source specified by the MediaLocator of this
DataSourceprotected void doDisconnect()
doDisconnect
in class AbstractPushBufferCaptureDevice
javax.media.Format[] getIAudioClientSupportedFormats()
protected javax.media.Format[] getSupportedFormats(int streamIndex)
getSupportedFormats
in class AbstractPushBufferCaptureDevice
streamIndex
- the zero-based index of the PushBufferStream
for which the specified FormatControl is to report the list of
supported Formats
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.