/** Unsafe version of: {@link #alcCaptureOpenDevice CaptureOpenDevice} */ public static long nalcCaptureOpenDevice(long deviceName, int frequency, int format, int samples) { return ALC11.nalcCaptureOpenDevice(deviceName, frequency, format, samples); }
/** * Allows the application to connect to a capture device. * * <p>The {@code deviceName} argument is a null terminated string that requests a certain device or device configuration. If {@code NULL} is specified, the implementation * will provide an implementation specific default.</p> * * @param deviceName the device or device configuration * @param frequency the audio frequency * @param format the audio format * @param samples the number of sample frames to buffer in the AL */ @NativeType("ALCdevice *") public static long alcCaptureOpenDevice(@Nullable @NativeType("ALCchar const *") ByteBuffer deviceName, @NativeType("ALCuint") int frequency, @NativeType("ALCenum") int format, @NativeType("ALCsizei") int samples) { if (CHECKS) { checkNT1Safe(deviceName); } return nalcCaptureOpenDevice(memAddressSafe(deviceName), frequency, format, samples); }
/** * Allows the application to connect to a capture device. * * <p>The {@code deviceName} argument is a null terminated string that requests a certain device or device configuration. If {@code NULL} is specified, the implementation * will provide an implementation specific default.</p> * * @param deviceName the device or device configuration * @param frequency the audio frequency * @param format the audio format * @param samples the number of sample frames to buffer in the AL */ @NativeType("ALCdevice *") public static long alcCaptureOpenDevice(@Nullable @NativeType("ALCchar const *") CharSequence deviceName, @NativeType("ALCuint") int frequency, @NativeType("ALCenum") int format, @NativeType("ALCsizei") int samples) { MemoryStack stack = stackGet(); int stackPointer = stack.getPointer(); try { stack.nUTF8Safe(deviceName, true); long deviceNameEncoded = deviceName == null ? NULL : stack.getPointerAddress(); return nalcCaptureOpenDevice(deviceNameEncoded, frequency, format, samples); } finally { stack.setPointer(stackPointer); } }