SynthizerSoundChannel class

A synthizer sound channel.

Implemented types

Constructors

SynthizerSoundChannel({required SynthizerSoundBackend backend, required Source source})
Create an instance.
const

Properties

backend SynthizerSoundBackend
The backend this channel belongs to.
final
context → Context
Get the context to use.
no setter
gain double
Get the gain for source.
getter/setter pairoverride-getter
hashCode int
The hash code for this object.
no setterinherited
position SoundPosition
Get the position of source.
getter/setter pairoverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source → Source
The synthizer source to use.
final
synthizer → Synthizer
Get the synthizer instance to use.
no setter

Methods

addEcho({required covariant SynthizerBackendEcho echo, double gain = 1.0, double fadeTime = 0.01}) → void
Add an echo to this channel.
override
addReverb({required covariant SynthizerBackendReverb reverb, double gain = 1.0, double fadeTime = 0.01}) → void
Add reverb to this channel.
override
clearFilter() → void
Clear filtering.
override
configureLinger({required Generator generator, required bool keepAlive}) → void
Configure lingering for the given generator, according to keepAlive.
destroy() → void
Destroy the source.
override
filterBandpass(double frequency, double bandwidth) → void
Add a bandpass.
override
filterHighpass(double frequency, {double q = 0.7071135624381276}) → void
Add a highpass.
override
filterLowpass(double frequency, {double q = 0.7071135624381276}) → void
Add a low pass.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
playSaw(double frequency, {int partials = 1, double gain = 0.7}) Wave
Play a saw wave.
override
playSine({required double frequency, double gain = 0.7}) SynthizerWave
Play a sine wave.
override
playSound({required AssetReference assetReference, bool keepAlive = false, double? gain, bool looping = false, double pitchBend = 1.0}) SynthizerSound
Play a sound with the given assetReference.
override
playSquare({required double frequency, int partials = 1, double gain = 0.7}) SynthizerWave
Play a square wave.
override
playString({required String string, bool keepAlive = false, double gain = 0.7, bool looping = false, double pitchBend = 1.0}) SynthizerSound
Play a sound from the given string.
override
playTriangle({required double frequency, int partials = 1, double gain = 0.7}) SynthizerWave
Play a triangle wave.
override
playWave({required WaveType waveType, required double frequency, int partials = 1, double gain = 0.7}) SynthizerWave
Play a wave.
override
removeAllEffects() → void
Remove all effects.
override
removeEcho({required covariant SynthizerBackendEcho echo, double fadeTime = 0.01}) → void
Remove an echo from this channel.
override
removeReverb({required covariant SynthizerBackendReverb reverb, double fadeTime = 0.01}) → void
Remove reverb from this channel.
override
toString() String
A string representation of this object.
inherited

Operators

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