public class MacCoreaudioSystem 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 |
---|
MacCoreaudioSystem()
Initializes a new MacCoreaudioSystem instance which creates
MacCoreaudio 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.
|
void |
setEchoCancel(boolean echoCancel)
Sets the indicator which determines whether echo cancellation is to be
performed for captured audio.
|
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, setPlaybackDevices
filterDeviceListByLocatorProtocol, getDeviceSystems, getFeatures, getFormat, getLocatorProtocol, getMediaType, initialize, initializeDeviceSystems, initializeDeviceSystems, invokeDeviceSystemInitialize, invokeDeviceSystemInitialize
addPropertyChangeListener, firePropertyChange, getPropertyChangeSource, removePropertyChangeListener
MacCoreaudioSystem() throws java.lang.Exception
java.lang.Exception
- if anything wrong happens while creating the
MacCoreaudio capture and playback devicesprotected 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 void setEchoCancel(boolean echoCancel)
setEchoCancel
in class AudioSystem
echoCancel
- true if echo cancellation is to be performed
for captured audio; otherwise, falsepublic 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.