Class ALC
java.lang.Object
club.doki7.openal.ALC
- All Implemented Interfaces:
ALCConstants
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MethodHandle
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
final @Nullable MemorySegment
Fields inherited from interface club.doki7.openal.ALCConstants
_5POINT1_SOFT, _6POINT1_SOFT, _7POINT1_SOFT, ACN_SOFT, ALL_ATTRIBUTES, ALL_DEVICES_SPECIFIER, AMBISONIC_LAYOUT_SOFT, AMBISONIC_ORDER_SOFT, AMBISONIC_SCALING_SOFT, ANY_SOFT, ATTRIBUTES_SIZE, BFORMAT3D_SOFT, BYTE_SOFT, CAPTURE_DEFAULT_DEVICE_SPECIFIER, CAPTURE_DEVICE_SOFT, CAPTURE_DEVICE_SPECIFIER, CAPTURE_SAMPLES, CHAN_CD_LOKI, CHAN_MAIN_LOKI, CHAN_PCM_LOKI, CONNECTED, CONTEXT_DEBUG_BIT_EXT, CONTEXT_FLAGS_EXT, DEFAULT_ALL_DEVICES_SPECIFIER, DEFAULT_DEVICE_SPECIFIER, DEFAULT_FILTER_ORDER, DEVICE_CLOCK_LATENCY_SOFT, DEVICE_CLOCK_SOFT, DEVICE_LATENCY_SOFT, DEVICE_SPECIFIER, DONT_CARE_SOFT, EFX_MAJOR_VERSION, EFX_MINOR_VERSION, ENUMERATE_ALL_EXT, EVENT_NOT_SUPPORTED_SOFT, EVENT_SUPPORTED_SOFT, EVENT_TYPE_DEFAULT_DEVICE_CHANGED_SOFT, EVENT_TYPE_DEVICE_ADDED_SOFT, EVENT_TYPE_DEVICE_REMOVED_SOFT, EXT_CAPTURE, EXT_DEDICATED, EXT_DEFAULT_FILTER_ORDER, EXT_disconnect, EXT_EFX, EXT_thread_local_context, EXTENSIONS, FALSE, FLOAT_SOFT, FORMAT_CHANNELS_SOFT, FORMAT_TYPE_SOFT, FREQUENCY, FUMA_SOFT, HRTF_DENIED_SOFT, HRTF_DISABLED_SOFT, HRTF_ENABLED_SOFT, HRTF_HEADPHONES_DETECTED_SOFT, HRTF_ID_SOFT, HRTF_REQUIRED_SOFT, HRTF_SOFT, HRTF_SPECIFIER_SOFT, HRTF_STATUS_SOFT, HRTF_UNSUPPORTED_FORMAT_SOFT, INT_SOFT, INVALID, INVALID_CONTEXT, INVALID_DEVICE, INVALID_ENUM, INVALID_VALUE, LOKI_audio_channel, MAJOR_VERSION, MAX_AMBISONIC_ORDER_SOFT, MAX_AUXILIARY_SENDS, MINOR_VERSION, MONO_SOFT, MONO_SOURCES, N3D_SOFT, NO_ERROR, NUM_HRTF_SPECIFIERS_SOFT, OUT_OF_MEMORY, OUTPUT_LIMITER_SOFT, OUTPUT_MODE_SOFT, PLAYBACK_DEVICE_SOFT, QUAD_SOFT, REFRESH, SHORT_SOFT, SN3D_SOFT, SOFT_device_clock, SOFT_HRTF, SOFT_loopback, SOFT_loopback_bformat, SOFT_pause_device, STEREO_BASIC_SOFT, STEREO_HRTF_SOFT, STEREO_SOFT, STEREO_SOURCES, STEREO_UHJ_SOFT, SURROUND_5_1_SOFT, SURROUND_6_1_SOFT, SURROUND_7_1_SOFT, SYNC, TRUE, UNSIGNED_BYTE_SOFT, UNSIGNED_INT_SOFT, UNSIGNED_SHORT_SOFT, VERSION_0_1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte
captureCloseDevice
(@Nullable ALCdevice device) Closes the given capture device.captureOpenDevice
(@Nullable BytePtr devicename, int frequency, int format, int buffersize) Opens the named capture device with the given frequency, format, and buffer size.void
captureSamples
(@Nullable ALCdevice device, MemorySegment buffer, int samples) Reads samples from the device buffer.void
captureStart
(@Nullable ALCdevice device) Starts capturing samples into the device buffer.void
captureStop
(@Nullable ALCdevice device) Stops capturing samples.byte
closeDevice
(@Nullable ALCdevice device) Closes the given playback device.createContext
(@Nullable ALCdevice device, @Nullable IntPtr attrlist) Create and attach a context to the given device.void
destroyContext
(@Nullable ALCcontext context) Remove a context from its device and destroys it.void
devicePauseSOFT
(@Nullable ALCdevice device) void
deviceResumeSOFT
(@Nullable ALCdevice device) void
eventCallbackSOFT
(MemorySegment callback, MemorySegment userParam) byte
eventControlSOFT
(int count, @Nullable IntPtr events, byte enable) int
eventIsSupportedSOFT
(int eventType, int deviceType) getContextsDevice
(@Nullable ALCcontext context) Returns the device that a particular context is attached to.Returns the currently active context.int
getEnumValue
(@Nullable ALCdevice device, @Nullable BytePtr enumname) Retrieve the value of an enum.int
Obtain the most recent Device error.void
getInteger64vSOFT
(@Nullable ALCdevice device, int pname, int size, @Nullable LongPtr values) void
getIntegerv
(@Nullable ALCdevice device, int param, int size, @Nullable IntPtr values) Returns information about the device and the version of OpenAL.getProcAddress
(@Nullable ALCdevice device, @Nullable BytePtr funcname) Retrieve the address of a function.getProcAddress2
(@Nullable ALCdevice device, @Nullable BytePtr funcName) Returns information about the device, and error strings.getStringiSOFT
(@Nullable ALCdevice device, int paramName, int index) byte
isExtensionPresent
(@Nullable ALCdevice device, @Nullable BytePtr extname) Query for the presence of an extension on the device.byte
isRenderFormatSupportedSOFT
(@Nullable ALCdevice device, int freq, int channels, int type) loopbackOpenDeviceSOFT
(@Nullable BytePtr deviceName) byte
makeContextCurrent
(@Nullable ALCcontext context) Makes the given context the active process-wide context.openDevice
(@Nullable BytePtr devicename) Opens the named playback device.void
processContext
(@Nullable ALCcontext context) Resumes processing updates for the given context.void
renderSamplesSOFT
(@Nullable ALCdevice device, MemorySegment buffer, int samples) byte
reopenDeviceSOFT
(@Nullable ALCdevice device, @Nullable BytePtr deviceName, @Nullable IntPtr attribs) byte
resetDeviceSOFT
(@Nullable ALCdevice device, @Nullable IntPtr attribs) byte
setThreadContext
(@Nullable ALCcontext context) void
suspendContext
(@Nullable ALCcontext context) Suspends updates for the given context.
-
Field Details
-
SEGMENT$alcCreateContext
-
SEGMENT$alcMakeContextCurrent
-
SEGMENT$alcProcessContext
-
SEGMENT$alcSuspendContext
-
SEGMENT$alcDestroyContext
-
SEGMENT$alcGetCurrentContext
-
SEGMENT$alcGetContextsDevice
-
SEGMENT$alcOpenDevice
-
SEGMENT$alcCloseDevice
-
SEGMENT$alcGetError
-
SEGMENT$alcIsExtensionPresent
-
SEGMENT$alcGetProcAddress
-
SEGMENT$alcGetEnumValue
-
SEGMENT$alcGetString
-
SEGMENT$alcGetIntegerv
-
SEGMENT$alcCaptureOpenDevice
-
SEGMENT$alcCaptureCloseDevice
-
SEGMENT$alcCaptureStart
-
SEGMENT$alcCaptureStop
-
SEGMENT$alcCaptureSamples
-
SEGMENT$alcSetThreadContext
-
SEGMENT$alcGetThreadContext
-
SEGMENT$alcLoopbackOpenDeviceSOFT
-
SEGMENT$alcIsRenderFormatSupportedSOFT
-
SEGMENT$alcRenderSamplesSOFT
-
SEGMENT$alcDevicePauseSOFT
-
SEGMENT$alcDeviceResumeSOFT
-
SEGMENT$alcGetStringiSOFT
-
SEGMENT$alcResetDeviceSOFT
-
SEGMENT$alcGetInteger64vSOFT
-
SEGMENT$alcReopenDeviceSOFT
-
SEGMENT$alcEventIsSupportedSOFT
-
SEGMENT$alcEventControlSOFT
-
SEGMENT$alcEventCallbackSOFT
-
SEGMENT$alcGetProcAddress2
-
HANDLE$alcCreateContext
-
HANDLE$alcMakeContextCurrent
-
HANDLE$alcProcessContext
-
HANDLE$alcSuspendContext
-
HANDLE$alcDestroyContext
-
HANDLE$alcGetCurrentContext
-
HANDLE$alcGetContextsDevice
-
HANDLE$alcOpenDevice
-
HANDLE$alcCloseDevice
-
HANDLE$alcGetError
-
HANDLE$alcIsExtensionPresent
-
HANDLE$alcGetProcAddress
-
HANDLE$alcGetEnumValue
-
HANDLE$alcGetString
-
HANDLE$alcGetIntegerv
-
HANDLE$alcCaptureOpenDevice
-
HANDLE$alcCaptureCloseDevice
-
HANDLE$alcCaptureStart
-
HANDLE$alcCaptureStop
-
HANDLE$alcCaptureSamples
-
HANDLE$alcSetThreadContext
-
HANDLE$alcGetThreadContext
-
HANDLE$alcLoopbackOpenDeviceSOFT
-
HANDLE$alcIsRenderFormatSupportedSOFT
-
HANDLE$alcRenderSamplesSOFT
-
HANDLE$alcDevicePauseSOFT
-
HANDLE$alcDeviceResumeSOFT
-
HANDLE$alcGetStringiSOFT
-
HANDLE$alcResetDeviceSOFT
-
HANDLE$alcGetInteger64vSOFT
-
HANDLE$alcReopenDeviceSOFT
-
HANDLE$alcEventIsSupportedSOFT
-
HANDLE$alcEventControlSOFT
-
HANDLE$alcEventCallbackSOFT
-
HANDLE$alcGetProcAddress2
-
-
Constructor Details
-
ALC
-
-
Method Details
-
createContext
public ALCcontext createContext(@Nullable @Nullable ALCdevice device, @Nullable @Pointer(comment="ALCint") @Nullable IntPtr attrlist) Create and attach a context to the given device. -
makeContextCurrent
Makes the given context the active process-wide context. Passing NULL clears the active context. -
processContext
Resumes processing updates for the given context. -
suspendContext
Suspends updates for the given context. -
destroyContext
Remove a context from its device and destroys it. -
getCurrentContext
Returns the currently active context. -
getContextsDevice
Returns the device that a particular context is attached to. -
openDevice
-
closeDevice
Closes the given playback device. -
getError
Obtain the most recent Device error. -
isExtensionPresent
@NativeType("ALCboolean") public byte isExtensionPresent(@Nullable @Nullable ALCdevice device, @Nullable @Pointer(comment="ALCchar") @Nullable BytePtr extname) Query for the presence of an extension on the device. Pass a NULL device to query a device-inspecific extension. -
getProcAddress
-
getEnumValue
@NativeType("ALCenum") public int getEnumValue(@Nullable @Nullable ALCdevice device, @Nullable @Pointer(comment="ALCchar") @Nullable BytePtr enumname) Retrieve the value of an enum. Given a non-NULL device, the returned value may be device-specific. -
getString
@Pointer(comment="ALCchar") public BytePtr getString(@Nullable @Nullable ALCdevice device, @NativeType("ALCenum") int param) Returns information about the device, and error strings. -
getIntegerv
public void getIntegerv(@Nullable @Nullable ALCdevice device, @NativeType("ALCenum") int param, @NativeType("ALCsizei") int size, @Nullable @Pointer(comment="ALCint") @Nullable IntPtr values) Returns information about the device and the version of OpenAL. -
captureOpenDevice
public ALCdevice captureOpenDevice(@Nullable @Pointer(comment="ALCchar") @Nullable BytePtr devicename, @NativeType("ALCuint") int frequency, @NativeType("ALCenum") int format, @NativeType("ALCsizei") int buffersize) Opens the named capture device with the given frequency, format, and buffer size. -
captureCloseDevice
Closes the given capture device. -
captureStart
Starts capturing samples into the device buffer. -
captureStop
Stops capturing samples. Samples in the device buffer remain available. -
captureSamples
public void captureSamples(@Nullable @Nullable ALCdevice device, @Pointer(comment="void*") MemorySegment buffer, @NativeType("ALCsizei") int samples) Reads samples from the device buffer. -
setThreadContext
-
getThreadContext
-
loopbackOpenDeviceSOFT
-
isRenderFormatSupportedSOFT
@NativeType("ALCboolean") public byte isRenderFormatSupportedSOFT(@Nullable @Nullable ALCdevice device, @NativeType("ALCsizei") int freq, @NativeType("ALCenum") int channels, @NativeType("ALCenum") int type) -
renderSamplesSOFT
public void renderSamplesSOFT(@Nullable @Nullable ALCdevice device, @Pointer(comment="void*") MemorySegment buffer, @NativeType("ALCsizei") int samples) -
devicePauseSOFT
-
deviceResumeSOFT
-
getStringiSOFT
@Pointer(comment="ALCchar") public BytePtr getStringiSOFT(@Nullable @Nullable ALCdevice device, @NativeType("ALCenum") int paramName, @NativeType("ALCsizei") int index) -
resetDeviceSOFT
@NativeType("ALCboolean") public byte resetDeviceSOFT(@Nullable @Nullable ALCdevice device, @Nullable @Pointer(comment="ALCint") @Nullable IntPtr attribs) -
getInteger64vSOFT
public void getInteger64vSOFT(@Nullable @Nullable ALCdevice device, @NativeType("ALCenum") int pname, @NativeType("ALsizei") int size, @Nullable @Pointer(comment="ALCint64SOFT") @Nullable LongPtr values) -
reopenDeviceSOFT
-
eventIsSupportedSOFT
@NativeType("ALCenum") public int eventIsSupportedSOFT(@NativeType("ALCenum") int eventType, @NativeType("ALCenum") int deviceType) -
eventControlSOFT
@NativeType("ALCboolean") public byte eventControlSOFT(@NativeType("ALCsizei") int count, @Nullable @Pointer(comment="ALCenum") @Nullable IntPtr events, @NativeType("ALCboolean") byte enable) -
eventCallbackSOFT
public void eventCallbackSOFT(@Pointer(comment="ALCEVENTPROCTYPESOFT") MemorySegment callback, @Pointer(comment="void*") MemorySegment userParam) -
getProcAddress2
-