Class AudioDecoder.Builder<B extends AudioDecoder.Builder<B>>

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

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

      public B setMaxErrors(int maxErrors)
      Maximum number of tolerated consecutive decode errors. See gst_audio_decoder_set_max_errors() for more details.
      Parameters:
      maxErrors - the value for the max-errors property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      1.18
    • setMinLatency

      public B setMinLatency(long minLatency)
    • setPlc

      public B setPlc(boolean plc)
    • setTolerance

      public B setTolerance(long tolerance)