Class AudioVisualizer

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

@Generated("org.javagi.JavaGI") public abstract class AudioVisualizer extends Element

A baseclass for scopes (visualizers). It takes care of re-fitting the audio-rate to video-rate and handles renegotiation (downstream video size changes).

It also provides several background shading effects. These effects are applied to a previous picture before the render() implementation can draw a new frame.

  • Constructor Details

    • AudioVisualizer

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

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

    • getType

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

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

      protected AudioVisualizer 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 Element
      Returns:
      the instance as if it were its parent type
    • decideAllocation

      protected boolean decideAllocation(Query query)
    • render

      protected boolean render(Buffer audio, VideoFrame video)
    • setup

      protected boolean setup()