public class PortAudioSystem extends AudioSystem2
AudioSystem.DataFlow
FEATURE_AGC, FEATURE_DENOISE, FEATURE_ECHO_CANCELLATION, FEATURE_NOTIFY_AND_PLAYBACK_DEVICES, LOCATOR_PROTOCOL_AUDIORECORD, LOCATOR_PROTOCOL_AUDIOSILENCE, LOCATOR_PROTOCOL_JAVASOUND, LOCATOR_PROTOCOL_MACCOREAUDIO, LOCATOR_PROTOCOL_OPENSLES, LOCATOR_PROTOCOL_PORTAUDIO, LOCATOR_PROTOCOL_PULSEAUDIO, LOCATOR_PROTOCOL_WASAPI, PNAME_DENOISE, PNAME_ECHOCANCEL
FEATURE_REINITIALIZE, LOCATOR_PROTOCOL_ANDROIDCAMERA, LOCATOR_PROTOCOL_CIVIL, LOCATOR_PROTOCOL_DIRECTSHOW, LOCATOR_PROTOCOL_IMGSTREAMING, LOCATOR_PROTOCOL_MEDIARECORDER, LOCATOR_PROTOCOL_QUICKTIME, LOCATOR_PROTOCOL_VIDEO4LINUX2, PROP_DEVICES
Constructor and Description |
---|
PortAudioSystem()
Initializes a new PortAudioSystem instance which creates
PortAudio capture and playback devices by enumerating all host devices
with input channels.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doInitialize()
Invoked by
DeviceSystem.initialize() to perform the very logic of the
initialization of this DeviceSystem. |
protected java.lang.String |
getRendererClassName()
Gets the name of the class which implements the Renderer
interface to render media on a playback or notification device associated
with this DeviceSystem.
|
static void |
monitorFunctionalHealth(DiagnosticsControl diagnosticsControl)
Places a specific DiagnosticsControl under monitoring of its
functional health because of a malfunction in its procedure/process.
|
java.lang.String |
toString()
Returns a human-readable representation of this DeviceSystem.
|
protected void |
updateAvailableDeviceList() |
addUpdateAvailableDeviceListListener, bubbleUpUsbDevices, didOpenStream, matchDevicesByName, reinitialize, removeUpdateAvailableDeviceListListener, willOpenStream
createRenderer, createRenderer, getAudioInputStream, getAudioSystem, getAudioSystems, getDevice, getDevices, getFormat, getPropertyName, getSelectedDevice, isAutomaticGainControl, isDenoise, isEchoCancel, postInitialize, postInitializeSpecificDevices, preInitialize, propertyChange, setAutomaticGainControl, setCaptureDevices, setDenoise, setDevice, setEchoCancel, setPlaybackDevices
filterDeviceListByLocatorProtocol, getDeviceSystems, getFeatures, getFormat, getLocatorProtocol, getMediaType, initialize, initializeDeviceSystems, initializeDeviceSystems, invokeDeviceSystemInitialize, invokeDeviceSystemInitialize
addPropertyChangeListener, firePropertyChange, getPropertyChangeSource, removePropertyChangeListener
PortAudioSystem() throws java.lang.Exception
java.lang.Exception
- if anything wrong happens while creating the PortAudio
capture and playback devicespublic static void monitorFunctionalHealth(DiagnosticsControl diagnosticsControl)
diagnosticsControl
- the DiagnosticsControl to be placed
under monitoring of its functional health because of a malfunction in its
procedure/processprotected void doInitialize() throws java.lang.Exception
DeviceSystem.initialize()
to perform the very logic of the
initialization of this DeviceSystem. This instance has been
prepared for initialization by an earlier call to
DeviceSystem.preInitialize()
and the initialization will be completed with a
subsequent call to DeviceSystem.postInitialize()
.doInitialize
in class DeviceSystem
java.lang.Exception
- if an error occurs during the initialization of this
instance. The initialization of this instance will be completed with a
subsequent call to postInitialize() regardless of any
Exception thrown by doInitialize().protected java.lang.String getRendererClassName()
#createRenderer(boolean)
.getRendererClassName
in class DeviceSystem
public java.lang.String toString()
toString
in class DeviceSystem
protected void updateAvailableDeviceList()
updateAvailableDeviceList
in class AudioSystem2
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.