public class CoreAudioDevice
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static boolean |
isLoaded
Tells if the CoreAudio library used by this CoreAudioDevice is correctly
loaded: if we are under a supported operating system.
|
Constructor and Description |
---|
CoreAudioDevice() |
Modifier and Type | Method and Description |
---|---|
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.
|
static void |
freeDevices() |
static java.lang.String |
getDeviceModelIdentifier(java.lang.String deviceUID) |
static byte[] |
getDeviceModelIdentifierBytes(java.lang.String deviceUID) |
static java.lang.String |
getDeviceName(java.lang.String deviceUID) |
static byte[] |
getDeviceNameBytes(java.lang.String deviceUID) |
static float |
getInputDeviceVolume(java.lang.String deviceUID) |
static float |
getOutputDeviceVolume(java.lang.String deviceUID) |
static int |
initDevices() |
static void |
log(byte[] error) |
static void |
setDevicesChangedCallback(java.lang.Runnable devicesChangedCallback) |
static int |
setInputDeviceVolume(java.lang.String deviceUID,
float volume) |
static int |
setOutputDeviceVolume(java.lang.String deviceUID,
float volume) |
public static boolean isLoaded
public static void freeDevices()
public static java.lang.String getDeviceModelIdentifier(java.lang.String deviceUID)
public static byte[] getDeviceModelIdentifierBytes(java.lang.String deviceUID)
public static java.lang.String getDeviceName(java.lang.String deviceUID)
public static byte[] getDeviceNameBytes(java.lang.String deviceUID)
public static float getInputDeviceVolume(java.lang.String deviceUID)
public static float getOutputDeviceVolume(java.lang.String deviceUID)
public static int initDevices()
public static int setInputDeviceVolume(java.lang.String deviceUID, float volume)
public static int setOutputDeviceVolume(java.lang.String deviceUID, float volume)
public static void devicesChangedCallback()
public static void setDevicesChangedCallback(java.lang.Runnable devicesChangedCallback)
public static void log(byte[] error)
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.