SynthizerSound class

A sound that has been played by a SynthizerSoundBackend instance.

Implemented types

Constructors

SynthizerSound({required SynthizerSoundBackend backend, required SynthizerSoundChannel channel, required bool keepAlive, required Generator generator})
Create an instance.
const

Properties

backend SynthizerSoundBackend
The backend to use.
final
channel SynthizerSoundChannel
The channel this sound is playing through.
final
context → Context
The context that both source and generator are attached to.
no setter
gain double
Get the gain for generator.
getter/setter pairoverride
generator → Generator
The generator to play through.
final
hashCode int
The hash code for this object.
no setterinherited
keepAlive bool
Whether to keep this sound alive or not.
final
looping bool
Get the looping status of generator.
getter/setter pairoverride
pitchBend double
Get the pitch bend for generator.
getter/setter pairoverride
position double
Get the position of generator.
getter/setter pairoverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source → Source
The source to play through.
no setter

Methods

cancelFade() → void
Cancel any fade started with fade.
override
checkDeadSound() → void
Throws StateError if keepAlive is false.
destroy() → void
Destroy generator.
override
fade({required double length, double endGain = 0.0, double? startGain, double preFade = 0.0}) → void
Fade generator.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() → void
Pause generator.
override
toString() String
A string representation of this object.
inherited
unpause() → void
Unpause generator.
override

Operators

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