Class MacCoreAudioDevice


  • public class MacCoreAudioDevice
    extends CoreAudioDevice
    Extension for the JNI link to the MacOsX CoreAudio library.
    Author:
    Vincent Lucas
    • Field Detail

      • DEFAULT_MILLIS_PER_BUFFER

        public static final int DEFAULT_MILLIS_PER_BUFFER
        The number of milliseconds to be read from or written to a native CoreAudio stream in a single transfer of data.
        See Also:
        Constant Field Values
      • DEFAULT_SAMPLE_RATE

        public static final double DEFAULT_SAMPLE_RATE
        The default value for the sample rate of the input and the output MacCoreaudio streams with which they are to be opened if no other specific sample rate is specified to the MacCoreaudio DataSource or MacCoreaudioRenderer that they represent.
        See Also:
        Constant Field Values
    • Constructor Detail

      • MacCoreAudioDevice

        public MacCoreAudioDevice()
    • Method Detail

      • getDeviceUIDList

        public static String[] getDeviceUIDList()
      • isInputDevice

        public static boolean isInputDevice​(String deviceUID)
      • isOutputDevice

        public static boolean isOutputDevice​(String deviceUID)
      • getTransportType

        public static String getTransportType​(String deviceUID)
      • getTransportTypeBytes

        public static byte[] getTransportTypeBytes​(String deviceUID)
      • getNominalSampleRate

        public static float getNominalSampleRate​(String deviceUID,
                                                 boolean isOutputStream,
                                                 boolean isEchoCancel)
      • getMinimalNominalSampleRate

        public static float getMinimalNominalSampleRate​(String deviceUID,
                                                        boolean isOutputStream,
                                                        boolean isEchoCancel)
      • getMaximalNominalSampleRate

        public static float getMaximalNominalSampleRate​(String deviceUID,
                                                        boolean isOutputStream,
                                                        boolean isEchoCancel)
      • getDefaultInputDeviceUID

        public static String getDefaultInputDeviceUID()
      • getDefaultInputDeviceUIDBytes

        public static byte[] getDefaultInputDeviceUIDBytes()
      • getDefaultOutputDeviceUID

        public static String getDefaultOutputDeviceUID()
      • getDefaultOutputDeviceUIDBytes

        public static byte[] getDefaultOutputDeviceUIDBytes()
      • startStream

        public static long startStream​(String deviceUID,
                                       Object callback,
                                       float sampleRate,
                                       int nbChannels,
                                       int bitsPerChannel,
                                       boolean isFloat,
                                       boolean isBigEndian,
                                       boolean isNonInterleaved,
                                       boolean isInput,
                                       boolean isEchoCancel)
      • stopStream

        public static void stopStream​(String deviceUID,
                                      long stream)
      • countInputChannels

        public static int countInputChannels​(String deviceUID)
      • countOutputChannels

        public static int countOutputChannels​(String deviceUID)