Class AudioLevelMeta

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

@Generated("org.javagi.JavaGI") public class AudioLevelMeta extends ProxyInstance
Meta containing Audio Level Indication: https://tools.ietf.org/html/rfc6464
Since:
1.20
  • Constructor Details

    • AudioLevelMeta

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

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

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

      public AudioLevelMeta(Meta meta, byte level, boolean voiceActivity, Arena arena)
      Allocate a new AudioLevelMeta with the fields set to the provided values.
      Parameters:
      meta - value for the field meta
      level - value for the field level
      voiceActivity - value for the field voiceActivity
      arena - to control the memory allocation scope
    • AudioLevelMeta

      public AudioLevelMeta(Meta meta, byte level, boolean voiceActivity)
      Allocate a new AudioLevelMeta with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      meta - value for the field meta
      level - value for the field level
      voiceActivity - value for the field voiceActivity
  • 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
    • readLevel

      public byte readLevel()
      Read the value of the field level.
      Returns:
      The value of the field level
    • writeLevel

      public void writeLevel(byte level)
      Write a value in the field level.
      Parameters:
      level - The new value for the field level
    • readVoiceActivity

      public boolean readVoiceActivity()
      Read the value of the field voice_activity.
      Returns:
      The value of the field voice_activity
    • writeVoiceActivity

      public void writeVoiceActivity(boolean voiceActivity)
      Write a value in the field voice_activity.
      Parameters:
      voiceActivity - The new value for the field voice_activity
    • getInfo

      public static MetaInfo getInfo()
      Return the GstMetaInfo associated with GstAudioLevelMeta.
      Returns:
      a GstMetaInfo
      Since:
      1.20