SoundWave class
A Sound from a wave form.
Constructors
- SoundWave({WaveForm waveForm = WaveForm.sin, bool superWave = false, double scale = 0.0, double detune = 0.0, double frequency = 440.0, double volume = 0.7, bool paused = false, SoundPosition position = unpanned, double relativePlaySpeed = 1.0})
-
Create an instance.
const
- SoundWave.fromMidiNote({required MidiNote midiNote, WaveForm waveForm = WaveForm.sin, bool superWave = false, double scale = 0.0, double detune = 0.0, double volume = 0.7, Duration loopingStart = Duration.zero, bool paused = false, SoundPosition position = unpanned, double relativePlaySpeed = 1.0})
-
Create an instance from a
midiNote.
Properties
- destroy → bool
-
Whether or not this sound should be destroyed after playing.
finalinherited
- detune → double
-
The detune to use.
final
- frequency → double
-
The frequency of the new wave.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- internalUri → String
-
Return a string representation of this wave.
no setteroverride
- looping → bool
-
Whether this sound should loop.
finalinherited
- loopingStart → Duration
-
The point where this sound should start loading.
finalinherited
- paused → bool
-
Whether this sound should start paused.
finalinherited
- position → SoundPosition
-
The position for this sound.
finalinherited
- relativePlaySpeed → double
-
The playback rate to use.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scale → double
-
The scale to use.
final
- superWave → bool
-
Whether this wave is a super wave.
final
- volume → double
-
The volume to play at.
finalinherited
- waveForm → WaveForm
-
The type of wave to create.
final
Methods
-
copyWith(
{WaveForm? waveForm, bool? superWave, double? scale, double? detune, bool? destroy, double? volume, bool? looping, Duration? loopingStart, SoundPosition? position, bool? paused, double? relativePlaySpeed}) → SoundWave -
Copy this instance.
override
-
load(
) → Future< AudioSource> -
Create an audio source.
override
-
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 -
The equality operator.
inherited