Class CoreAudioDevice

  • Direct Known Subclasses:
    MacCoreAudioDevice

    public class CoreAudioDevice
    extends Object
    JNI link to the MacOsX / Windows CoreAudio library.
    Author:
    Vincent Lucas
    • Field Detail

      • isLoaded

        public static boolean isLoaded
        Tells if the CoreAudio library used by this CoreAudioDevice is correctly loaded: if we are under a supported operating system.
    • Constructor Detail

      • CoreAudioDevice

        public CoreAudioDevice()
    • Method Detail

      • freeDevices

        public static void freeDevices()
      • getDeviceModelIdentifier

        public static String getDeviceModelIdentifier​(String deviceUID)
      • getDeviceModelIdentifierBytes

        public static byte[] getDeviceModelIdentifierBytes​(String deviceUID)
      • getDeviceName

        public static String getDeviceName​(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)