Package org.freedesktop.gstreamer.gst
Interface Bin.DoLatencyCallback
- All Superinterfaces:
FunctionPointer
- Enclosing class:
Bin
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface declaration of the
DoLatencyCallback callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanrun()Will be emitted when the bin needs to perform latency calculations.default MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment)method.default intupcall(MemorySegment sourceBin) Theupcallmethod is called from native code.
-
Method Details
-
run
boolean run()Will be emitted when the bin needs to perform latency calculations. This signal is only emitted for toplevel bins or whenGstBin:async-handling is enabled.Only one signal handler is invoked. If no signals are connected, the default handler is invoked, which will query and distribute the lowest possible latency to all sinks.
Connect to this signal if the default latency calculations are not sufficient, like when you need different latencies for different sinks in the same pipeline.
-
upcall
Theupcallmethod is called from native code. The parameters are marshaled andrun()is executed. -
toCallback
Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment)method.- Specified by:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-