Package org.freedesktop.gstreamer.audio
Class AudioAggregator.Builder<B extends AudioAggregator.Builder<B>>
java.lang.Object
org.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theAudioAggregatorobject.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, setStartTimeSelectionMethods inherited from class org.freedesktop.gstreamer.gst.Element.Builder
onNoMorePads, onPadAdded, onPadRemovedMethods inherited from class org.freedesktop.gstreamer.gst.GstObject.Builder
onDeepNotify, setName, setParentMethods inherited from class org.gnome.gobject.GObject.Builder
onNotifyMethods inherited from class org.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilderobject.
-
-
Method Details
-
build
Finish building theAudioAggregatorobject. 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:
buildin classAggregator.Builder<B extends AudioAggregator.Builder<B>>- Returns:
- a new instance of
AudioAggregatorwith 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-liveproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.22
-
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-padsproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.20
-
setOutputBufferDuration
-