Buffer class Null safety

A synthizer buffer.

Instead of using the default constructor directly, use one of the named constructors.

Synthizer docs

Inheritance

Constructors

Buffer(Synthizer synthizer, {int? handle})
Default constructor. Do not use.
Buffer.fromBytes(Synthizer synthizer, List<int> bytes)
Create a buffer from a list of integers. [...]
factory
Buffer.fromDoubles(Synthizer synthizer, int sampleRate, int channels, int frames, List<double> data)
Create a buffer from a list of floats.
factory
Buffer.fromFile(Synthizer synthizer, File file)
Create a buffer from a file object.
factory
Buffer.fromStreamHandle(Synthizer synthizer, SynthizerStream stream)
Create a buffer from a stream.
factory
Buffer.fromStreamParams(Synthizer synthizer, String protocol, String path, {String options = ''})
Create a buffer from stream parameters.
factory
Buffer.fromString(Synthizer synthizer, String data)
Create a buffer from a string. [...]
factory

Properties

channels int
Get the number of channels for this buffer.
read-only
currentTime SynthizerDoubleProperty
The current Synthizer time.
read-only, inherited
handle Pointer<syz_Handle>
The handle for this object.
late, final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
isValid bool
Returns true if this object is still valid.
read-only, inherited
lengthInSamples int
Get the length of this buffer in samples.
read-only
lengthInSeconds double
Get the length of this buffer in seconds.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
size int
Get the amount of memory (in bytes) this buffer is taking up.
read-only
suggestedAutomationTime SynthizerDoubleProperty
The suggested automation time.
read-only, inherited
synthizer Synthizer
The synthizer instance.
final, inherited

Methods

configDeleteBehavior({bool? linger, double? timeout}) → void
Configure delete behaviour for this object.
inherited
decreaseReferenceCount() → void
Decrease the reference count.
inherited
destroy() → void
Destroy this object.
@mustCallSuper, inherited
increaseReferenceCount() → void
Increase the reference count.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
Used to compare two objects.
inherited