Package org.freedesktop.gstreamer.audio
Class AudioBaseSink.Builder<B extends AudioBaseSink.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.BaseSink.Builder<B>
org.freedesktop.gstreamer.audio.AudioBaseSink.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Direct Known Subclasses:
AudioSink.Builder
- Enclosing class:
AudioBaseSink
public static class AudioBaseSink.Builder<B extends AudioBaseSink.Builder<B>>
extends BaseSink.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theAudioBaseSink
object.setAlignmentThreshold
(long alignmentThreshold) setBufferTime
(long bufferTime) setCanActivatePull
(boolean canActivatePull) setDiscontWait
(long discontWait) A window of time in nanoseconds to wait before creating a discontinuity as a result of breaching the drift-tolerance.setDriftTolerance
(long driftTolerance) Controls the amount of time in microseconds that clocks are allowed to drift before resynchronisation happens.setLatencyTime
(long latencyTime) setProvideClock
(boolean provideClock) setSlaveMethod
(AudioBaseSinkSlaveMethod slaveMethod) Methods inherited from class org.freedesktop.gstreamer.base.BaseSink.Builder
setAsync, setBlocksize, setEnableLastSample, setMaxBitrate, setMaxLateness, setProcessingDeadline, setQos, setRenderDelay, setSync, setThrottleTime, setTsOffset
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 theAudioBaseSink
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 toAudioBaseSink
.- Overrides:
build
in classBaseSink.Builder<B extends AudioBaseSink.Builder<B>>
- Returns:
- a new instance of
AudioBaseSink
with the properties that were set in the Builder object.
-
setAlignmentThreshold
-
setBufferTime
-
setCanActivatePull
-
setDiscontWait
A window of time in nanoseconds to wait before creating a discontinuity as a result of breaching the drift-tolerance.- Parameters:
discontWait
- the value for thediscont-wait
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setDriftTolerance
Controls the amount of time in microseconds that clocks are allowed to drift before resynchronisation happens.- Parameters:
driftTolerance
- the value for thedrift-tolerance
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setLatencyTime
-
setProvideClock
-
setSlaveMethod
-