Class VREventAudioVolumeControl

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VREventAudioVolumeControl>
org.lwjgl.openvr.VREventAudioVolumeControl
All Implemented Interfaces:
org.lwjgl.system.Pointer

public class VREventAudioVolumeControl extends org.lwjgl.system.Struct<VREventAudioVolumeControl>

Layout


 struct VREvent_AudioVolumeControl_t {
     float fVolumeLevel;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • FVOLUMELEVEL

      public static final int FVOLUMELEVEL
      The struct member offsets.
  • Constructor Details

    • VREventAudioVolumeControl

      public VREventAudioVolumeControl(ByteBuffer container)
      Creates a VREventAudioVolumeControl instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

      The created instance holds a strong reference to the container object.

  • Method Details

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<VREventAudioVolumeControl>
    • fVolumeLevel

      public float fVolumeLevel()
      Returns:
      the value of the fVolumeLevel field.
    • create

      public static VREventAudioVolumeControl create(long address)
      Returns a new VREventAudioVolumeControl instance for the specified memory address.
    • createSafe

      public static @Nullable VREventAudioVolumeControl createSafe(long address)
      Like create, but returns null if address is NULL.
    • create

      public static VREventAudioVolumeControl.Buffer create(long address, int capacity)
      Create a VREventAudioVolumeControl.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable VREventAudioVolumeControl.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • nfVolumeLevel

      public static float nfVolumeLevel(long struct)
      Unsafe version of fVolumeLevel().