struct property
Describes the raw memory layout, construction, and pointer representation of this struct type.
Implementation
static final StructType<WaveD> struct = .new(
factory: WaveD.new,
layout: .aligned<WaveField>({
.frameCount: RUnsignedInt(), // Total number of frames (considering channels)
.sampleRate: RUnsignedInt(), // Frequency (samples per second)
.sampleSize: RUnsignedInt(), // Bit depth (bits per sample): 8, 16, 32 (24 not supported)
.channels: RUnsignedInt(), // Number of channels (1-mono, 2-stereo, ...)
.data: RPointer(RVoid()), // Buffer data pointer
}),
);