SilentSoundChannel class

A silent sound channel.

This class does nothing.

Implemented types

Constructors

SilentSoundChannel({required double gain, SoundPosition position = unpanned})
Create an instance.

Properties

gain double
The Gain of this channel.
getter/setter pairoverride-getter
hashCode int
The hash code for this object.
no setterinherited
position SoundPosition
Get the position of this channel.
getter/setter pairoverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addEcho({required BackendEcho echo, double gain = 1.0, double fadeTime = 0.01}) → void
Add an echo to this channel.
override
addReverb({required BackendReverb reverb, double gain = 1.0, double fadeTime = 0.01}) → void
Add reverb to this channel.
override
clearFilter() → void
Remove any filtering applied to this channel.
override
destroy() → void
Destroy this channel.
override
filterBandpass(double frequency, double bandwidth) → void
Add a bandpass to this channel.
override
filterHighpass(double frequency, {double q = 0.7071135624381276}) → void
Apply a highpass to this channel.
override
filterLowpass(double frequency, {double q = 0.7071135624381276}) → void
Apply a lowpass to this channel.
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}) SilentWave
Play a saw wave.
override
playSine({required double frequency, double gain = 0.7}) SilentWave
Play a sine wave.
override
playSound({required AssetReference assetReference, bool keepAlive = false, double? gain, bool looping = false, double pitchBend = 1.0}) SilentSound
Play a sound with the given assetReference.
override
playSquare({required double frequency, int partials = 1, double gain = 0.7}) SilentWave
Play a square wave.
override
playString({required String string, bool keepAlive = false, double gain = 0.7, bool looping = false, double pitchBend = 1.0}) Sound
Play a sound from the given string.
override
playTriangle({required double frequency, int partials = 1, double gain = 0.7}) SilentWave
Play a triangle wave.
override
playWave({required WaveType waveType, required double frequency, int partials = 1, double gain = 0.7}) SilentWave
Play a wave of the given waveType at the given frequency through this channel.
override
removeAllEffects() → void
Remove all effects.
override
removeEcho({required BackendEcho echo, double fadeTime = 0.01}) → void
Remove an echo from this channel.
override
removeReverb({required BackendReverb 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