struct property

StructType<Music> struct
final

Describes the raw memory layout, construction, and pointer representation of this struct type.

Implementation

static final StructType<Music> struct = ._builtin(
  factory: Music.new,
  layout: .aligned<MusicField>({
    .stream:     RStruct(AudioStream.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
  }),
);