Package com.raylib.jextract
Class AudioStream
java.lang.Object
com.raylib.jextract.AudioStream
struct AudioStream {
rAudioBuffer *buffer;
rAudioProcessor *processor;
unsigned int sampleRate;
unsigned int sampleSize;
unsigned int channels;
}
-
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 MemorySegmentbuffer(MemorySegment struct) Getter for field:rAudioBuffer *bufferstatic voidbuffer(MemorySegment struct, MemorySegment fieldValue) Setter for field:rAudioBuffer *bufferstatic final AddressLayoutLayout for field:rAudioBuffer *bufferstatic final longOffset for field:rAudioBuffer *bufferstatic intchannels(MemorySegment struct) Getter for field:unsigned int channelsstatic voidchannels(MemorySegment struct, int fieldValue) Setter for field:unsigned int channelsstatic final ValueLayout.OfIntLayout for field:unsigned int channelsstatic final longOffset for field:unsigned int channelsstatic final GroupLayoutlayout()The layout of this structstatic MemorySegmentprocessor(MemorySegment struct) Getter for field:rAudioProcessor *processorstatic voidprocessor(MemorySegment struct, MemorySegment fieldValue) Setter for field:rAudioProcessor *processorstatic final AddressLayoutLayout for field:rAudioProcessor *processorstatic final longOffset for field:rAudioProcessor *processorstatic 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 intsampleRate(MemorySegment struct) Getter for field:unsigned int sampleRatestatic voidsampleRate(MemorySegment struct, int fieldValue) Setter for field:unsigned int sampleRatestatic final ValueLayout.OfIntLayout for field:unsigned int sampleRatestatic final longOffset for field:unsigned int sampleRatestatic intsampleSize(MemorySegment struct) Getter for field:unsigned int sampleSizestatic voidsampleSize(MemorySegment struct, int fieldValue) Setter for field:unsigned int sampleSizestatic final ValueLayout.OfIntLayout for field:unsigned int sampleSizestatic final longOffset for field:unsigned int sampleSizestatic longsizeof()The size (in bytes) of this struct
-
Method Details
-
layout
The layout of this struct -
buffer$layout
Layout for field:rAudioBuffer *buffer -
buffer$offset
public static final long buffer$offset()Offset for field:rAudioBuffer *buffer -
buffer
Getter for field:rAudioBuffer *buffer -
buffer
Setter for field:rAudioBuffer *buffer -
processor$layout
Layout for field:rAudioProcessor *processor -
processor$offset
public static final long processor$offset()Offset for field:rAudioProcessor *processor -
processor
Getter for field:rAudioProcessor *processor -
processor
Setter for field:rAudioProcessor *processor -
sampleRate$layout
Layout for field:unsigned int sampleRate -
sampleRate$offset
public static final long sampleRate$offset()Offset for field:unsigned int sampleRate -
sampleRate
Getter for field:unsigned int sampleRate -
sampleRate
Setter for field:unsigned int sampleRate -
sampleSize$layout
Layout for field:unsigned int sampleSize -
sampleSize$offset
public static final long sampleSize$offset()Offset for field:unsigned int sampleSize -
sampleSize
Getter for field:unsigned int sampleSize -
sampleSize
Setter for field:unsigned int sampleSize -
channels$layout
Layout for field:unsigned int channels -
channels$offset
public static final long channels$offset()Offset for field:unsigned int channels -
channels
Getter for field:unsigned int channels -
channels
Setter for field:unsigned int channels -
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()}'
-