Package org.jitsi.impl.neomedia.device
Class MacCoreaudioSystem
- java.lang.Object
-
- org.jitsi.utils.event.PropertyChangeNotifier
-
- org.jitsi.impl.neomedia.device.DeviceSystem
-
- org.jitsi.impl.neomedia.device.AudioSystem
-
- org.jitsi.impl.neomedia.device.AudioSystem2
-
- org.jitsi.impl.neomedia.device.MacCoreaudioSystem
-
public class MacCoreaudioSystem extends AudioSystem2
Creates MacCoreaudio capture devices by enumerating all host devices that have input channels.- Author:
- Vincent Lucas
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jitsi.impl.neomedia.device.AudioSystem
AudioSystem.DataFlow
-
-
Field Summary
-
Fields inherited from class org.jitsi.impl.neomedia.device.AudioSystem
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
-
Fields inherited from class org.jitsi.impl.neomedia.device.DeviceSystem
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoInitialize()Invoked byDeviceSystem.initialize()to perform the very logic of the initialization of this DeviceSystem.protected StringgetRendererClassName()Gets the name of the class which implements the Renderer interface to render media on a playback or notification device associated with this DeviceSystem.voidsetEchoCancel(boolean echoCancel)Sets the indicator which determines whether echo cancellation is to be performed for captured audio.StringtoString()Returns a human-readable representation of this DeviceSystem.protected voidupdateAvailableDeviceList()-
Methods inherited from class org.jitsi.impl.neomedia.device.AudioSystem2
addUpdateAvailableDeviceListListener, bubbleUpUsbDevices, didOpenStream, matchDevicesByName, reinitialize, removeUpdateAvailableDeviceListListener, willOpenStream
-
Methods inherited from class org.jitsi.impl.neomedia.device.AudioSystem
createRenderer, createRenderer, getAudioInputStream, getAudioSystem, getAudioSystems, getDevice, getDevices, getFormat, getPropertyName, getSelectedDevice, isAutomaticGainControl, isDenoise, isEchoCancel, postInitialize, postInitializeSpecificDevices, preInitialize, setAutomaticGainControl, setCaptureDevices, setDenoise, setDevice, setPlaybackDevices
-
Methods inherited from class org.jitsi.impl.neomedia.device.DeviceSystem
filterDeviceListByLocatorProtocol, getDeviceSystems, getFeatures, getFormat, getLocatorProtocol, getMediaType, initialize, initializeDeviceSystems, initializeDeviceSystems
-
-
-
-
Method Detail
-
doInitialize
protected void doInitialize() throws ExceptionInvoked byDeviceSystem.initialize()to perform the very logic of the initialization of this DeviceSystem. This instance has been prepared for initialization by an earlier call toDeviceSystem.preInitialize()and the initialization will be completed with a subsequent call toDeviceSystem.postInitialize().- Specified by:
doInitializein classDeviceSystem- Throws:
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().
-
getRendererClassName
protected 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.- Overrides:
getRendererClassNamein classDeviceSystem- Returns:
- the name of the class which implements the Renderer interface to render media on a playback or notification device associated with this DeviceSystem or null if no Renderer instance is to be created by the DeviceSystem implementation or createRenderer(boolean) is overridden.
-
setEchoCancel
public void setEchoCancel(boolean echoCancel)
Sets the indicator which determines whether echo cancellation is to be performed for captured audio.- Overrides:
setEchoCancelin classAudioSystem- Parameters:
echoCancel- true if echo cancellation is to be performed for captured audio; otherwise, false
-
toString
public String toString()
Returns a human-readable representation of this DeviceSystem. The implementation of DeviceSystem returns the protocol of the MediaLocators of the CaptureDeviceInfos (to be) registered by this DeviceSystem. The implementation of MacCoreaudioSystem always returns "MacCoreaudio".- Overrides:
toStringin classDeviceSystem- Returns:
- a String which represents this DeviceSystem in a human-readable form
-
updateAvailableDeviceList
protected void updateAvailableDeviceList()
- Specified by:
updateAvailableDeviceListin classAudioSystem2
-
-