AudioParam class
Data model that can be used to transfer data between the app UI and the sound source. Use with the SoundController.
- Annotations
Constructors
- AudioParam({double x = 0, double y = 0, double z = 0, double freq = 512, double volume = 0.5})
- Data model that can be used to transfer data between the app UI and the sound source. Use with the SoundController.
Properties
- freq → double
-
Value from 20 to 20000 which controls the frequency of the
sound source
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- volume → double
-
Value from 0 to 1 which controls the volume of the sound
source where 0 being mute and 1 being highest volume.
final
- x → double
-
Value from -1 to 1 where -1 being right side and 1 being left side
final
- y → double
-
Value from -1 to 1 where -1 being bottom and 1 being top
final
- z → double
-
Value from -1 to 1 where -1 being back and 1 being front
final
Methods
-
copyWith(
{double? x, double? y, double? z, double? freq, double? volume}) → AudioParam - Create a copy of the AudioParam with the given non-null values.
-
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.
override