Package org.lwjgl.stb
Class STBVorbisInfo
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
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;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionSTBVorbisInfo(ByteBuffer container) Creates aSTBVorbisInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic STBVorbisInfocalloc()Returns a newSTBVorbisInfoinstance allocated withmemCalloc.static STBVorbisInfo.Buffercalloc(int capacity) Returns a newSTBVorbisInfo.Bufferinstance allocated withmemCalloc.static STBVorbisInfo.Buffercalloc(int capacity, MemoryStack stack) Returns a newSTBVorbisInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static STBVorbisInfocalloc(MemoryStack stack) Returns a newSTBVorbisInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intchannels()static STBVorbisInfocreate()Returns a newSTBVorbisInfoinstance allocated withBufferUtils.static STBVorbisInfo.Buffercreate(int capacity) Returns a newSTBVorbisInfo.Bufferinstance allocated withBufferUtils.static STBVorbisInfocreate(long address) Returns a newSTBVorbisInfoinstance for the specified memory address.static STBVorbisInfo.Buffercreate(long address, int capacity) Create aSTBVorbisInfo.Bufferinstance at the specified memory.static @Nullable STBVorbisInfocreateSafe(long address) static @Nullable STBVorbisInfo.BuffercreateSafe(long address, int capacity) static STBVorbisInfomalloc()Returns a newSTBVorbisInfoinstance allocated withmemAlloc.static STBVorbisInfo.Buffermalloc(int capacity) Returns a newSTBVorbisInfo.Bufferinstance allocated withmemAlloc.static STBVorbisInfo.Buffermalloc(int capacity, MemoryStack stack) Returns a newSTBVorbisInfo.Bufferinstance allocated on the specifiedMemoryStack.static STBVorbisInfomalloc(MemoryStack stack) Returns a newSTBVorbisInfoinstance allocated on the specifiedMemoryStack.intstatic intnchannels(long struct) Unsafe version ofchannels().static intnmax_frame_size(long struct) Unsafe version ofmax_frame_size().static intnsample_rate(long struct) Unsafe version ofsample_rate().static intnsetup_memory_required(long struct) Unsafe version ofsetup_memory_required().static intnsetup_temp_memory_required(long struct) Unsafe version ofsetup_temp_memory_required().static intntemp_memory_required(long struct) Unsafe version oftemp_memory_required().intintintintsizeof()Returnssizeof(struct).intMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
SAMPLE_RATE
public static final int SAMPLE_RATEThe struct member offsets. -
CHANNELS
public static final int CHANNELSThe struct member offsets. -
SETUP_MEMORY_REQUIRED
public static final int SETUP_MEMORY_REQUIREDThe struct member offsets. -
SETUP_TEMP_MEMORY_REQUIRED
public static final int SETUP_TEMP_MEMORY_REQUIREDThe struct member offsets. -
TEMP_MEMORY_REQUIRED
public static final int TEMP_MEMORY_REQUIREDThe struct member offsets. -
MAX_FRAME_SIZE
public static final int MAX_FRAME_SIZEThe struct member offsets.
-
-
Constructor Details
-
STBVorbisInfo
Creates aSTBVorbisInfoinstance at the current position of the specifiedByteBuffercontainer. 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
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<STBVorbisInfo>
-
sample_rate
public int sample_rate()- Returns:
- the value of the
sample_ratefield.
-
channels
public int channels()- Returns:
- the value of the
channelsfield.
-
setup_memory_required
public int setup_memory_required()- Returns:
- the value of the
setup_memory_requiredfield.
-
setup_temp_memory_required
public int setup_temp_memory_required()- Returns:
- the value of the
setup_temp_memory_requiredfield.
-
temp_memory_required
public int temp_memory_required()- Returns:
- the value of the
temp_memory_requiredfield.
-
max_frame_size
public int max_frame_size()- Returns:
- the value of the
max_frame_sizefield.
-
malloc
Returns a newSTBVorbisInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newSTBVorbisInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newSTBVorbisInfoinstance allocated withBufferUtils. -
create
Returns a newSTBVorbisInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newSTBVorbisInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newSTBVorbisInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newSTBVorbisInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aSTBVorbisInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newSTBVorbisInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newSTBVorbisInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newSTBVorbisInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newSTBVorbisInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nsample_rate
public static int nsample_rate(long struct) Unsafe version ofsample_rate(). -
nchannels
public static int nchannels(long struct) Unsafe version ofchannels(). -
nsetup_memory_required
public static int nsetup_memory_required(long struct) Unsafe version ofsetup_memory_required(). -
nsetup_temp_memory_required
public static int nsetup_temp_memory_required(long struct) Unsafe version ofsetup_temp_memory_required(). -
ntemp_memory_required
public static int ntemp_memory_required(long struct) Unsafe version oftemp_memory_required(). -
nmax_frame_size
public static int nmax_frame_size(long struct) Unsafe version ofmax_frame_size().
-