Buffer class

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.
no setter
currentTime SynthizerDoubleProperty
The current Synthizer time.
no setterinherited
handle Pointer<syz_Handle>
The handle for this object.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
isValid bool
Returns true if this object is still valid.
no setterinherited
lengthInSamples int
Get the length of this buffer in samples.
no setter
lengthInSeconds double
Get the length of this buffer in seconds.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
Get the amount of memory (in bytes) this buffer is taking up.
no setter
suggestedAutomationTime SynthizerDoubleProperty
The suggested automation time.
no setterinherited
synthizer Synthizer
The synthizer instance.
finalinherited

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.
inherited
increaseReferenceCount() → void
Increase the reference count.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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