WaveformService class

Peak amplitudes of an audio file for drawing timeline waveforms.

Constructors

WaveformService()

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

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

Static Methods

computePeaks(Uint8List pcm, int sampleRate) → Float32List
Max absolute amplitude per bucket of 16-bit mono pcm, normalized to the loudest bucket.
peaks(String path) → Future<Float32List?>
Normalized (0..1) peaks for path, peaksPerSecond per second, or null when the file cannot be decoded. Results are cached per path.

Constants

peaksPerSecond → const int
Peaks per second of audio.