Class AudioBaseSink.Builder<B extends 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 Details

    • Builder

      protected Builder()
      Default constructor for a Builder object.
  • Method Details

    • build

      public AudioBaseSink build()
      Finish building the AudioBaseSink object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to AudioBaseSink.
      Overrides:
      build in class BaseSink.Builder<B extends AudioBaseSink.Builder<B>>
      Returns:
      a new instance of AudioBaseSink with the properties that were set in the Builder object.
    • setAlignmentThreshold

      public B setAlignmentThreshold(long alignmentThreshold)
    • setBufferTime

      public B setBufferTime(long bufferTime)
    • setCanActivatePull

      public B setCanActivatePull(boolean canActivatePull)
    • setDiscontWait

      public B setDiscontWait(long discontWait)
      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 the discont-wait property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setDriftTolerance

      public B setDriftTolerance(long driftTolerance)
      Controls the amount of time in microseconds that clocks are allowed to drift before resynchronisation happens.
      Parameters:
      driftTolerance - the value for the drift-tolerance property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setLatencyTime

      public B setLatencyTime(long latencyTime)
    • setProvideClock

      public B setProvideClock(boolean provideClock)
    • setSlaveMethod

      public B setSlaveMethod(AudioBaseSinkSlaveMethod slaveMethod)