Class FMOD_ADVANCEDSETTINGS

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class FMOD_ADVANCEDSETTINGS extends Struct<FMOD_ADVANCEDSETTINGS> implements NativeResource

 struct FMOD_ADVANCEDSETTINGS {
     int cbSize;
     int maxMPEGCodecs;
     int maxADPCMCodecs;
     int maxXMACodecs;
     int maxVorbisCodecs;
     int maxAT9Codecs;
     int maxFADPCMCodecs;
     int maxOpusCodecs;
     int ASIONumChannels;
     char ** ASIOChannelList;
     FMOD_SPEAKER * ASIOSpeakerList;
     float vol0virtualvol;
     unsigned int defaultDecodeBufferSize;
     unsigned short profilePort;
     unsigned int geometryMaxFadeTime;
     float distanceFilterCenterFreq;
     int reverb3Dinstance;
     int DSPBufferPoolSize;
     FMOD_DSP_RESAMPLER resamplerMethod;
     unsigned int randomSeed;
     int maxConvolutionThreads;
     int maxSpatialObjects;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int CBSIZE
      The struct member offsets.
    • MAXMPEGCODECS

      public static final int MAXMPEGCODECS
      The struct member offsets.
    • MAXADPCMCODECS

      public static final int MAXADPCMCODECS
      The struct member offsets.
    • MAXXMACODECS

      public static final int MAXXMACODECS
      The struct member offsets.
    • MAXVORBISCODECS

      public static final int MAXVORBISCODECS
      The struct member offsets.
    • MAXAT9CODECS

      public static final int MAXAT9CODECS
      The struct member offsets.
    • MAXFADPCMCODECS

      public static final int MAXFADPCMCODECS
      The struct member offsets.
    • MAXOPUSCODECS

      public static final int MAXOPUSCODECS
      The struct member offsets.
    • ASIONUMCHANNELS

      public static final int ASIONUMCHANNELS
      The struct member offsets.
    • ASIOCHANNELLIST

      public static final int ASIOCHANNELLIST
      The struct member offsets.
    • ASIOSPEAKERLIST

      public static final int ASIOSPEAKERLIST
      The struct member offsets.
    • VOL0VIRTUALVOL

      public static final int VOL0VIRTUALVOL
      The struct member offsets.
    • DEFAULTDECODEBUFFERSIZE

      public static final int DEFAULTDECODEBUFFERSIZE
      The struct member offsets.
    • PROFILEPORT

      public static final int PROFILEPORT
      The struct member offsets.
    • GEOMETRYMAXFADETIME

      public static final int GEOMETRYMAXFADETIME
      The struct member offsets.
    • DISTANCEFILTERCENTERFREQ

      public static final int DISTANCEFILTERCENTERFREQ
      The struct member offsets.
    • REVERB3DINSTANCE

      public static final int REVERB3DINSTANCE
      The struct member offsets.
    • DSPBUFFERPOOLSIZE

      public static final int DSPBUFFERPOOLSIZE
      The struct member offsets.
    • RESAMPLERMETHOD

      public static final int RESAMPLERMETHOD
      The struct member offsets.
    • RANDOMSEED

      public static final int RANDOMSEED
      The struct member offsets.
    • MAXCONVOLUTIONTHREADS

      public static final int MAXCONVOLUTIONTHREADS
      The struct member offsets.
    • MAXSPATIALOBJECTS

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

    • FMOD_ADVANCEDSETTINGS

      public FMOD_ADVANCEDSETTINGS(ByteBuffer container)
      Creates a FMOD_ADVANCEDSETTINGS 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()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<FMOD_ADVANCEDSETTINGS>
    • cbSize

      public int cbSize()
      Returns:
      the value of the cbSize field.
    • maxMPEGCodecs

      public int maxMPEGCodecs()
      Returns:
      the value of the maxMPEGCodecs field.
    • maxADPCMCodecs

      public int maxADPCMCodecs()
      Returns:
      the value of the maxADPCMCodecs field.
    • maxXMACodecs

      public int maxXMACodecs()
      Returns:
      the value of the maxXMACodecs field.
    • maxVorbisCodecs

      public int maxVorbisCodecs()
      Returns:
      the value of the maxVorbisCodecs field.
    • maxAT9Codecs

      public int maxAT9Codecs()
      Returns:
      the value of the maxAT9Codecs field.
    • maxFADPCMCodecs

      public int maxFADPCMCodecs()
      Returns:
      the value of the maxFADPCMCodecs field.
    • maxOpusCodecs

      public int maxOpusCodecs()
      Returns:
      the value of the maxOpusCodecs field.
    • ASIONumChannels

      public int ASIONumChannels()
      Returns:
      the value of the ASIONumChannels field.
    • ASIOChannelList

      public PointerBuffer ASIOChannelList()
      Returns:
      a PointerBuffer view of the data pointed to by the ASIOChannelList field.
    • ASIOSpeakerList

      public IntBuffer ASIOSpeakerList()
      Returns:
      a IntBuffer view of the data pointed to by the ASIOSpeakerList field.
    • vol0virtualvol

      public float vol0virtualvol()
      Returns:
      the value of the vol0virtualvol field.
    • defaultDecodeBufferSize

      public int defaultDecodeBufferSize()
      Returns:
      the value of the defaultDecodeBufferSize field.
    • profilePort

      public short profilePort()
      Returns:
      the value of the profilePort field.
    • geometryMaxFadeTime

      public int geometryMaxFadeTime()
      Returns:
      the value of the geometryMaxFadeTime field.
    • distanceFilterCenterFreq

      public float distanceFilterCenterFreq()
      Returns:
      the value of the distanceFilterCenterFreq field.
    • reverb3Dinstance

      public int reverb3Dinstance()
      Returns:
      the value of the reverb3Dinstance field.
    • DSPBufferPoolSize

      public int DSPBufferPoolSize()
      Returns:
      the value of the DSPBufferPoolSize field.
    • resamplerMethod

      public int resamplerMethod()
      Returns:
      the value of the resamplerMethod field.
    • randomSeed

      public int randomSeed()
      Returns:
      the value of the randomSeed field.
    • maxConvolutionThreads

      public int maxConvolutionThreads()
      Returns:
      the value of the maxConvolutionThreads field.
    • maxSpatialObjects

      public int maxSpatialObjects()
      Returns:
      the value of the maxSpatialObjects field.
    • cbSize

      public FMOD_ADVANCEDSETTINGS cbSize(int value)
      Sets the specified value to the cbSize field.
    • maxMPEGCodecs

      public FMOD_ADVANCEDSETTINGS maxMPEGCodecs(int value)
      Sets the specified value to the maxMPEGCodecs field.
    • maxADPCMCodecs

      public FMOD_ADVANCEDSETTINGS maxADPCMCodecs(int value)
      Sets the specified value to the maxADPCMCodecs field.
    • maxXMACodecs

      public FMOD_ADVANCEDSETTINGS maxXMACodecs(int value)
      Sets the specified value to the maxXMACodecs field.
    • maxVorbisCodecs

      public FMOD_ADVANCEDSETTINGS maxVorbisCodecs(int value)
      Sets the specified value to the maxVorbisCodecs field.
    • maxAT9Codecs

      public FMOD_ADVANCEDSETTINGS maxAT9Codecs(int value)
      Sets the specified value to the maxAT9Codecs field.
    • maxFADPCMCodecs

      public FMOD_ADVANCEDSETTINGS maxFADPCMCodecs(int value)
      Sets the specified value to the maxFADPCMCodecs field.
    • maxOpusCodecs

      public FMOD_ADVANCEDSETTINGS maxOpusCodecs(int value)
      Sets the specified value to the maxOpusCodecs field.
    • ASIONumChannels

      public FMOD_ADVANCEDSETTINGS ASIONumChannels(int value)
      Sets the specified value to the ASIONumChannels field.
    • ASIOChannelList

      public FMOD_ADVANCEDSETTINGS ASIOChannelList(PointerBuffer value)
      Sets the address of the specified PointerBuffer to the ASIOChannelList field.
    • ASIOSpeakerList

      public FMOD_ADVANCEDSETTINGS ASIOSpeakerList(IntBuffer value)
      Sets the address of the specified IntBuffer to the ASIOSpeakerList field.
    • vol0virtualvol

      public FMOD_ADVANCEDSETTINGS vol0virtualvol(float value)
      Sets the specified value to the vol0virtualvol field.
    • defaultDecodeBufferSize

      public FMOD_ADVANCEDSETTINGS defaultDecodeBufferSize(int value)
      Sets the specified value to the defaultDecodeBufferSize field.
    • profilePort

      public FMOD_ADVANCEDSETTINGS profilePort(short value)
      Sets the specified value to the profilePort field.
    • geometryMaxFadeTime

      public FMOD_ADVANCEDSETTINGS geometryMaxFadeTime(int value)
      Sets the specified value to the geometryMaxFadeTime field.
    • distanceFilterCenterFreq

      public FMOD_ADVANCEDSETTINGS distanceFilterCenterFreq(float value)
      Sets the specified value to the distanceFilterCenterFreq field.
    • reverb3Dinstance

      public FMOD_ADVANCEDSETTINGS reverb3Dinstance(int value)
      Sets the specified value to the reverb3Dinstance field.
    • DSPBufferPoolSize

      public FMOD_ADVANCEDSETTINGS DSPBufferPoolSize(int value)
      Sets the specified value to the DSPBufferPoolSize field.
    • resamplerMethod

      public FMOD_ADVANCEDSETTINGS resamplerMethod(int value)
      Sets the specified value to the resamplerMethod field.
    • randomSeed

      public FMOD_ADVANCEDSETTINGS randomSeed(int value)
      Sets the specified value to the randomSeed field.
    • maxConvolutionThreads

      public FMOD_ADVANCEDSETTINGS maxConvolutionThreads(int value)
      Sets the specified value to the maxConvolutionThreads field.
    • maxSpatialObjects

      public FMOD_ADVANCEDSETTINGS maxSpatialObjects(int value)
      Sets the specified value to the maxSpatialObjects field.
    • set

      public FMOD_ADVANCEDSETTINGS set(int cbSize, int maxMPEGCodecs, int maxADPCMCodecs, int maxXMACodecs, int maxVorbisCodecs, int maxAT9Codecs, int maxFADPCMCodecs, int maxOpusCodecs, int ASIONumChannels, PointerBuffer ASIOChannelList, IntBuffer ASIOSpeakerList, float vol0virtualvol, int defaultDecodeBufferSize, short profilePort, int geometryMaxFadeTime, float distanceFilterCenterFreq, int reverb3Dinstance, int DSPBufferPoolSize, int resamplerMethod, int randomSeed, int maxConvolutionThreads, int maxSpatialObjects)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

      public static FMOD_ADVANCEDSETTINGS malloc()
      Returns a new FMOD_ADVANCEDSETTINGS instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static FMOD_ADVANCEDSETTINGS calloc()
      Returns a new FMOD_ADVANCEDSETTINGS instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static FMOD_ADVANCEDSETTINGS create()
      Returns a new FMOD_ADVANCEDSETTINGS instance allocated with BufferUtils.
    • create

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

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

      public static FMOD_ADVANCEDSETTINGS.Buffer malloc(int capacity)
      Returns a new FMOD_ADVANCEDSETTINGS.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static FMOD_ADVANCEDSETTINGS.Buffer calloc(int capacity)
      Returns a new FMOD_ADVANCEDSETTINGS.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static FMOD_ADVANCEDSETTINGS.Buffer create(int capacity)
      Returns a new FMOD_ADVANCEDSETTINGS.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

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

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

      public static FMOD_ADVANCEDSETTINGS malloc(MemoryStack stack)
      Returns a new FMOD_ADVANCEDSETTINGS instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static FMOD_ADVANCEDSETTINGS calloc(MemoryStack stack)
      Returns a new FMOD_ADVANCEDSETTINGS instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static FMOD_ADVANCEDSETTINGS.Buffer malloc(int capacity, MemoryStack stack)
      Returns a new FMOD_ADVANCEDSETTINGS.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static FMOD_ADVANCEDSETTINGS.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new FMOD_ADVANCEDSETTINGS.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • ncbSize

      public static int ncbSize(long struct)
      Unsafe version of cbSize().
    • nmaxMPEGCodecs

      public static int nmaxMPEGCodecs(long struct)
      Unsafe version of maxMPEGCodecs().
    • nmaxADPCMCodecs

      public static int nmaxADPCMCodecs(long struct)
      Unsafe version of maxADPCMCodecs().
    • nmaxXMACodecs

      public static int nmaxXMACodecs(long struct)
      Unsafe version of maxXMACodecs().
    • nmaxVorbisCodecs

      public static int nmaxVorbisCodecs(long struct)
      Unsafe version of maxVorbisCodecs().
    • nmaxAT9Codecs

      public static int nmaxAT9Codecs(long struct)
      Unsafe version of maxAT9Codecs().
    • nmaxFADPCMCodecs

      public static int nmaxFADPCMCodecs(long struct)
      Unsafe version of maxFADPCMCodecs().
    • nmaxOpusCodecs

      public static int nmaxOpusCodecs(long struct)
      Unsafe version of maxOpusCodecs().
    • nASIONumChannels

      public static int nASIONumChannels(long struct)
      Unsafe version of ASIONumChannels().
    • nASIOChannelList

      public static PointerBuffer nASIOChannelList(long struct)
      Unsafe version of ASIOChannelList.
    • nASIOSpeakerList

      public static IntBuffer nASIOSpeakerList(long struct)
      Unsafe version of ASIOSpeakerList.
    • nvol0virtualvol

      public static float nvol0virtualvol(long struct)
      Unsafe version of vol0virtualvol().
    • ndefaultDecodeBufferSize

      public static int ndefaultDecodeBufferSize(long struct)
      Unsafe version of defaultDecodeBufferSize().
    • nprofilePort

      public static short nprofilePort(long struct)
      Unsafe version of profilePort().
    • ngeometryMaxFadeTime

      public static int ngeometryMaxFadeTime(long struct)
      Unsafe version of geometryMaxFadeTime().
    • ndistanceFilterCenterFreq

      public static float ndistanceFilterCenterFreq(long struct)
      Unsafe version of distanceFilterCenterFreq().
    • nreverb3Dinstance

      public static int nreverb3Dinstance(long struct)
      Unsafe version of reverb3Dinstance().
    • nDSPBufferPoolSize

      public static int nDSPBufferPoolSize(long struct)
      Unsafe version of DSPBufferPoolSize().
    • nresamplerMethod

      public static int nresamplerMethod(long struct)
      Unsafe version of resamplerMethod().
    • nrandomSeed

      public static int nrandomSeed(long struct)
      Unsafe version of randomSeed().
    • nmaxConvolutionThreads

      public static int nmaxConvolutionThreads(long struct)
      Unsafe version of maxConvolutionThreads().
    • nmaxSpatialObjects

      public static int nmaxSpatialObjects(long struct)
      Unsafe version of maxSpatialObjects().
    • ncbSize

      public static void ncbSize(long struct, int value)
      Unsafe version of cbSize.
    • nmaxMPEGCodecs

      public static void nmaxMPEGCodecs(long struct, int value)
      Unsafe version of maxMPEGCodecs.
    • nmaxADPCMCodecs

      public static void nmaxADPCMCodecs(long struct, int value)
      Unsafe version of maxADPCMCodecs.
    • nmaxXMACodecs

      public static void nmaxXMACodecs(long struct, int value)
      Unsafe version of maxXMACodecs.
    • nmaxVorbisCodecs

      public static void nmaxVorbisCodecs(long struct, int value)
      Unsafe version of maxVorbisCodecs.
    • nmaxAT9Codecs

      public static void nmaxAT9Codecs(long struct, int value)
      Unsafe version of maxAT9Codecs.
    • nmaxFADPCMCodecs

      public static void nmaxFADPCMCodecs(long struct, int value)
      Unsafe version of maxFADPCMCodecs.
    • nmaxOpusCodecs

      public static void nmaxOpusCodecs(long struct, int value)
      Unsafe version of maxOpusCodecs.
    • nASIONumChannels

      public static void nASIONumChannels(long struct, int value)
      Sets the specified value to the ASIONumChannels field of the specified struct.
    • nASIOChannelList

      public static void nASIOChannelList(long struct, PointerBuffer value)
      Unsafe version of ASIOChannelList.
    • nASIOSpeakerList

      public static void nASIOSpeakerList(long struct, IntBuffer value)
      Unsafe version of ASIOSpeakerList.
    • nvol0virtualvol

      public static void nvol0virtualvol(long struct, float value)
      Unsafe version of vol0virtualvol.
    • ndefaultDecodeBufferSize

      public static void ndefaultDecodeBufferSize(long struct, int value)
      Unsafe version of defaultDecodeBufferSize.
    • nprofilePort

      public static void nprofilePort(long struct, short value)
      Unsafe version of profilePort.
    • ngeometryMaxFadeTime

      public static void ngeometryMaxFadeTime(long struct, int value)
      Unsafe version of geometryMaxFadeTime.
    • ndistanceFilterCenterFreq

      public static void ndistanceFilterCenterFreq(long struct, float value)
      Unsafe version of distanceFilterCenterFreq.
    • nreverb3Dinstance

      public static void nreverb3Dinstance(long struct, int value)
      Unsafe version of reverb3Dinstance.
    • nDSPBufferPoolSize

      public static void nDSPBufferPoolSize(long struct, int value)
      Unsafe version of DSPBufferPoolSize.
    • nresamplerMethod

      public static void nresamplerMethod(long struct, int value)
      Unsafe version of resamplerMethod.
    • nrandomSeed

      public static void nrandomSeed(long struct, int value)
      Unsafe version of randomSeed.
    • nmaxConvolutionThreads

      public static void nmaxConvolutionThreads(long struct, int value)
      Unsafe version of maxConvolutionThreads.
    • nmaxSpatialObjects

      public static void nmaxSpatialObjects(long struct, int value)
      Unsafe version of maxSpatialObjects.
    • validate

      public static void validate(long struct)
      Validates pointer members that should not be NULL.
      Parameters:
      struct - the struct to validate