Package org.lwjgl.stb

Class STBVorbisInfo

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class STBVorbisInfo extends Struct<STBVorbisInfo> implements NativeResource
Information about a Vorbis stream.

Layout


 struct stb_vorbis_info {
     unsigned int sample_rate;
     int channels;
     unsigned int setup_memory_required;
     unsigned int setup_temp_memory_required;
     unsigned int temp_memory_required;
     int max_frame_size;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int SAMPLE_RATE
      The struct member offsets.
    • CHANNELS

      public static final int CHANNELS
      The struct member offsets.
    • SETUP_MEMORY_REQUIRED

      public static final int SETUP_MEMORY_REQUIRED
      The struct member offsets.
    • SETUP_TEMP_MEMORY_REQUIRED

      public static final int SETUP_TEMP_MEMORY_REQUIRED
      The struct member offsets.
    • TEMP_MEMORY_REQUIRED

      public static final int TEMP_MEMORY_REQUIRED
      The struct member offsets.
    • MAX_FRAME_SIZE

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

    • STBVorbisInfo

      public STBVorbisInfo(ByteBuffer container)
      Creates a STBVorbisInfo 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