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)

    Layout

    
     struct ovrAudioChannelData {
         float const * Samples;
         int SamplesCount;
         int Frequency;
     }