Package org.jitsi.impl.neomedia.device
Class CoreAudioDevice
- java.lang.Object
-
- org.jitsi.impl.neomedia.device.CoreAudioDevice
-
- Direct Known Subclasses:
MacCoreAudioDevice
public class CoreAudioDevice extends Object
JNI link to the MacOsX / Windows CoreAudio library.- Author:
- Vincent Lucas
-
-
Field Summary
Fields Modifier and Type Field Description static booleanisLoadedTells if the CoreAudio library used by this CoreAudioDevice is correctly loaded: if we are under a supported operating system.
-
Constructor Summary
Constructors Constructor Description CoreAudioDevice()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voiddevicesChangedCallback()Implements a callback which gets called by the native coreaudio counterpart to notify the Java counterpart that the list of devices has changed.static voidfreeDevices()static StringgetDeviceModelIdentifier(String deviceUID)static byte[]getDeviceModelIdentifierBytes(String deviceUID)static StringgetDeviceName(String deviceUID)static byte[]getDeviceNameBytes(String deviceUID)static floatgetInputDeviceVolume(String deviceUID)static floatgetOutputDeviceVolume(String deviceUID)static intinitDevices()static voidlog(byte[] error)protected static StringnewString(byte[] bytes)static voidsetDevicesChangedCallback(Runnable devicesChangedCallback)static intsetInputDeviceVolume(String deviceUID, float volume)static intsetOutputDeviceVolume(String deviceUID, float volume)
-
-
-
Method Detail
-
freeDevices
public static void freeDevices()
-
getDeviceModelIdentifierBytes
public static byte[] getDeviceModelIdentifierBytes(String deviceUID)
-
getDeviceNameBytes
public static byte[] getDeviceNameBytes(String deviceUID)
-
getInputDeviceVolume
public static float getInputDeviceVolume(String deviceUID)
-
getOutputDeviceVolume
public static float getOutputDeviceVolume(String deviceUID)
-
initDevices
public static int initDevices()
-
setInputDeviceVolume
public static int setInputDeviceVolume(String deviceUID, float volume)
-
setOutputDeviceVolume
public static int setOutputDeviceVolume(String deviceUID, float volume)
-
devicesChangedCallback
public static void devicesChangedCallback()
Implements a callback which gets called by the native coreaudio counterpart to notify the Java counterpart that the list of devices has changed.
-
setDevicesChangedCallback
public static void setDevicesChangedCallback(Runnable devicesChangedCallback)
-
log
public static void log(byte[] error)
-
newString
protected static String newString(byte[] bytes)
-
-