Package org.lwjgl.ovr

Class OVRAudioChannelData

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer

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

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

    Member documentation

    • Samples – samples stored as floats [-1.0f, 1.0f]
    • SamplesCount – number of samples
    • Frequency – frequency (e.g. 44100)


     struct ovrAudioChannelData {
         float const * Samples;
         int SamplesCount;
         int Frequency;
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.

        The struct member offsets.
    • Constructor Detail

      • OVRAudioChannelData

        public OVRAudioChannelData​(java.nio.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.