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

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

      public @Nullable String nameString()
      Returns:
      the null-terminated string pointed to by the name field.
    • 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

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

      public int lengthpcm()
      Returns:
      the value of the lengthpcm field.
    • pcmblocksize

      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

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

      public int channelmask()
      Returns:
      the value of the channelmask field.
    • 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(@Nullable ByteBuffer value)
      Sets the address of the specified encoded string to the name field.
    • format

      public FMOD_CODEC_WAVEFORMAT.Buffer 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(int value)
      Sets the specified value to the lengthbytes field.
    • lengthpcm

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

      public FMOD_CODEC_WAVEFORMAT.Buffer pcmblocksize(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(int value)
      Sets the specified value to the mode field.
    • channelmask

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

      public FMOD_CODEC_WAVEFORMAT.Buffer 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.