Class Sound
java.lang.Object
com.raylib.jextract.Sound
-
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 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 MemorySegment
reinterpret
(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
andcleanupAction
(if any).static MemorySegment
reinterpret
(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
andcleanupAction
(if any).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
-
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
andcleanupAction
(if any). The returned segment has sizelayout().byteSize()
-
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
andcleanupAction
(if any). The returned segment has sizeelementCount * layout().byteSize()
-