SoundChannel class abstract
A channel for playing sounds through.
- Implementers
Constructors
Properties
- gain → double
-
The Gain of this channel.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- position ↔ SoundPosition
-
Get the position of this channel.
getter/setter pair
- 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.
-
addReverb(
{required BackendReverb reverb, double gain = 1.0, double fadeTime = 0.01}) → void - Add reverb to this channel.
-
clearFilter(
) → void - Remove any filtering applied to this channel.
-
destroy(
) → void - Destroy this channel.
-
filterBandpass(
double frequency, double bandwidth) → void - Add a bandpass to this channel.
-
filterHighpass(
double frequency, {double q = 0.7071135624381276}) → void - Apply a highpass to this channel.
-
filterLowpass(
double frequency, {double q = 0.7071135624381276}) → void - Apply a lowpass to this channel.
-
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.
-
playSine(
{required double frequency, double gain = 0.7}) → Wave - Play a sine wave.
-
playSound(
{required AssetReference assetReference, bool keepAlive = false, bool looping = false, double pitchBend = 1.0}) → Sound -
Play a sound with the given
assetReference
. -
playSquare(
{required double frequency, int partials = 1, double gain = 0.7}) → Wave - Play a square wave.
-
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
. -
playTriangle(
{required double frequency, int partials = 1, double gain = 0.7}) → Wave - Play a triangle wave.
-
playWave(
{required WaveType waveType, required double frequency, int partials = 1, double gain = 0.7}) → Wave -
Play a wave of the given
waveType
at the givenfrequency
through this channel. -
removeAllEffects(
) → void - Remove all effects.
-
removeEcho(
{required BackendEcho echo, double fadeTime = 0.01}) → void - Remove an echo from this channel.
-
removeReverb(
{required BackendReverb reverb, double fadeTime = 0.01}) → void - Remove reverb from this channel.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited