WaveBase<X extends WaveBase<X>> mixin

Backend-agnostic contract for WaveBase structs.

Must be mixed into every concrete platform implementation of a Raylib type to ensure a unified API surface across different backends.


Audio wave data.

Superclass constraints

Properties

$state RaylibTempStructState
Per-instance allocation state tracking slot keys, disposal, and identity.
finalinherited
bufferLength int
Total number of samples the data buffer can hold, derived from its byte length and sampleSize.
no setter
channels int
Number of channels (1-mono, 2-stereo, ...)
getter/setter pair
data ByteBuffer
Raw audio buffer data
getter/setter pair
frameCount int
Total number of frames (considering channels)
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sampleRate int
Frequency (samples per second)
getter/setter pair
sampleSize int
Bit depth (bits per sample): 8, 16, 32 (24 not supported)
getter/setter pair
structName String
The Dart-side type name of this struct
no setterinherited
waveLength int
Total number of samples across all channels, derived from frameCount and channels.
no setter

Methods

clone() → X
Returns a deep copy of this instance, preserving RaylibStructBase.originalPointer if present.
inherited
copy() → X
Returns a deep copy of this instance without RaylibStructBase.originalPointer.
inherited
dataAsList() TypedDataList
Returns data as a typed list matching the current sampleSize.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setD(X o) → X
Copies the fields of o into this instance and returns this.
inherited
signature() String
Returns a human-readable representation of this struct.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

BASE_waveLength(int frameCount, int channels) int
Computes the total number of samples for a wave with the given frameCount and channels, i.e. frameCount * channels.