org.lwjgl.openal.SOFTSystemEventProcI Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lwjgl-openal Show documentation
Show all versions of lwjgl-openal Show documentation
A cross-platform 3D audio API appropriate for use with gaming applications and many other types of audio applications.
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openal;
import org.lwjgl.system.*;
import org.lwjgl.system.libffi.*;
import static org.lwjgl.system.APIUtil.*;
import static org.lwjgl.system.MemoryUtil.*;
import static org.lwjgl.system.libffi.LibFFI.*;
/**
* Type
*
*
* void (*{@link #invoke}) (
* ALCenum eventType,
* ALCenum deviceType,
* ALCdevice *device,
* ALCsizei length,
* ALCchar const *message,
* ALCvoid *userParam
* )
*/
@FunctionalInterface
@NativeType("ALCEVENTPROCTYPESOFT")
public interface SOFTSystemEventProcI extends CallbackI {
FFICIF CIF = apiCreateCIF(
FFI_DEFAULT_ABI,
ffi_type_void,
ffi_type_sint32, ffi_type_sint32, ffi_type_pointer, ffi_type_sint32, ffi_type_pointer, ffi_type_pointer
);
@Override
default FFICIF getCallInterface() { return CIF; }
@Override
default void callback(long ret, long args) {
invoke(
memGetInt(memGetAddress(args)),
memGetInt(memGetAddress(args + POINTER_SIZE)),
memGetAddress(memGetAddress(args + 2 * POINTER_SIZE)),
memGetInt(memGetAddress(args + 3 * POINTER_SIZE)),
memGetAddress(memGetAddress(args + 4 * POINTER_SIZE)),
memGetAddress(memGetAddress(args + 5 * POINTER_SIZE))
);
}
void invoke(@NativeType("ALCenum") int eventType, @NativeType("ALCenum") int deviceType, @NativeType("ALCdevice *") long device, @NativeType("ALCsizei") int length, @NativeType("ALCchar const *") long message, @NativeType("ALCvoid *") long userParam);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy