Enum Class AudioPackFlags

java.lang.Object
java.lang.Enum<AudioPackFlags>
org.freedesktop.gstreamer.audio.AudioPackFlags
All Implemented Interfaces:
Serializable, Comparable<AudioPackFlags>, Constable, Enumeration

@Generated("org.javagi.JavaGI") public enum AudioPackFlags extends Enum<AudioPackFlags> implements Enumeration
The different flags that can be used when packing and unpacking.
  • Enum Constant Details

    • NONE

      public static final AudioPackFlags NONE
      No flag
    • TRUNCATE_RANGE

      public static final AudioPackFlags TRUNCATE_RANGE
      When the source has a smaller depth than the target format, set the least significant bits of the target to 0. This is likely slightly faster but less accurate. When this flag is not specified, the most significant bits of the source are duplicated in the least significant bits of the destination.
  • Method Details

    • values

      public static AudioPackFlags[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static AudioPackFlags valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()
      Get the numeric value of this enum
      Specified by:
      getValue in interface Enumeration
      Returns:
      the enum value
    • of

      public static Set<AudioPackFlags> of(int flags)
      Create a new EnumSet<AudioPackFlags> for the provided bitfield
      Parameters:
      flags - the AudioPackFlags bitfield
      Returns:
      the EnumSet for the provided bitfield
    • of

      public static Set<AudioPackFlags> of(MemorySegment address)
      Create a new EnumSet<AudioPackFlags> for the bitfield in the provided memory address.
      Parameters:
      address - the memory address holding a bitfield value
      Returns:
      the EnumSet for the bitfield in the provided memory address
    • getType

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