/** Entry point (through function pointer) to C language function: <br> <code>ALCdevice * alcOpenDevice(const ALCchar * devicename)</code><br> */ public ALCdevice alcOpenDevice(String devicename) { final long __addr_ = alcProcAddressTable._addressof_alcOpenDevice; if (__addr_ == 0) { throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "alcOpenDevice")); } final ByteBuffer _res; _res = dispatch_alcOpenDevice1(devicename, __addr_); if (_res == null) return null; return ALCdevice.create(Buffers.nativeOrder(_res)); }
/** Entry point (through function pointer) to C language function: <br> <code>ALCdevice * alcCaptureOpenDevice(const ALCchar * devicename, ALCuint frequency, ALCenum format, ALCsizei buffersize)</code><br> */ public ALCdevice alcCaptureOpenDevice(String devicename, int frequency, int format, int buffersize) { final long __addr_ = alcProcAddressTable._addressof_alcCaptureOpenDevice; if (__addr_ == 0) { throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "alcCaptureOpenDevice")); } final ByteBuffer _res; _res = dispatch_alcCaptureOpenDevice1(devicename, frequency, format, buffersize, __addr_); if (_res == null) return null; return ALCdevice.create(Buffers.nativeOrder(_res)); }
/** Entry point (through function pointer) to C language function: <br> <code>ALCdevice * alcLoopbackOpenDeviceSOFT(const ALCchar * deviceName)</code><br> */ public ALCdevice alcLoopbackOpenDeviceSOFT(String deviceName) { final long __addr_ = alExtProcAddressTable._addressof_alcLoopbackOpenDeviceSOFT; if (__addr_ == 0) { throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "alcLoopbackOpenDeviceSOFT")); } final ByteBuffer _res; _res = dispatch_alcLoopbackOpenDeviceSOFT1(deviceName, __addr_); if (_res == null) return null; return ALCdevice.create(Buffers.nativeOrder(_res)); }
/** Entry point (through function pointer) to C language function: <br> <code>ALCdevice * alcGetContextsDevice(ALCcontext * context)</code><br> */ public ALCdevice alcGetContextsDevice(ALCcontext context) { final long __addr_ = alcProcAddressTable._addressof_alcGetContextsDevice; if (__addr_ == 0) { throw new UnsupportedOperationException(String.format("Method \"%s\" not available", "alcGetContextsDevice")); } final ByteBuffer _res; _res = dispatch_alcGetContextsDevice1(((context == null) ? null : context.getBuffer()), __addr_); if (_res == null) return null; return ALCdevice.create(Buffers.nativeOrder(_res)); }
public static ALCdevice create() { return create(Buffers.newDirectByteBuffer(size())); }