Interface AudioClockGetTimeFunc
- All Superinterfaces:
FunctionPointer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
@Generated("org.javagi.JavaGI")
public interface AudioClockGetTimeFunc
extends FunctionPointer
Functional interface declaration of the AudioClockGetTimeFunc callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionThis function will be called whenever the current clock time needs to be calculated.default MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(MemorySegment, MemorySegment)method.default longupcall(MemorySegment clock, MemorySegment userData) Theupcallmethod is called from native code.
-
Method Details
-
run
This function will be called whenever the current clock time needs to be calculated. If this function returnsGST_CLOCK_TIME_NONE, the last reported time will be returned by the clock.- Parameters:
clock- theGstAudioClock- Returns:
- the current time or
GST_CLOCK_TIME_NONEif the previous time should be used.
-
upcall
Theupcallmethod is called from native code. The parameters are marshaled andrun(Clock)is executed. -
toCallback
Creates a native function pointer to theupcall(MemorySegment, MemorySegment)method.- Specified by:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-