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 MemorySegmentallocate(SegmentAllocator allocator) Allocate a segment of sizelayout().byteSize()usingallocatorstatic MemorySegmentallocateArray(long elementCount, SegmentAllocator allocator) Allocate an array of sizeelementCountusingallocator.static MemorySegmentasSlice(MemorySegment array, long index) Obtains a slice ofarrayParamwhich selects the array element atindex.static MemorySegmentctxData(MemorySegment struct) Getter for field:void *ctxDatastatic voidctxData(MemorySegment struct, MemorySegment fieldValue) Setter for field:void *ctxDatastatic final AddressLayoutLayout for field:void *ctxDatastatic final longOffset for field:void *ctxDatastatic intctxType(MemorySegment struct) Getter for field:int ctxTypestatic voidctxType(MemorySegment struct, int fieldValue) Setter for field:int ctxTypestatic final ValueLayout.OfIntLayout for field:int ctxTypestatic final longOffset for field:int ctxTypestatic intframeCount(MemorySegment struct) Getter for field:unsigned int frameCountstatic voidframeCount(MemorySegment struct, int fieldValue) Setter for field:unsigned int frameCountstatic final ValueLayout.OfIntLayout for field:unsigned int frameCountstatic final longOffset for field:unsigned int frameCountstatic final GroupLayoutlayout()The layout of this structstatic booleanlooping(MemorySegment struct) Getter for field:_Bool loopingstatic voidlooping(MemorySegment struct, boolean fieldValue) Setter for field:_Bool loopingstatic final ValueLayout.OfBooleanLayout for field:_Bool loopingstatic final longOffset for field:_Bool loopingstatic MemorySegmentreinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaand invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code elementCount * layout().byteSize()}'static MemorySegmentreinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaand invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code layout().byteSize()}'static longsizeof()The size (in bytes) of this structstatic MemorySegmentstream(MemorySegment struct) Getter for field:AudioStream streamstatic voidstream(MemorySegment struct, MemorySegment fieldValue) Setter for field:AudioStream streamstatic final GroupLayoutLayout for field:AudioStream streamstatic final longOffset 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 ofarrayParamwhich 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 sizeelementCountusingallocator. The returned segment has sizeelementCount * layout().byteSize(). -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaand 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) Reinterpretsaddrusing targetarenaand invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code elementCount * layout().byteSize()}'
-