public class STBVorbisInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
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;
}| Modifier and Type | Class and Description |
|---|---|
static class |
STBVorbisInfo.Buffer
An array of
STBVorbisInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
CHANNELS
The struct member offsets.
|
static int |
MAX_FRAME_SIZE
The struct member offsets.
|
static int |
SAMPLE_RATE
The struct member offsets.
|
static int |
SETUP_MEMORY_REQUIRED
The struct member offsets.
|
static int |
SETUP_TEMP_MEMORY_REQUIRED
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
TEMP_MEMORY_REQUIRED
The struct member offsets.
|
| Constructor and Description |
|---|
STBVorbisInfo(java.nio.ByteBuffer container)
Creates a
STBVorbisInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static STBVorbisInfo |
calloc()
Returns a new
STBVorbisInfo instance allocated with memCalloc. |
static STBVorbisInfo.Buffer |
calloc(int capacity)
Returns a new
STBVorbisInfo.Buffer instance allocated with memCalloc. |
static STBVorbisInfo |
callocStack()
Returns a new
STBVorbisInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static STBVorbisInfo.Buffer |
callocStack(int capacity)
Returns a new
STBVorbisInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static STBVorbisInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
STBVorbisInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static STBVorbisInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
STBVorbisInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
int |
channels()
Returns the value of the
channels field. |
static STBVorbisInfo |
create()
Returns a new
STBVorbisInfo instance allocated with BufferUtils. |
static STBVorbisInfo.Buffer |
create(int capacity)
Returns a new
STBVorbisInfo.Buffer instance allocated with BufferUtils. |
static STBVorbisInfo |
create(long address)
Returns a new
STBVorbisInfo instance for the specified memory address. |
static STBVorbisInfo.Buffer |
create(long address,
int capacity)
Create a
STBVorbisInfo.Buffer instance at the specified memory. |
static STBVorbisInfo |
createSafe(long address)
|
static STBVorbisInfo.Buffer |
createSafe(long address,
int capacity)
|
static STBVorbisInfo |
malloc()
Returns a new
STBVorbisInfo instance allocated with memAlloc. |
static STBVorbisInfo.Buffer |
malloc(int capacity)
Returns a new
STBVorbisInfo.Buffer instance allocated with memAlloc. |
static STBVorbisInfo |
mallocStack()
Returns a new
STBVorbisInfo instance allocated on the thread-local MemoryStack. |
static STBVorbisInfo.Buffer |
mallocStack(int capacity)
Returns a new
STBVorbisInfo.Buffer instance allocated on the thread-local MemoryStack. |
static STBVorbisInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
STBVorbisInfo.Buffer instance allocated on the specified MemoryStack. |
static STBVorbisInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
STBVorbisInfo instance allocated on the specified MemoryStack. |
int |
max_frame_size()
Returns the value of the
max_frame_size field. |
static int |
nchannels(long struct)
Unsafe version of
channels(). |
static int |
nmax_frame_size(long struct)
Unsafe version of
max_frame_size(). |
static int |
nsample_rate(long struct)
Unsafe version of
sample_rate(). |
static int |
nsetup_memory_required(long struct)
Unsafe version of
setup_memory_required(). |
static int |
nsetup_temp_memory_required(long struct)
Unsafe version of
setup_temp_memory_required(). |
static int |
ntemp_memory_required(long struct)
Unsafe version of
temp_memory_required(). |
int |
sample_rate()
Returns the value of the
sample_rate field. |
int |
setup_memory_required()
Returns the value of the
setup_memory_required field. |
int |
setup_temp_memory_required()
Returns the value of the
setup_temp_memory_required field. |
int |
sizeof() |
int |
temp_memory_required()
Returns the value of the
temp_memory_required field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int SAMPLE_RATE
public static final int CHANNELS
public static final int SETUP_MEMORY_REQUIRED
public static final int SETUP_TEMP_MEMORY_REQUIRED
public static final int TEMP_MEMORY_REQUIRED
public static final int MAX_FRAME_SIZE
public STBVorbisInfo(java.nio.ByteBuffer container)
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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sample_rate()
sample_rate field.public int channels()
channels field.public int setup_memory_required()
setup_memory_required field.public int setup_temp_memory_required()
setup_temp_memory_required field.public int temp_memory_required()
temp_memory_required field.public int max_frame_size()
max_frame_size field.public static STBVorbisInfo malloc()
STBVorbisInfo instance allocated with memAlloc. The instance must be explicitly freed.public static STBVorbisInfo calloc()
STBVorbisInfo instance allocated with memCalloc. The instance must be explicitly freed.public static STBVorbisInfo create()
STBVorbisInfo instance allocated with BufferUtils.public static STBVorbisInfo create(long address)
STBVorbisInfo instance for the specified memory address.@Nullable public static STBVorbisInfo createSafe(long address)
public static STBVorbisInfo.Buffer malloc(int capacity)
STBVorbisInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static STBVorbisInfo.Buffer calloc(int capacity)
STBVorbisInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static STBVorbisInfo.Buffer create(int capacity)
STBVorbisInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static STBVorbisInfo.Buffer create(long address, int capacity)
STBVorbisInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static STBVorbisInfo.Buffer createSafe(long address, int capacity)
public static STBVorbisInfo mallocStack()
STBVorbisInfo instance allocated on the thread-local MemoryStack.public static STBVorbisInfo callocStack()
STBVorbisInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static STBVorbisInfo mallocStack(org.lwjgl.system.MemoryStack stack)
STBVorbisInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static STBVorbisInfo callocStack(org.lwjgl.system.MemoryStack stack)
STBVorbisInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static STBVorbisInfo.Buffer mallocStack(int capacity)
STBVorbisInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static STBVorbisInfo.Buffer callocStack(int capacity)
STBVorbisInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static STBVorbisInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
STBVorbisInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static STBVorbisInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
STBVorbisInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsample_rate(long struct)
sample_rate().public static int nchannels(long struct)
channels().public static int nsetup_memory_required(long struct)
setup_memory_required().public static int nsetup_temp_memory_required(long struct)
setup_temp_memory_required().public static int ntemp_memory_required(long struct)
temp_memory_required().public static int nmax_frame_size(long struct)
max_frame_size().Copyright LWJGL. All Rights Reserved. License terms.