Package com.raylib.jextract
Class Music
java.lang.Object
com.raylib.jextract.Music
struct Music {
AudioStream stream;
unsigned int frameCount;
_Bool looping;
int ctxType;
void *ctxData;
}
-
Method Summary
Modifier and TypeMethodDescriptionstatic MemorySegment
allocate
(SegmentAllocator allocator) Allocate a segment of sizelayout().byteSize()
usingallocator
static MemorySegment
allocateArray
(long elementCount, SegmentAllocator allocator) Allocate an array of sizeelementCount
usingallocator
.static MemorySegment
asSlice
(MemorySegment array, long index) Obtains a slice ofarrayParam
which selects the array element atindex
.static MemorySegment
ctxData
(MemorySegment struct) Getter for field:void *ctxData
static void
ctxData
(MemorySegment struct, MemorySegment fieldValue) Setter for field:void *ctxData
static final AddressLayout
Layout for field:void *ctxData
static final long
Offset for field:void *ctxData
static int
ctxType
(MemorySegment struct) Getter for field:int ctxType
static void
ctxType
(MemorySegment struct, int fieldValue) Setter for field:int ctxType
static final ValueLayout.OfInt
Layout for field:int ctxType
static final long
Offset for field:int ctxType
static int
frameCount
(MemorySegment struct) Getter for field:unsigned int frameCount
static void
frameCount
(MemorySegment struct, int fieldValue) Setter for field:unsigned int frameCount
static final ValueLayout.OfInt
Layout for field:unsigned int frameCount
static final long
Offset for field:unsigned int frameCount
static final GroupLayout
layout()
The layout of this structstatic boolean
looping
(MemorySegment struct) Getter for field:_Bool looping
static void
looping
(MemorySegment struct, boolean fieldValue) Setter for field:_Bool looping
static final ValueLayout.OfBoolean
Layout for field:_Bool looping
static final long
Offset for field:_Bool looping
static MemorySegment
reinterpret
(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
and invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code elementCount * layout().byteSize()}'static MemorySegment
reinterpret
(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
and invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code layout().byteSize()}'static long
sizeof()
The size (in bytes) of this structstatic MemorySegment
stream
(MemorySegment struct) Getter for field:AudioStream stream
static void
stream
(MemorySegment struct, MemorySegment fieldValue) Setter for field:AudioStream stream
static final GroupLayout
Layout for field:AudioStream stream
static final long
Offset for field:AudioStream stream
-
Method Details
-
layout
The layout of this struct -
stream$layout
Layout for field:AudioStream stream
-
stream$offset
public static final long stream$offset()Offset for field:AudioStream stream
-
stream
Getter for field:AudioStream stream
-
stream
Setter for field:AudioStream stream
-
frameCount$layout
Layout for field:unsigned int frameCount
-
frameCount$offset
public static final long frameCount$offset()Offset for field:unsigned int frameCount
-
frameCount
Getter for field:unsigned int frameCount
-
frameCount
Setter for field:unsigned int frameCount
-
looping$layout
Layout for field:_Bool looping
-
looping$offset
public static final long looping$offset()Offset for field:_Bool looping
-
looping
Getter for field:_Bool looping
-
looping
Setter for field:_Bool looping
-
ctxType$layout
Layout for field:int ctxType
-
ctxType$offset
public static final long ctxType$offset()Offset for field:int ctxType
-
ctxType
Getter for field:int ctxType
-
ctxType
Setter for field:int ctxType
-
ctxData$layout
Layout for field:void *ctxData
-
ctxData$offset
public static final long ctxData$offset()Offset for field:void *ctxData
-
ctxData
Getter for field:void *ctxData
-
ctxData
Setter for field:void *ctxData
-
asSlice
Obtains a slice ofarrayParam
which selects the array element atindex
. The returned segment has addressarrayParam.address() + index * layout().byteSize()
-
sizeof
public static long sizeof()The size (in bytes) of this struct -
allocate
Allocate a segment of sizelayout().byteSize()
usingallocator
-
allocateArray
Allocate an array of sizeelementCount
usingallocator
. The returned segment has sizeelementCount * layout().byteSize()
. -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
and invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code layout().byteSize()}' -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
and invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code elementCount * layout().byteSize()}'
-