org.lwjgl.util.opus.OPTellFuncI Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lwjgl-opus Show documentation
Show all versions of lwjgl-opus Show documentation
A totally open, royalty-free, highly versatile audio codec.
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.util.opus;
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.*;
/**
* Instances of this interface may be set to {@link OpusFileCallbacks}.
*
* Type
*
*
* long long (*{@link #invoke}) (
* void *_stream
* )
*/
@FunctionalInterface
@NativeType("op_tell_func")
public interface OPTellFuncI extends CallbackI {
FFICIF CIF = apiCreateCIF(
FFI_DEFAULT_ABI,
ffi_type_sint64,
ffi_type_pointer
);
@Override
default FFICIF getCallInterface() { return CIF; }
@Override
default void callback(long ret, long args) {
long __result = invoke(
memGetAddress(memGetAddress(args))
);
apiClosureRetL(ret, __result);
}
/**
* Obtains the current value of the position indicator for {@code _stream}.
*
* @return the current position indicator
*/
@NativeType("long long") long invoke(@NativeType("void *") long _stream);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy