Class FMOD_CODEC_WAVEFORMAT.Buffer

All Implemented Interfaces:
AutoCloseable, Iterable<FMOD_CODEC_WAVEFORMAT>, NativeResource, Pointer
Enclosing class:
FMOD_CODEC_WAVEFORMAT

public static class FMOD_CODEC_WAVEFORMAT.Buffer extends StructBuffer<FMOD_CODEC_WAVEFORMAT, FMOD_CODEC_WAVEFORMAT.Buffer> implements NativeResource
An array of FMOD_CODEC_WAVEFORMAT structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new FMOD_CODEC_WAVEFORMAT.Buffer instance backed by the specified container.

      Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by FMOD_CODEC_WAVEFORMAT.SIZEOF, and its mark will be undefined.

      The created buffer instance holds a strong reference to the container object.

    • Buffer

      public Buffer(long address, int cap)
  • Method Details

    • name

      @NativeType("char const *") public @Nullable ByteBuffer name()
      Returns:
      a ByteBuffer view of the null-terminated string pointed to by the name field.
    • nameString

      @NativeType("char const *") public @Nullable String nameString()
      Returns:
      the null-terminated string pointed to by the name field.
    • format

      @NativeType("FMOD_SOUND_FORMAT") public int format()
      Returns:
      the value of the format field.
    • channels

      public int channels()
      Returns:
      the value of the channels field.
    • frequency

      public int frequency()
      Returns:
      the value of the frequency field.
    • lengthbytes

      @NativeType("unsigned int") public int lengthbytes()
      Returns:
      the value of the lengthbytes field.
    • lengthpcm

      @NativeType("unsigned int") public int lengthpcm()
      Returns:
      the value of the lengthpcm field.
    • pcmblocksize

      @NativeType("unsigned int") public int pcmblocksize()
      Returns:
      the value of the pcmblocksize field.
    • loopstart

      public int loopstart()
      Returns:
      the value of the loopstart field.
    • loopend

      public int loopend()
      Returns:
      the value of the loopend field.
    • mode

      @NativeType("FMOD_MODE") public int mode()
      Returns:
      the value of the mode field.
    • channelmask

      @NativeType("FMOD_CHANNELMASK") public int channelmask()
      Returns:
      the value of the channelmask field.
    • channelorder

      @NativeType("FMOD_CHANNELORDER") public int channelorder()
      Returns:
      the value of the channelorder field.
    • peakvolume

      public float peakvolume()
      Returns:
      the value of the peakvolume field.
    • name

      public FMOD_CODEC_WAVEFORMAT.Buffer name(@NativeType("char const *") @Nullable ByteBuffer value)
      Sets the address of the specified encoded string to the name field.
    • format

      public FMOD_CODEC_WAVEFORMAT.Buffer format(@NativeType("FMOD_SOUND_FORMAT") int value)
      Sets the specified value to the format field.
    • channels

      public FMOD_CODEC_WAVEFORMAT.Buffer channels(int value)
      Sets the specified value to the channels field.
    • frequency

      public FMOD_CODEC_WAVEFORMAT.Buffer frequency(int value)
      Sets the specified value to the frequency field.
    • lengthbytes

      public FMOD_CODEC_WAVEFORMAT.Buffer lengthbytes(@NativeType("unsigned int") int value)
      Sets the specified value to the lengthbytes field.
    • lengthpcm

      public FMOD_CODEC_WAVEFORMAT.Buffer lengthpcm(@NativeType("unsigned int") int value)
      Sets the specified value to the lengthpcm field.
    • pcmblocksize

      public FMOD_CODEC_WAVEFORMAT.Buffer pcmblocksize(@NativeType("unsigned int") int value)
      Sets the specified value to the pcmblocksize field.
    • loopstart

      public FMOD_CODEC_WAVEFORMAT.Buffer loopstart(int value)
      Sets the specified value to the loopstart field.
    • loopend

      public FMOD_CODEC_WAVEFORMAT.Buffer loopend(int value)
      Sets the specified value to the loopend field.
    • mode

      public FMOD_CODEC_WAVEFORMAT.Buffer mode(@NativeType("FMOD_MODE") int value)
      Sets the specified value to the mode field.
    • channelmask

      public FMOD_CODEC_WAVEFORMAT.Buffer channelmask(@NativeType("FMOD_CHANNELMASK") int value)
      Sets the specified value to the channelmask field.
    • channelorder

      public FMOD_CODEC_WAVEFORMAT.Buffer channelorder(@NativeType("FMOD_CHANNELORDER") int value)
      Sets the specified value to the channelorder field.
    • peakvolume

      public FMOD_CODEC_WAVEFORMAT.Buffer peakvolume(float value)
      Sets the specified value to the peakvolume field.