Class AudioEncoder.Builder<B extends AudioEncoder.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Enclosing class:
AudioEncoder

public static class AudioEncoder.Builder<B extends AudioEncoder.Builder<B>> extends Element.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 AudioEncoder build()
      Finish building the AudioEncoder object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to AudioEncoder.
      Overrides:
      build in class Element.Builder<B extends AudioEncoder.Builder<B>>
      Returns:
      a new instance of AudioEncoder with the properties that were set in the Builder object.
    • setHardResync

      public B setHardResync(boolean hardResync)
    • setPerfectTimestamp

      public B setPerfectTimestamp(boolean perfectTimestamp)
    • setTolerance

      public B setTolerance(long tolerance)