AudioManager class
A class for managing audio-channels.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
lerpBackroundVolume(
double to, Duration time) → Future< void> - Lineary interpolates the volume of background to a provided value.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pauseBackgroundSound(
) → dynamic -
playBackgroundSound(
String assetPath, {double volume = 1}) → dynamic - Plays a background song from the assets. This method is intended for long files. Currently it's possible to play only one background sound simultaneously. On the mobile platforms, the sound is paused while the game is out of focus.
-
playSound(
String assetPath, {double volume = 1}) → dynamic - Plays a sound from the assets. This method is intended only for short/small audiofiles. Consider using playBackgroundSound otherwise.
-
resumeBackgroundSound(
) → dynamic -
setBackroudVolume(
double volume) → dynamic -
smoothlyStopBackground(
Duration time) → Future< void> - Lineary interpolates the volume of background to zero, then disposes it.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited