Class AudioMeta

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

@Generated("org.javagi.JavaGI") public class AudioMeta extends ProxyInstance
GstAudioDownmixMeta defines an audio downmix matrix to be send along with audio buffers. These functions in this module help to create and attach the meta as well as extracting it.
Since:
1.16
  • Constructor Details

    • AudioMeta

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

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

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

      public AudioMeta(Meta meta, AudioInfo info, long samples, MemorySegment offsets, long[] privOffsetsArr, Arena arena)
      Allocate a new AudioMeta with the fields set to the provided values.
      Parameters:
      meta - value for the field meta
      info - value for the field info
      samples - value for the field samples
      offsets - value for the field offsets
      privOffsetsArr - value for the field privOffsetsArr
      arena - to control the memory allocation scope
    • AudioMeta

      public AudioMeta(Meta meta, AudioInfo info, long samples, MemorySegment offsets, long[] privOffsetsArr)
      Allocate a new AudioMeta with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      meta - value for the field meta
      info - value for the field info
      samples - value for the field samples
      offsets - value for the field offsets
      privOffsetsArr - value for the field privOffsetsArr
  • 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
    • readInfo

      public @Nullable AudioInfo readInfo()
      Read the value of the field info.
      Returns:
      The value of the field info
    • writeInfo

      public void writeInfo(@Nullable AudioInfo info)
      Write a value in the field info.
      Parameters:
      info - The new value for the field info
    • readSamples

      public long readSamples()
      Read the value of the field samples.
      Returns:
      The value of the field samples
    • writeSamples

      public void writeSamples(long samples)
      Write a value in the field samples.
      Parameters:
      samples - The new value for the field samples
    • readOffsets

      public MemorySegment readOffsets()
      Read the value of the field offsets.
      Returns:
      The value of the field offsets
    • writeOffsets

      public void writeOffsets(MemorySegment offsets)
      Write a value in the field offsets.
      Parameters:
      offsets - The new value for the field offsets
    • readPrivOffsetsArr

      public @Nullable long @Nullable [] readPrivOffsetsArr()
      Read the value of the field priv_offsets_arr.
      Returns:
      The value of the field priv_offsets_arr
    • writePrivOffsetsArr

      public void writePrivOffsetsArr(@Nullable long @Nullable [] privOffsetsArr, Arena _arena)
      Write a value in the field priv_offsets_arr.
      Parameters:
      privOffsetsArr - The new value for the field priv_offsets_arr
    • getInfo

      public static MetaInfo getInfo()