Class AudioClippingMeta

java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.gstreamer.audio.AudioClippingMeta
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class AudioClippingMeta extends ProxyInstance

Extra buffer metadata describing how much audio has to be clipped from the start or end of a buffer. This is used for compressed formats, where the first frame usually has some additional samples due to encoder and decoder delays, and the last frame usually has some additional samples to be able to fill the complete last frame.

This is used to ensure that decoded data in the end has the same amount of samples, and multiply decoded streams can be gaplessly concatenated.

Note: If clipping of the start is done by adjusting the segment, this meta has to be dropped from buffers as otherwise clipping could happen twice.

Since:
1.8
  • Constructor Details

    • AudioClippingMeta

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

      public AudioClippingMeta(Arena arena)
      Allocate a new AudioClippingMeta.
      Parameters:
      arena - to control the memory allocation scope
    • AudioClippingMeta

      public AudioClippingMeta()
      Allocate a new AudioClippingMeta. The memory is allocated with Arena.ofAuto().
    • AudioClippingMeta

      public AudioClippingMeta(Meta meta, Format format, long start, long end, Arena arena)
      Allocate a new AudioClippingMeta with the fields set to the provided values.
      Parameters:
      meta - value for the field meta
      format - value for the field format
      start - value for the field start
      end - value for the field end
      arena - to control the memory allocation scope
    • AudioClippingMeta

      public AudioClippingMeta(Meta meta, Format format, long start, long end)
      Allocate a new AudioClippingMeta with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      meta - value for the field meta
      format - value for the field format
      start - value for the field start
      end - value for the field end
  • Method Details

    • getMemoryLayout

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

      public @Nullable Meta readMeta()
      Read the value of the field meta.
      Returns:
      The value of the field meta
    • writeMeta

      public void writeMeta(@Nullable Meta meta)
      Write a value in the field meta.
      Parameters:
      meta - The new value for the field meta
    • readFormat

      public Format readFormat()
      Read the value of the field format.
      Returns:
      The value of the field format
    • writeFormat

      public void writeFormat(Format format)
      Write a value in the field format.
      Parameters:
      format - The new value for the field format
    • readStart

      public long readStart()
      Read the value of the field start.
      Returns:
      The value of the field start
    • writeStart

      public void writeStart(long start)
      Write a value in the field start.
      Parameters:
      start - The new value for the field start
    • readEnd

      public long readEnd()
      Read the value of the field end.
      Returns:
      The value of the field end
    • writeEnd

      public void writeEnd(long end)
      Write a value in the field end.
      Parameters:
      end - The new value for the field end
    • getInfo

      public static MetaInfo getInfo()