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 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
buffer
(MemorySegment struct) Getter for field:rAudioBuffer *buffer
static void
buffer
(MemorySegment struct, MemorySegment fieldValue) Setter for field:rAudioBuffer *buffer
static final AddressLayout
Layout for field:rAudioBuffer *buffer
static final long
Offset for field:rAudioBuffer *buffer
static int
channels
(MemorySegment struct) Getter for field:unsigned int channels
static void
channels
(MemorySegment struct, int fieldValue) Setter for field:unsigned int channels
static final ValueLayout.OfInt
Layout for field:unsigned int channels
static final long
Offset for field:unsigned int channels
static final GroupLayout
layout()
The layout of this structstatic MemorySegment
processor
(MemorySegment struct) Getter for field:rAudioProcessor *processor
static void
processor
(MemorySegment struct, MemorySegment fieldValue) Setter for field:rAudioProcessor *processor
static final AddressLayout
Layout for field:rAudioProcessor *processor
static final long
Offset for field:rAudioProcessor *processor
static 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 int
sampleRate
(MemorySegment struct) Getter for field:unsigned int sampleRate
static void
sampleRate
(MemorySegment struct, int fieldValue) Setter for field:unsigned int sampleRate
static final ValueLayout.OfInt
Layout for field:unsigned int sampleRate
static final long
Offset for field:unsigned int sampleRate
static int
sampleSize
(MemorySegment struct) Getter for field:unsigned int sampleSize
static void
sampleSize
(MemorySegment struct, int fieldValue) Setter for field:unsigned int sampleSize
static final ValueLayout.OfInt
Layout for field:unsigned int sampleSize
static final long
Offset for field:unsigned int sampleSize
static long
sizeof()
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 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()
-