Package org.freedesktop.gstreamer.audio
Class AudioAggregator.Builder<B extends AudioAggregator.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gobject.InitiallyUnowned.Builder<B>
org.freedesktop.gstreamer.gst.GstObject.Builder<B>
org.freedesktop.gstreamer.gst.Element.Builder<B>
org.freedesktop.gstreamer.base.Aggregator.Builder<B>
org.freedesktop.gstreamer.audio.AudioAggregator.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
AudioAggregator
public static class AudioAggregator.Builder<B extends AudioAggregator.Builder<B>>
extends Aggregator.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theAudioAggregator
object.setAlignmentThreshold
(long alignmentThreshold) setDiscontWait
(long discontWait) setForceLive
(boolean forceLive) Causes the element to aggregate on a timeout even when no live source is connected to its sinks.setIgnoreInactivePads
(boolean ignoreInactivePads) Don't wait for inactive pads when live.setOutputBufferDuration
(long outputBufferDuration) Methods inherited from class org.freedesktop.gstreamer.base.Aggregator.Builder
onSamplesSelected, setEmitSignals, setLatency, setMinUpstreamLatency, setStartTime, setStartTimeSelection
Methods inherited from class org.freedesktop.gstreamer.gst.Element.Builder
onNoMorePads, onPadAdded, onPadRemoved
Methods inherited from class org.freedesktop.gstreamer.gst.GstObject.Builder
onDeepNotify, setName, setParent
Methods inherited from class org.gnome.gobject.GObject.Builder
onNotify
Methods inherited from class io.github.jwharm.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilder
object.
-
-
Method Details
-
build
Finish building theAudioAggregator
object. This will callGObject.withProperties(org.gnome.glib.Type, java.lang.String[], org.gnome.gobject.Value[])
to create a new GObject instance, which is then cast toAudioAggregator
.- Overrides:
build
in classAggregator.Builder<B extends AudioAggregator.Builder<B>>
- Returns:
- a new instance of
AudioAggregator
with the properties that were set in the Builder object.
-
setAlignmentThreshold
-
setDiscontWait
-
setForceLive
Causes the element to aggregate on a timeout even when no live source is connected to its sinks. SeeGstAggregator
:min-upstream-latency for a companion property: in the vast majority of cases where you plan to plug in live sources with a non-zero latency, you should set it to a non-zero value.- Parameters:
forceLive
- the value for theforce-live
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setIgnoreInactivePads
Don't wait for inactive pads when live. An inactive pad is a pad that hasn't yet received a buffer, but that has been waited on at least once.The purpose of this property is to avoid aggregating on timeout when new pads are requested in advance of receiving data flow, for example the user may decide to connect it later, but wants to configure it already.
- Parameters:
ignoreInactivePads
- the value for theignore-inactive-pads
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setOutputBufferDuration
-