Package org.lwjgl.stb

Class STBVorbisInfo

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer

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


     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 Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.

        The struct member offsets.
    • Constructor Detail

      • STBVorbisInfo

        public STBVorbisInfo​(java.nio.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 Detail

      • sizeof

        public int sizeof()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • sample_rate

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

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

        public int setup_memory_required()
        Returns the value of the setup_memory_required field.
      • setup_temp_memory_required

        public int setup_temp_memory_required()
        Returns the value of the setup_temp_memory_required field.
      • temp_memory_required

        public int temp_memory_required()
        Returns the value of the temp_memory_required field.
      • max_frame_size

        public int max_frame_size()
        Returns the value of the max_frame_size field.
      • create

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

        public static STBVorbisInfo createSafe​(long address)
        Like create, but returns null if address is NULL.
      • create

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

        public static STBVorbisInfo.Buffer createSafe​(long address,
                                                      int capacity)
        Like create, but returns null if address is NULL.
      • callocStack

        public static STBVorbisInfo callocStack​(MemoryStack stack)
        Returns a new STBVorbisInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.
        stack - the stack from which to allocate
      • nsample_rate

        public static int nsample_rate​(long struct)
        Unsafe version of sample_rate().
      • nchannels

        public static int nchannels​(long struct)
        Unsafe version of channels().
      • nsetup_memory_required

        public static int nsetup_memory_required​(long struct)
        Unsafe version of setup_memory_required().
      • nsetup_temp_memory_required

        public static int nsetup_temp_memory_required​(long struct)
        Unsafe version of setup_temp_memory_required().
      • ntemp_memory_required

        public static int ntemp_memory_required​(long struct)
        Unsafe version of temp_memory_required().
      • nmax_frame_size

        public static int nmax_frame_size​(long struct)
        Unsafe version of max_frame_size().