WaveformNormalization enum
Controls how amplitude values returned by getWaveform / getWaveformBytes
are scaled into the 0.0–1.0 range.
Choose perFile for single-track visualizations where you want the waveform to fill the available height regardless of how loud the source is. Choose absolute when you need to compare loudness across multiple tracks — a quiet recording will then visibly look quieter than a loud one.
Values
- perFile → const WaveformNormalization
-
Each waveform is rescaled so its loudest window equals 1.0.
This is the default and matches the behavior of audio_decoder up to and including 0.7.x. Best for showing a single track in isolation: voice memos, podcast previews, chat voice messages, etc.
const WaveformNormalization('perFile') - absolute → const WaveformNormalization
-
Amplitudes are scaled so absolute loudness is preserved across files.
Two recordings of different loudness will visually differ in height. Best for music apps that show several tracks side by side.
const WaveformNormalization('absolute')
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- wireValue → String
-
Stable identifier used to communicate the chosen mode to the native
platform implementations. Pinned so it survives Dart-side renames of the
enum constants.
final
Methods
-
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
Constants
-
values
→ const List<
WaveformNormalization> - A constant List of the values in this enum, in order of their declaration.