Class EOS_RTCAudio_AudioBuffer

java.lang.Object
com.sun.jna.Structure
host.anzo.eossdk.eos.sdk.rtcaudio.EOS_RTCAudio_AudioBuffer
Direct Known Subclasses:
EOS_RTCAudio_AudioBuffer.ByReference, EOS_RTCAudio_AudioBuffer.ByValue

@FieldOrder({"ApiVersion","Frames","FramesCount","SampleRate","Channels"}) public class EOS_RTCAudio_AudioBuffer extends com.sun.jna.Structure
This struct is used to represent an audio buffer received in callbacks from EOS_RTCAudio_AddNotifyAudioBeforeSend and EOS_RTCAudio_AddNotifyAudioBeforeRender.
Since:
11/2/2023
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
    static class 
     

    Nested classes/interfaces inherited from class com.sun.jna.Structure

    com.sun.jna.Structure.FieldOrder, com.sun.jna.Structure.StructField
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
    API Version: Set this to EOS_RTCAUDIO_AUDIOBUFFER_API_LATEST.
    int
    Number of channels for the samples in the Frames buffer.
    static final int
    The most recent version of the EOS_RTCAudio_AudioBuffer API
    Pointer to the data with the interleaved audio frames in signed 16 bits format.
    int
    Number of frames available in the Frames buffer.
    This is the number of frames in a channel, not the total number of frames in the buffer!
    int
    Sample rate for the samples in the Frames buffer.

    Fields inherited from class com.sun.jna.Structure

    ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    EOS_RTCAudio_AudioBuffer(com.sun.jna.Pointer peer)
     
  • Method Summary

    Methods inherited from class com.sun.jna.Structure

    allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFieldOrder, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • EOS_RTCAUDIO_AUDIOBUFFER_API_LATEST

      public static final int EOS_RTCAUDIO_AUDIOBUFFER_API_LATEST
      The most recent version of the EOS_RTCAudio_AudioBuffer API
      See Also:
    • ApiVersion

      public int ApiVersion
      API Version: Set this to EOS_RTCAUDIO_AUDIOBUFFER_API_LATEST.
    • Frames

      public ShortBuffer Frames
      Pointer to the data with the interleaved audio frames in signed 16 bits format.
    • FramesCount

      public int FramesCount
      Number of frames available in the Frames buffer.
      This is the number of frames in a channel, not the total number of frames in the buffer!
    • SampleRate

      public int SampleRate
      Sample rate for the samples in the Frames buffer.
    • Channels

      public int Channels
      Number of channels for the samples in the Frames buffer.
  • Constructor Details

    • EOS_RTCAudio_AudioBuffer

      public EOS_RTCAudio_AudioBuffer()
    • EOS_RTCAudio_AudioBuffer

      public EOS_RTCAudio_AudioBuffer(com.sun.jna.Pointer peer)