WaveD class
Wave, audio wave data
- Inheritance
-
- Object
- RaylibStruct<
WaveD> - WaveD
Constructors
-
WaveD({StructPointer<
WaveD> ? op, int frameCount = 0, int sampleRate = 0, int sampleSize = 8, int channels = 0, ByteBuffer? data}) - WaveD.zero()
-
factory
Properties
- $state → RaylibTempStructState
-
Per-instance allocation state tracking slot keys, disposal, and identity.
finalinherited
- bufferLength → int
-
Total number of samples the dataBuffer 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
→ MemoryPointer<
RVoid> -
no setter
- dataBuffer → ByteBuffer
-
Raw audio buffer data
no setter
- frameCount ↔ int
-
Total number of frames (considering channels)
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
op
↔ StructPointer<
WaveD> ? -
The C-owned or RaylibTemp-owned typed pointer for this struct, if any.
getter/setter pairinherited
- 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
- structIsDisposed → bool
-
Whether structMarkDisposed has been called on this instance.
no setterinherited
- 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(
) → WaveD -
Returns a deep copy of this instance, preserving op if present.
override
-
copy(
) → WaveD -
Returns a deep copy of this instance without op.
inherited
-
getOp(
) → StructPointer< WaveD> -
Returns op, throwing a descriptive StateError if unavailable or this instance RaylibTempStructState.isDisposed.
inherited
-
getOpAndDispose(
) → StructPointer< WaveD> -
Returns op and immediately disposes this struct.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setDart(
WaveD o) → WaveD -
Copies the fields of
ointo this instance.override -
signature(
) → String -
Returns a human-readable representation of this struct.
override
-
structAllocateInto(
RaylibTemp< RaylibBase> temp, MemoryPointer<RType> p, String key) → void -
Allocates nested pointers into
tempunderkeyas needed.override -
structMarkDisposed(
) → void -
Marks this instance as disposed and clears op.
inherited
-
structOnOp(
void callback(StructPointer< WaveD> p)) → void -
Calls
callbackwith op if it is set, otherwise no-ops.inherited -
structReadFrom(
MemoryPointer< RType> p) → void -
override
-
structSetTag(
String newTag) → WaveD -
Sets RaylibTempStructState.tag to
newTag.inherited -
structSyncFromMemory(
) → void -
Syncs all fields from the memory. Requires op.
inherited
-
structSyncToMemory(
) → void -
Syncs all fields to the memory. Requires op.
inherited
-
structWriteInto(
MemoryPointer< RType> p) → void -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
field_channels
→ StructValueField<
int, RUnsignedInt> -
Field descriptor for channels.
final
-
field_data
→ StructPointerValueField<
dynamic, RVoid> -
Field descriptor for data.
final
-
field_frameCount
→ StructValueField<
int, RUnsignedInt> -
Field descriptor for frameCount.
final
-
field_sampleRate
→ StructValueField<
int, RUnsignedInt> -
Field descriptor for sampleRate.
final
-
field_sampleSize
→ StructValueField<
int, RUnsignedInt> -
Field descriptor for sampleSize.
final
-
struct
→ StructType<
WaveD> -
Describes the raw memory layout, construction, and pointer representation
of this struct type.
final
-
structLayout
→ StructLayout<
WaveField> -
Raw memory layout of this object.
final
Static Methods
-
BASE_bufferCopy(
ByteBuffer data, int sampleSize) → ByteBuffer -
BASE_bufferLength(
ByteBuffer data, int sampleSize) → int -
BASE_dataSetList(
MemoryPointer< RType> ptr, ByteBuffer src, int sampleSize, int dataLength) → void -
BASE_dummyData(
int sampleSize, int dataLength) → ByteBuffer -
BASE_waveLength(
int frameCount, int channels) → int -
Computes the total number of samples for a wave with the given
frameCountandchannels, i.e.frameCount * channels.