Package org.lwjgl.ovr

Class OVRAudioChannelData

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<OVRAudioChannelData>
org.lwjgl.ovr.OVRAudioChannelData
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class OVRAudioChannelData extends org.lwjgl.system.Struct<OVRAudioChannelData> implements org.lwjgl.system.NativeResource
Store audio PCM data (as 32b float samples) for an audio channel.

Note: needs to be released with _ReleaseAudioChannelData to avoid memory leak.

Layout


 struct ovrAudioChannelData {
     float const * Samples();
     int SamplesCount();
     int Frequency();
 }
  • Field Details

    • SIZEOF

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

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

      public static final int SAMPLES
      The struct member offsets.
    • SAMPLESCOUNT

      public static final int SAMPLESCOUNT
      The struct member offsets.
    • FREQUENCY

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

    • OVRAudioChannelData

      public OVRAudioChannelData(ByteBuffer container)
      Creates a OVRAudioChannelData 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