Class AudioFilter

All Implemented Interfaces:
Proxy
Direct Known Subclasses:
AudioFilter.AudioFilter$Impl

@Generated("org.javagi.JavaGI") public abstract class AudioFilter extends BaseTransform

GstAudioFilter is a GstBaseTransform-derived base class for simple audio filters, ie. those that output the same format that they get as input.

GstAudioFilter will parse the input format for you (with error checking) before calling your setup function. Also, elements deriving from GstAudioFilter may use gst_audio_filter_class_add_pad_templates() from their class_init function to easily configure the set of caps/formats that the element is able to handle.

Derived classes should override the GstAudioFilterClass.setup() and GstBaseTransformClass.transform_ip() and/or GstBaseTransformClass.transform() virtual functions in their class_init function.

  • Constructor Details

    • AudioFilter

      public AudioFilter(MemorySegment address)
      Create a AudioFilter instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • AudioFilter

      public AudioFilter()
      Create a new AudioFilter.
  • Method Details

    • getType

      public static @Nullable Type getType()
      Get the GType of the AudioFilter class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • asParent

      protected AudioFilter asParent()
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class BaseTransform
      Returns:
      the instance as if it were its parent type
    • setup

      protected boolean setup(AudioInfo info)
      virtual function called whenever the format changes