struct property
Describes the raw memory layout, construction, and pointer representation of this struct type.
Implementation
static final StructType<MusicD> struct = .new(
factory: MusicD.new,
layout: .aligned<MusicField>({
.stream: RStruct(AudioStreamD.struct), // Audio stream
.frameCount: RUnsignedInt(), // Total number of frames (considering channels)
.looping: RBool(), // Music looping enable
.ctxType: RInt(), // Type of music context (audio filetype)
.ctxData: RPointer(RVoid()), // Audio context data, depends on type
}),
);