struct property

StructType<Sound> struct
final

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

Implementation

static final StructType<Sound> struct = ._builtin(
  factory: Sound.new,
  layout: .aligned<SoundField>({
    .stream:     RStruct(AudioStream.struct), // Audio stream
    .frameCount: RUnsignedInt(), // Total number of frames (considering channels)
  }),
);