Package org.jitsi.impl.neomedia.device
Class MacCoreAudioDevice
- java.lang.Object
-
- org.jitsi.impl.neomedia.device.CoreAudioDevice
-
- org.jitsi.impl.neomedia.device.MacCoreAudioDevice
-
public class MacCoreAudioDevice extends CoreAudioDevice
Extension for the JNI link to the MacOsX CoreAudio library.- Author:
- Vincent Lucas
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_MILLIS_PER_BUFFERThe number of milliseconds to be read from or written to a native CoreAudio stream in a single transfer of data.static doubleDEFAULT_SAMPLE_RATEThe 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.-
Fields inherited from class org.jitsi.impl.neomedia.device.CoreAudioDevice
isLoaded
-
-
Constructor Summary
Constructors Constructor Description MacCoreAudioDevice()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intcountInputChannels(String deviceUID)static intcountOutputChannels(String deviceUID)static StringgetDefaultInputDeviceUID()static byte[]getDefaultInputDeviceUIDBytes()static StringgetDefaultOutputDeviceUID()static byte[]getDefaultOutputDeviceUIDBytes()static String[]getDeviceUIDList()static floatgetMaximalNominalSampleRate(String deviceUID, boolean isOutputStream, boolean isEchoCancel)static floatgetMinimalNominalSampleRate(String deviceUID, boolean isOutputStream, boolean isEchoCancel)static floatgetNominalSampleRate(String deviceUID, boolean isOutputStream, boolean isEchoCancel)static StringgetTransportType(String deviceUID)static byte[]getTransportTypeBytes(String deviceUID)static booleanisInputDevice(String deviceUID)static booleanisOutputDevice(String deviceUID)static longstartStream(String deviceUID, Object callback, float sampleRate, int nbChannels, int bitsPerChannel, boolean isFloat, boolean isBigEndian, boolean isNonInterleaved, boolean isInput, boolean isEchoCancel)static voidstopStream(String deviceUID, long stream)-
Methods inherited from class org.jitsi.impl.neomedia.device.CoreAudioDevice
devicesChangedCallback, freeDevices, getDeviceModelIdentifier, getDeviceModelIdentifierBytes, getDeviceName, getDeviceNameBytes, getInputDeviceVolume, getOutputDeviceVolume, initDevices, log, newString, setDevicesChangedCallback, setInputDeviceVolume, setOutputDeviceVolume
-
-
-
-
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
-
-
Method Detail
-
getDeviceUIDList
public static String[] getDeviceUIDList()
-
isInputDevice
public static boolean isInputDevice(String deviceUID)
-
isOutputDevice
public static boolean isOutputDevice(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)
-
-