Package org.lwjgl.stb
Class STBVorbisInfo
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
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;
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionSTBVorbisInfo
(ByteBuffer container) Creates aSTBVorbisInfo
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic STBVorbisInfo
calloc()
Returns a newSTBVorbisInfo
instance allocated withmemCalloc
.static STBVorbisInfo.Buffer
calloc
(int capacity) Returns a newSTBVorbisInfo.Buffer
instance allocated withmemCalloc
.static STBVorbisInfo.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newSTBVorbisInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static STBVorbisInfo
calloc
(MemoryStack stack) Returns a newSTBVorbisInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static STBVorbisInfo
Deprecated.static STBVorbisInfo.Buffer
callocStack
(int capacity) Deprecated.static STBVorbisInfo.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static STBVorbisInfo
callocStack
(MemoryStack stack) Deprecated.int
channels()
static STBVorbisInfo
create()
Returns a newSTBVorbisInfo
instance allocated withBufferUtils
.static STBVorbisInfo.Buffer
create
(int capacity) Returns a newSTBVorbisInfo.Buffer
instance allocated withBufferUtils
.static STBVorbisInfo
create
(long address) Returns a newSTBVorbisInfo
instance for the specified memory address.static STBVorbisInfo.Buffer
create
(long address, int capacity) Create aSTBVorbisInfo.Buffer
instance at the specified memory.static STBVorbisInfo
createSafe
(long address) static STBVorbisInfo.Buffer
createSafe
(long address, int capacity) static STBVorbisInfo
malloc()
Returns a newSTBVorbisInfo
instance allocated withmemAlloc
.static STBVorbisInfo.Buffer
malloc
(int capacity) Returns a newSTBVorbisInfo.Buffer
instance allocated withmemAlloc
.static STBVorbisInfo.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newSTBVorbisInfo.Buffer
instance allocated on the specifiedMemoryStack
.static STBVorbisInfo
malloc
(MemoryStack stack) Returns a newSTBVorbisInfo
instance allocated on the specifiedMemoryStack
.static STBVorbisInfo
Deprecated.static STBVorbisInfo.Buffer
mallocStack
(int capacity) Deprecated.static STBVorbisInfo.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static STBVorbisInfo
mallocStack
(MemoryStack stack) Deprecated.int
static int
nchannels
(long struct) Unsafe version ofchannels()
.static int
nmax_frame_size
(long struct) Unsafe version ofmax_frame_size()
.static int
nsample_rate
(long struct) Unsafe version ofsample_rate()
.static int
nsetup_memory_required
(long struct) Unsafe version ofsetup_memory_required()
.static int
nsetup_temp_memory_required
(long struct) Unsafe version ofsetup_temp_memory_required()
.static int
ntemp_memory_required
(long struct) Unsafe version oftemp_memory_required()
.int
int
int
int
sizeof()
Returnssizeof(struct)
.int
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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 aSTBVorbisInfo
instance at the current position of the specifiedByteBuffer
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
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<STBVorbisInfo>
-
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.
-
malloc
Returns a newSTBVorbisInfo
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newSTBVorbisInfo
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newSTBVorbisInfo
instance allocated withBufferUtils
. -
create
Returns a newSTBVorbisInfo
instance for the specified memory address. -
createSafe
-
malloc
Returns a newSTBVorbisInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newSTBVorbisInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newSTBVorbisInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aSTBVorbisInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newSTBVorbisInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newSTBVorbisInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newSTBVorbisInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newSTBVorbisInfo.Buffer
instance allocated on the specifiedMemoryStack
and 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()
.
-