PulseSound class
A sound generated with some kind of pre-defined wave shape, with a duty cycle.
- Inheritance
-
- Object
- Sound
- GeneratedSound
- PulseSound
Properties
- dutyCycle ↔ double
-
Duty cycle of the pulsewave. Percentage of the cycle in which wave is in the high state. Clamped between 0 and 1.
getter/setter pair
- freq ↔ double
-
Waveform frequency. Corresponds to pitch.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isPlaying → bool
-
no setterinherited
- pitch ↔ double
-
A
doublegreater than0. Changes both the pitch and the speed. Changing only one requires complex audio proccessing algorithms.getter/setter pairinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- volume ↔ double
-
A
doublegreater than0(values greater than1may behave differently from platform to platform).getter/setter pairinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pause(
) → void -
Stops the sound, but keeps it's position.
inherited
-
play(
) → void -
Starts the sound. Played from the beginning if was paused.
inherited
-
resume(
) → void -
Starts the sound. Continues if was paused.
inherited
-
stop(
) → void -
Stops the sound and resets it's position.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited